|
Lightweight 0.20260303.0
|
Classes and functions for SQL schema migrations. More...
Macros | |
| #define | LIGHTWEIGHT_MIGRATION_PLUGIN() |
| #define | LIGHTWEIGHT_MIGRATION_INSTANCE(timestamp) migration_##timestamp |
| Represents the C++ migration object for a given timestamped migration. | |
| #define | LIGHTWEIGHT_SQL_MIGRATION(timestamp, description) |
| Creates a new migration. | |
| #define | LIGHTWEIGHT_SQL_RELEASE(version, highestTimestamp) |
| Associates a software release (version string) with the highest migration timestamp present at the time of that release. | |
Classes and functions for SQL schema migrations.
| #define LIGHTWEIGHT_MIGRATION_PLUGIN | ( | ) |
Requires the user to call LIGHTWEIGHT_MIGRATION_PLUGIN() in exactly one CPP file of the migration plugin.
Definition at line 395 of file SqlMigration.hpp.
| #define LIGHTWEIGHT_MIGRATION_INSTANCE | ( | timestamp | ) | migration_##timestamp |
Represents the C++ migration object for a given timestamped migration.
| timestamp | Timestamp of the migration. |
Definition at line 664 of file SqlMigration.hpp.
| #define LIGHTWEIGHT_SQL_MIGRATION | ( | timestamp, | |
| description | |||
| ) |
Creates a new migration.
| timestamp | Timestamp of the migration. |
| description | Description of the migration. |
Definition at line 684 of file SqlMigration.hpp.
| #define LIGHTWEIGHT_SQL_RELEASE | ( | version, | |
| highestTimestamp | |||
| ) |
Associates a software release (version string) with the highest migration timestamp present at the time of that release.
Declare one LIGHTWEIGHT_SQL_RELEASE per cut release, alongside the migrations that belong to it. The macro registers with the migration manager at static-initialization time. Multiple releases may coexist in the same translation unit.
| version | A string literal, e.g. "6.7.0". |
| highestTimestamp | An unsigned integer literal matching the timestamp format used by migrations. |
Definition at line 721 of file SqlMigration.hpp.