Skip to content

Lock

amsdal_glue.LockCommand dataclass

Bases: Operation

Represents a lock command operation.

Attributes:

Name Type Description
action LockAction

The action to be performed for the lock.

mode LockMode

The mode of the lock.

parameter LockParameter

The parameter for the lock.

locked_objects list[LockSchemaReference]

The list of schema references to be locked.

amsdal_glue.LockAction

Bases: str, Enum

Represents the action of a lock.

Attributes:

Name Type Description
ACQUIRE str

Acquire a lock.

RELEASE str

Release a lock.

amsdal_glue.LockMode

Bases: str, Enum

Represents the mode of a lock.

Attributes:

Name Type Description
EXCLUSIVE str

Exclusive lock.

SHARED str

Shared lock.

amsdal_glue.LockParameter

Bases: str, Enum

Represents the parameter of a lock.

Attributes:

Name Type Description
NOWAIT str

Do not wait for the lock.

SKIP_LOCKED str

Skip locked rows.

WAIT str

Wait for the lock.

amsdal_glue.LockSchemaReference dataclass

Represents a reference to a schema for locking purposes.

Attributes:

Name Type Description
schema SchemaReference

The schema reference to be locked.

query Conditions | None

The conditions for the lock. Defaults to None.