postgres_utils 2.0.0-rc.8
postgres_utils: ^2.0.0-rc.8 copied to clipboard
A few utils for working with postgresql databases.
2.0.0-rc.8 #
- Name the migration table:
TablesBase({String migrationTableName}), e.g.MyTables() : super(migrationTableName: 'my_migration');. The default staysauthpass_migration(TablesBase.defaultMigrationTableName), so existing databases are unchanged. prepareDatabase()throws aStateErrorinstead of re-running every migration when the configured migration table is empty butauthpass_migrationholds history. Switching an existing database to a new name needsALTER TABLE authpass_migration RENAME TO <name>first.- Breaking:
DatabaseConfig.fromJson/fromEnvironmentrequiredatabaseName,usernameandpassword(which may benull). They no longer default to'authpass'/'authpass'/'blubb', andDatabaseConfig.defaultsis removed.
2.0.0-rc.7 #
- Fix
execute()failing on parameterized statements: use the extended query protocol when values are present (likequery()already does). This also fixesexecuteUpdate(), which passes values without the override. - Fix
dispose()throwing when no connection was opened.
2.0.0-rc.6 #
- Require
postgres^3.5.0; remove thepostgres/srcimplementation import. - Remove
CustomTypeBind;CustomBindno longer takes atype. - Replace the discontinued
pedanticlint set withlintsrecommended. - Add a dockerized smoke test (
test/smoke_test.dart).
2.0.0-rc.5 #
- Migrate to
postgresv3. - Add
concatColumnstoOnConflictActionDoUpdatefor allowing incremental updates inupset.
1.0.0 #
- Initial version.