basalt_postgres 0.1.0
basalt_postgres: ^0.1.0 copied to clipboard
Postgres backend for the Basalt Dart ORM — a driver-backed Connection + SqlDialect on package:postgres, with introspection and json/uuid/numeric/array codecs.
Changelog #
0.1.0 #
- Requires
basalt >=0.1.0 <0.2.0— the new table-marker shape (final class X extends TableRef<X>with owner-linked columns). - Raised the driver lower bound to
postgres ^3.5.0— the connection usesTxSession, which older 3.x versions don't ship (fixes downgrade analysis). - No functional changes.
0.0.2 #
PostgresDialect.castType— implements the newSqlDialectseam, mapping the core types to native Postgres names (IntSqlType→bigint,DateTimeSqlType→timestamptz, ...) so theVALUEStable of a batchupdateAllstays preparable; unwrapsNullableSqlType.PostgresTypedSqlType— new opt-in interface for custom codecs to name their native type; implemented byPostgresJsonbSqlType(jsonb),PostgresUuidSqlType(uuid),PostgresNumericSqlType(numeric) andPostgresArraySqlType(common element types).- Requires
basalt >=0.0.2 <0.1.0.
0.0.1 #
Initial development release of the Postgres backend for basalt_dart.
PostgresDialect— theSqlDialectimplementation with$Nplaceholders and quoted identifiers.PostgresConnection— an asyncConnectionoverpackage:postgreswith transactions and nestedSAVEPOINTsupport.information_schemaintrospection (tables, columns, nullability, primary & foreign keys; arrays keyed byudt_name) for the CLI'sgenerate-schema.PostgresAdapter/PostgresEndpoint(lib/adapter.dart) — theBasaltAdapterCLI seam.- Native PG type codecs, emitted by the adapter's
native_typespreset:PostgresJsonbSqlType(json/jsonb),PostgresUuidSqlType(uuid),PostgresNumericSqlType(exact decimal asString), andPostgresArraySqlType<E>(integer[]/text[]/double[]/boolean[], …).