DriftElectricClient<DB extends GeneratedDatabase> class

Implemented types

Constructors

DriftElectricClient(ElectricClientImpl _baseClient, DB db)

Properties

adapter DatabaseAdapter
no setteroverride
db → DB
final
dbDescription → DBSchema
no setteroverride
dbName String
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isConnected bool
no setteroverride
notifier Notifier
no setteroverride
registry Registry
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
satellite Satellite
no setteroverride
syncManager SyncManager
no setteroverride

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

Operators

operator ==(Object other) bool
The equality operator.
inherited