discontinuedPackage electricsql has been discontinued.

PgBundleMigrator class

Implemented types

Constructors

PgBundleMigrator({required DatabaseAdapter adapter, List<Migration> migrations = const []})

Properties

adapter → DatabaseAdapter
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
migrations ↔ List<StmtMigration>
latefinalinherited
migrationsTable ↔ QualifiedTablename
latefinalinherited
queryBuilder → QueryBuilder
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tableName → String
finalinherited

Methods

apply(StmtMigration migration) → Future<void>
inherited
applyIfNotAlready(StmtMigration migration) → Future<bool>
Applies the provided migration only if it has not yet been applied. migration: The migration to apply. Returns A future that resolves to a boolean that indicates if the migration was applied.
inherited
migrationsTableExists() → Future<bool>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryApplied() → Future<List<MigrationRecord>>
inherited
querySchemaVersion() → Future<String?>
inherited
toString() → String
A string representation of this object.
inherited
up() → Future<int>
inherited
validateApplied(List<StmtMigration> migrations, List<MigrationRecord> existing) → Future<List<StmtMigration>>
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited