etlplus.database
etlplus.database package.
Database utilities for: - DDL rendering and schema management. - Schema parsing from configuration files. - Dynamic ORM generation. - Database engine/session management.
Functions
|
Build SQLAlchemy ORM models from table specifications. |
|
Return whether value is a known database DSN string. |
|
Return whether value is a known database URL string. |
|
Load table specifications from a file and build SQLAlchemy models. |
|
Extract a database URL/DSN from a YAML/JSON config file. |
|
Load a table specification from disk. |
|
Load table specifications from a YAML file. |
|
Create a SQLAlchemy Engine, defaulting to env config if no URL given. |
|
Render a single table spec into SQL text. |
|
Render multiple table specs into a list of SQL payloads. |
|
Render one or more specs and concatenate the SQL payloads. |
|
Resolve a string type declaration to a SQLAlchemy |
Classes
|
Base class for all ORM models. |
|
Column specification suitable for ODBC / SQLite DDL. |
|
Supported database dialect identifiers. |
|
Foreign key specification. |
|
Identity specification. |
|
Index specification. |
|
Primary key specification. |
|
Supported SQL referential actions for foreign key constraints. |
|
Portable SQL type affinities used for inferred database schemas. |
|
Table specification. |
|
Unique constraint specification. |