Default Command Planners¶
amsdal_glue.planners.DefaultSchemaCommandPlanner ¶
Bases: SchemaCommandPlanner
DefaultSchemaCommandPlanner is responsible for planning schema commands by creating a chain of tasks that execute schema mutations. It extends the SchemaCommandPlanner class.
plan_schema_command ¶
plan_schema_command(command)
Plans the execution of a schema command by creating a chain of tasks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
command
|
SchemaCommand
|
The schema command containing mutations to be executed. |
required |
Returns:
Name | Type | Description |
---|---|---|
ChainTask |
ChainTask
|
A chain of tasks that execute the schema mutations. |
amsdal_glue.planners.DefaultDataCommandPlanner ¶
Bases: DataCommandPlanner
DefaultDataCommandPlanner is responsible for planning data commands by creating a chain of tasks that execute data mutations. It extends the DataCommandPlanner class.
plan_data_command ¶
plan_data_command(command)
Plans the execution of a data command by creating a chain of tasks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
command
|
DataCommand
|
The data command containing mutations to be executed. |
required |
Returns:
Name | Type | Description |
---|---|---|
ChainTask |
ChainTask
|
A chain of tasks that execute the data mutations. |
amsdal_glue.planners.DefaultTransactionCommandPlanner ¶
Bases: TransactionCommandPlanner
DefaultTransactionCommandPlanner is responsible for planning transaction commands by creating a chain of tasks that execute transaction operations. It extends the TransactionCommandPlanner class.
plan_transaction ¶
plan_transaction(command)
Plans the execution of a transaction command by creating a chain of tasks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
command
|
TransactionCommand
|
The transaction command containing transaction operations to be executed. |
required |
Returns:
Name | Type | Description |
---|---|---|
ChainTask |
ChainTask
|
A chain of tasks that execute the transaction operations. |
amsdal_glue.planners.DefaultLockCommandPlanner ¶
Bases: LockCommandPlanner
DefaultLockCommandPlanner is responsible for planning lock commands by creating a chain of tasks that execute lock operations. It extends the LockCommandPlanner class.
plan_lock ¶
plan_lock(command)
Plans the execution of a lock command by creating a chain of tasks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
command
|
LockCommand
|
The lock command containing lock operations to be executed. |
required |
Returns:
Name | Type | Description |
---|---|---|
ChainTask |
ChainTask
|
A chain of tasks that execute the lock operations. |