aim_database 0.4.0 copy "aim_database: ^0.4.0" to clipboard
aim_database: ^0.4.0 copied to clipboard

Database abstraction layer for Aim. Provides common interfaces for database drivers like aim_postgres.

0.4.0 #

  • New: scanSqlPlaceholders finds the :name and ? parameter placeholders in a statement and skips the ones inside a string literal, a quoted identifier or a comment. SqlDialect carries the three rules that differ between PostgreSQL and MySQL — which character quotes an identifier, whether a backslash escapes inside a literal, and whether # starts a comment. A driver rewrites the placeholders into its own form; finding them is shared.

0.3.0 #

  • Document the value contract on Database / Transaction: drivers return Dart-typed values, DateTime is always UTC, execute() returns affected rows.

0.2.0 #

0.1.1 #

0.1.0 #

0.0.1 #

  • Initial release of aim_database package
  • Added Database abstract class with query(), execute(), transaction(), and close() methods
  • Added Transaction abstract class with query() and execute() methods
  • Support for named parameters (:name) and positional arguments ($1)
1
likes
160
points
220
downloads

Documentation

API reference

Publisher

verified publisherdart-forge.dev

Weekly Downloads

Database abstraction layer for Aim. Provides common interfaces for database drivers like aim_postgres.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on aim_database