sql_records 0.4.0
sql_records: ^0.4.0 copied to clipboard
A minimal, functional wrapper for SQL databases using Dart 3 records.
0.4.0 #
- Renamed package to
sql_records. - Fixed PostgreSQL transaction implementation to correctly use
runTx. - Renamed PowerSync internal classes to avoid confusion with generic SQLite implementations.
- Removed deprecated
SqliteRecordsandSqliteRecordsReadonlytype aliases. - Cleaned up unused imports and internal fields across the package.
- Improved type safety for PostgreSQL session execution by using
SessionExecutor. - Added support for PostgreSQL via the
postgrespackage. - Added support for synchronous SQLite via the
sqlite3package. - Restructured package with engine-specific entry points:
package:sql_records/powersync.dartpackage:sql_records/sqlite.dartpackage:sql_records/postgres.dart
- Generalized
SqliteRecordstoSqlRecordsto support multiple database engines. SqliteRecordsandSqliteRecordsReadonlyare now type aliases for backward compatibility.- Introduced
MutationResultto provide a unified result forexecuteacross engines. - Internal refactoring of
SafeRowandSafeResultSetto be database-agnostic. - Improved internal structure to avoid leaking private helpers into the public API.
0.3.1 #
- Updated
parseDateTimeto support both ISO-8601 strings and epoch integers. - Added documentation for the "Inline Definition" pattern in the README.
0.3.0 #
- Added support for map literal parameters in
QueryandCommandto simplify inline definitions. - Renamed
.emptyfactory to.staticinQueryandCommandto better describe static SQL usage. - Refined README and documentation with more examples for patching and dynamic commands.
0.2.0 #
- Added
UpdateCommandfor dynamic "patch" updates that skip null parameters. - Added
InsertCommandfor dynamic inserts that only include non-null parameters. - Added
SQLwrapper to distinguish between skipping a field and explicitly setting it toNULL. - Optimized
executeBatchto support dynamic SQL generation. - Improved documentation with
llms.txtand more comprehensive README examples. - Refactored
Queryconstructor to ensure consistency (schema now follows params).
0.1.0 #
- Initial release.
- Type-safe parameters using Dart 3 records.
- Schema-aware results with
SafeRowandSafeResultSet. - Reactive query support with
watch. - Read-only and read-write transaction support.
- Convenient parsing for enums and DateTime.