electricsql 0.6.0 electricsql: ^0.6.0 copied to clipboard
A Dart implementation for ElectricSQL (electric-sql.com) client.
0.6.0 #
- Code based on official Typescript client v0.10.0 and v0.10.1.
- BREAKING: Compatible with the Electric service v0.10.0+
- BREAKING: The
syncTables
function has been removed in favor of the new Shapes feature and the functionsyncTable
, which can be customized withWHERE
clauses or to include other related tables. More information in the README. - BREAKING: DateTimes obtained for the Postgres types TIME, TIMESTAMP and DATE are now always in UTC. These types don't store timezone information, so for consistency they are in UTC when reading. For example, if you insert "2023-01-15 08:30" (local), "2023-01-15 08:30+00" (UTC) or "2023-01-15 08:30-05" (with offset); timezone is stripped and all of them will be read as "2023-01-15 08:30" (UTC).
- BREAKING: Now the
ElectricClient
class has a generic type with the type of the drift database (ElectricClient<AppDatabase>
), to improve type safety and integration. - Improved type mapping between a Postgres database and the drift Electric client in a Dart backend.
0.5.2 #
- Code based on official Typescript client v0.9.3 and v0.9.4
- The drift schema now supports postgres, allowing reuse in a Dart backend. A simple backend example is provided in the todos demo. Thanks to @simolus3 for the contribution.
0.5.0 #
- Code based on official Typescript client v0.9.0
- The CLI from
electricsql_cli
has been greatly improved, now supporting running the Electric and Postgres services locally behind the scenes, simplifying the structure of the project. Checkout the Quickstart section in the README for more details.
0.4.0 #
0.3.0 #
- Code based on official Typescript client v0.7.0
- Breaking change: Compatible with the Electric service v0.7.0+
- Added support for additional data types from Postgres, replicated in the local SQLite and mapped as Dart types in the
drift
schema:uuid
int2
int4
float8
date
time
timetz
timestamp
timestamptz
- Automatic drift schema generation using the
electricsql_cli
package. No longer needed to manually replicate the Postgres schema indrift
.
0.2.0 #
0.1.2 #
- Code based on official Typescript client v0.5.2-dev f52f25f369e016183cc5bffca2005d65bf7cca12
0.1.0 #
- Initial version.