|
ORM C++
|
Classes | |
| struct | AppliedMigration |
| class | Catalog |
| struct | ColumnRename |
| struct | ColumnTransformation |
| struct | Diagnostic |
| struct | GeneratedMigration |
| struct | GenerationDecisions |
| struct | GenerationDiagnostic |
| class | GenerationError |
| struct | IncompleteMigration |
| struct | Migration |
| class | MigrationError |
| struct | MigrationExecutionContext |
| class | MigrationProject |
| struct | MigrationSummary |
| struct | PhysicalColumn |
| struct | PhysicalForeignKey |
| struct | PhysicalIndex |
| struct | PhysicalSchema |
| struct | PhysicalTable |
| struct | Plan |
| struct | PlannedMigration |
| struct | RebuildTable |
| class | Runner |
| struct | SchemaChange |
| struct | SchemaDiff |
| struct | SchemaSnapshot |
| struct | SqlMigration |
| struct | Status |
| struct | TableRename |
Typedefs | |
| using | Version = std::int64_t |
| using | GenerationLiteral |
Enumerations | |
| enum class | ErrorCode { InvalidCatalog , InvalidSql , NotConnected , ActiveTransaction , UnsupportedBackend , InvalidHistory , ChecksumMismatch , InvalidTarget , MissingDown , BaselineBoundary , LockUnavailable , HistoryChanged , Execution , CommitUncertain , IncompleteMigration , InvalidResolution , InvalidSchema , SessionRestoration } |
| enum class | Direction { Up , Down } |
| enum class | Resolution { Completed , Reverted } |
| enum class | MigrationExecutionMode { Normal , SqliteRebuild } |
| enum class | SchemaChangeKind { CreateTable , DropTable , RenameTable , AddColumn , DropColumn , RenameColumn , AlterColumn , AlterPrimaryKey , AddForeignKey , DropForeignKey , AddIndex , DropIndex } |
Functions | |
| auto | emptySnapshot (std::span< const db::BackendType > backends=generationBackends) -> SchemaSnapshot |
| auto | capture (model::SchemaView models, std::span< const db::BackendType > backends=generationBackends) -> SchemaSnapshot |
| auto | compare (const SchemaSnapshot &before, const SchemaSnapshot &after, const GenerationDecisions &decisions={}) -> SchemaDiff |
| auto | generate (Version version, std::string name, const SchemaDiff &diff, const GenerationDecisions &decisions={}) -> GeneratedMigration |
| auto | runCommandLine (std::span< const std::string_view > args, model::SchemaView models, const std::filesystem::path &directory, std::ostream &output, std::ostream &errors) -> int |
| auto | runCommandLine (int argc, const char *const *argv, model::SchemaView models, const std::filesystem::path &directory="migrations") -> int |
Variables | |
| constexpr std::array | generationBackends |
Versioned SQL migrations, independent of the application's current model types.
|
export |
Definition at line 108 of file schema.cppm.
|
export |
Definition at line 31 of file migrations.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| Up | |
| Down | |
Definition at line 129 of file migrations.cppm.
|
exportstrong |
Definition at line 33 of file migrations.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| Normal | |
| SqliteRebuild | |
Definition at line 74 of file schema.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| Completed | |
| Reverted | |
Definition at line 135 of file migrations.cppm.
|
exportstrong |
| Enumerator | |
|---|---|
| CreateTable | |
| DropTable | |
| RenameTable | |
| AddColumn | |
| DropColumn | |
| RenameColumn | |
| AlterColumn | |
| AlterPrimaryKey | |
| AddForeignKey | |
| DropForeignKey | |
| AddIndex | |
| DropIndex | |
Definition at line 129 of file schema.cppm.
|
nodiscardexport |
|
nodiscardexport |
|
nodiscardexport |
|
nodiscardexport |
|
export |
|
export |
|
inlineconstexprexport |
Definition at line 20 of file schema.cppm.