dartapi_db 0.0.8 copy "dartapi_db: ^0.0.8" to clipboard
dartapi_db: ^0.0.8 copied to clipboard

A light weight Database helper wrapper for dartapi.

0.0.8 #

  • Add DbTransaction abstract class for transaction-scoped query sessions
  • Add DartApiDB.transaction<T>(callback) — runs callback in a DB transaction; commits on success, rolls back on exception
    • PostgreSQL: uses Pool.runTx() (native transaction session)
    • MySQL: acquires a dedicated connection via pool.withConnection() with START TRANSACTION / COMMIT / ROLLBACK
    • SQLite: uses BEGIN / COMMIT / ROLLBACK on the same connection
  • Add SqliteDatabase driver — full DartApiDB implementation backed by sqlite3
  • Add DbType.sqlite enum value
  • Add DbConfig.sqlite(String path) convenience constructor; use ':memory:' for in-memory databases
  • Add MigrationRunner — Flyway-style SQL migration runner that tracks applied migrations in _dartapi_migrations
  • Add 19 tests for SQLite and MigrationRunner (no server required)

0.0.7 #

  • Add connection pooling for PostgreSQL (via Pool.withEndpoints) and MySQL (via MySQLConnectionPool)
  • Add PoolConfig class with maxConnections, minConnections, connectionTimeout, and idleTimeout
  • Add optional poolConfig field to DbConfig — backward compatible, defaults to PoolConfig() when omitted

0.0.6 #

  • Fix MySqlDatabase.update() parameter collision when the same column appears in both SET and WHERE clauses (WHERE params now use w_ prefix internally)

0.0.5 #

  • Upgrade Postgres to ^3.5.6 from ^2.6.2

0.0.4 #

  • Upgrade Postgres to ^3.5.6 from ^2.6.2

0.0.3 #

  • Add Code Doc

0.0.2 #

  • Fix Test and Exports.

0.0.1 #

  • Initial version.
2
likes
0
points
576
downloads

Publisher

verified publisherakashgk.com

Weekly Downloads

A light weight Database helper wrapper for dartapi.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

mysql_client_plus, postgres, sqlite3

More

Packages that depend on dartapi_db