public final class SchemaManager:
Thread-safe facade for physical schema creation, inspection and validation.
A SchemaManager belongs to an EntityManagerFactory and uses the immutable entity-model snapshot captured when that factory is created. It never shares an EntityManager identity map or transaction.
try factory = EntityManagerFactory(configuration): schema = factory.schema if not schema.exists(User.type): schema.create(User.type) schema.validate()
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | mappedTypes | Complete mapped entity types captured by the owning factory. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | applyapply(plan as SchemaPlan) as Void: |
Applies a plan produced for the current immutable factory model. |
| public | createcreate() as Void: |
Creates every missing structure required by the factory entity model. |
| public | createcreate(entityType as Type) as Void: |
Creates the missing structure for one mapped entity. |
| public | diffdiff() as SchemaPlan: |
Computes an immutable reconciliation plan for every mapped entity. |
| public | diffdiff(entityType as Type) as SchemaPlan: |
Computes an immutable reconciliation plan for one mapped entity. |
| public | dropdrop() as Void: |
Drops all physical structures represented by this factory, in provider dependency order. |
| public | dropdrop(entityType as Type) as Void: |
Drops the physical structure represented by one mapped entity. |
| public | existsexists() as Boolean: |
Tests whether every mapped entity has a physical provider structure. |
| public | exists | Tests whether one mapped entity has a physical provider structure. |
| public | validatevalidate() as Void: |
Validates all mapped physical structures without changing them. |
| public | validatevalidate(entityType as Type) as Void: |
Validates one mapped physical structure without changing it. |