DriftElectricClient<DB extends GeneratedDatabase> class
Methods
-
clearTableReplicationTransform<TableDsl extends Table, D>(TableInfo<TableDsl, D> table)
→ void
-
Clears any replication transforms set using
setReplicationTransform
override
-
close()
→ Future<void>
-
override
-
connect([String? token])
→ Future<void>
-
override
-
disconnect()
→ void
-
override
-
init()
→ void
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
potentiallyChanged()
→ void
-
override
-
setIsConnected(ConnectivityState connectivityState)
→ void
-
override
-
setTableReplicationTransform<TableDsl extends Table, D>(TableInfo<TableDsl, D> table, {required Insertable<D> transformInbound(D row), required Insertable<D> transformOutbound(D row), Insertable<D> toInsertable(D)?})
→ void
-
Puts transforms in place such that any data being replicated
to or from this table is first handled appropriately while
retaining type consistency.
override
-
syncTable<T extends Table>(T table, {SyncIncludeBuilder<T>? include, SyncWhereBuilder<T>? where, String? key})
→ Future<ShapeSubscription>
-
Creates a Shape subscription. A shape is a set of related data that's synced
onto the local device.
https://electric-sql.com/docs/usage/data-access/shapes
override
-
syncTableRaw(SyncInputRaw syncInput)
→ Future<ShapeSubscription>
-
Same as syncTable but you would be providing table names, and foreign key
relationships manually. This is more low-level and should be avoided if
possible.
override
-
toString()
→ String
-
A string representation of this object.
inherited