Schema
amsdal_glue.SchemaCommand
dataclass
¶
Bases: Operation
Represents a schema command operation.
Attributes:
Name | Type | Description |
---|---|---|
mutations |
list[SchemaMutation]
|
The list of schema mutations to be applied. |
amsdal_glue.AddConstraint
dataclass
¶
Bases: ChangeSchema
Represents an add constraint mutation.
Attributes:
Name | Type | Description |
---|---|---|
constraint |
BaseConstraint
|
The constraint to be added. |
amsdal_glue.AddIndex
dataclass
¶
Bases: ChangeSchema
Represents an add index mutation.
Attributes:
Name | Type | Description |
---|---|---|
index |
IndexSchema
|
The index to be added. |
amsdal_glue.AddProperty
dataclass
¶
Bases: ChangeSchema
Represents an add property mutation.
Attributes:
Name | Type | Description |
---|---|---|
property |
PropertySchema
|
The property to be added. |
amsdal_glue.ChangeSchema
dataclass
¶
Bases: SchemaMutation
Represents a schema change mutation.
Attributes:
Name | Type | Description |
---|---|---|
schema_reference |
SchemaReference
|
The reference to the schema to be changed. |
amsdal_glue.DeleteConstraint
dataclass
¶
Bases: ChangeSchema
Represents a delete constraint mutation.
Attributes:
Name | Type | Description |
---|---|---|
constraint_name |
str
|
The name of the constraint to be deleted. |
amsdal_glue.DeleteIndex
dataclass
¶
Bases: ChangeSchema
Represents a delete index mutation.
Attributes:
Name | Type | Description |
---|---|---|
index_name |
str
|
The name of the index to be deleted. |
Bases: ChangeSchema
Represents a delete property mutation.
Attributes: property_name (str): The name of the property to be deleted.
options: docstring_style: google show_source: false show_root_heading: true merge_init_into_class: false group_by_category: false
amsdal_glue.DeleteSchema
dataclass
¶
amsdal_glue.RegisterSchema
dataclass
¶
Bases: SchemaMutation
Represents a schema registration mutation.
Attributes:
Name | Type | Description |
---|---|---|
schema |
Schema
|
The schema to be registered. |
amsdal_glue.RenameProperty
dataclass
¶
Bases: ChangeSchema
Represents a rename property mutation.
Attributes:
Name | Type | Description |
---|---|---|
old_name |
str
|
The current name of the property. |
new_name |
str
|
The new name for the property. |
amsdal_glue.RenameSchema
dataclass
¶
Bases: ChangeSchema
Represents a schema rename mutation.
Attributes:
Name | Type | Description |
---|---|---|
new_schema_name |
str
|
The new name for the schema. |
amsdal_glue.UpdateProperty
dataclass
¶
Bases: ChangeSchema
Represents an update property mutation.
Attributes:
Name | Type | Description |
---|---|---|
property |
PropertySchema
|
The property to be updated. |