Expand description
Shared SeaORM migration coordination and schema helpers for Aster products.
Products retain their migration lists, history compatibility policy, table definitions, and data backfills. This crate owns the reusable execution mechanics and migration-only helpers.
Structs§
- Migration
Lock Options - Stable cross-process migration lock configuration.
- Sqlite
FtsConfig SQLiteFTS5 virtual table and synchronization-trigger names used by one migration.
Functions§
- big_
integer_ primary_ key - Builds the conventional signed 64-bit auto-incrementing primary-key column.
- drop_
index_ if_ exists - Drops an index when it exists across all supported database backends.
- ensure_
postgres_ extension - Creates a
PostgreSQLextension when it is not already installed. - execute_
sqlite_ statements - Executes generated
SQLitemigration statements in order with caller-provided error context. - json_
text_ column_ for_ final_ schema - Builds a non-null JSON-text column for a migration’s final schema.
- mysql_
fulltext_ index_ sql - Builds
MySQL’s ngram-backed full-text index statement. - nullable_
json_ text_ column_ for_ backfill - Builds a nullable JSON-text column suitable for a later data backfill.
- postgres_
drop_ index - Builds a portable
DROP INDEX IF EXISTSstatement forPostgreSQLmigrations. - postgres_
trigram_ index - Builds a
PostgreSQLGIN trigram index statement. - rename_
mysql_ index_ if_ exists - Renames a
MySQLindex when the source exists and the target does not. - run_
migrator_ with_ lock - Runs a standard
SeaORMmigrator while holding the backend migration lock. - sqlite_
fts_ down_ statements - Builds the
SQLitestatements that remove FTS synchronization and the virtual table. - sqlite_
fts_ up_ statements - Builds the
SQLiteFTS5 table, backfill, and synchronization trigger statements. - utc_
date_ time_ column - Builds a UTC datetime column for the schema manager’s backend.
- utc_
date_ time_ column_ for_ backend - Builds a UTC datetime column for an explicit database backend.
- with_
migration_ lock - Runs a product migration callback while holding the backend’s process-wide migration lock.
Type Aliases§
- Migration
Future - Boxed migration callback future tied to the coordinated database connection.