ClientManagerBase<TModel extends TetherModel<TModel>> class

Implemented types
Implementers

Constructors

ClientManagerBase({required String tableName, required String localTableName, required SqliteDatabase localDb, required PostgrestBuilder supabase, required SupabaseQueryBuilder baseSupabase, required SupabaseClient client, required Map<String, SupabaseTableInfo> tableSchemas, required FromJsonFactory<TModel> fromJsonFactory, required FromSqliteFactory<TModel> fromSqliteFactory, SqlOperationType? type = SqlOperationType.select, SelectBuilderBase? selector, bool syncWithSupabase = true, SqlStatement? localQuery, bool maybeSingle = false, bool isRemoteOnly = false, bool isLocalOnly = false, SelectBuilderBase? selectorStatement, TetherModelInputBase? updatePayload})

Properties

baseSupabase → SupabaseQueryBuilder
final
client → SupabaseClient
final
fromJsonFactory → FromJsonFactory<TModel>
final
fromSqliteFactory → FromSqliteFactory<TModel>
final
hashCode → int
The hash code for this object.
no setterinherited
isLocalOnly ↔ bool
getter/setter pair
isRemoteOnly ↔ bool
getter/setter pair
localDb → SqliteDatabase
final
localQuery ↔ SqlStatement?
getter/setter pair
localTableName → String
final
maybeSingle ↔ bool
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selector → SelectBuilderBase?
final
selectorStatement ↔ SelectBuilderBase?
getter/setter pair
supabase → PostgrestBuilder
final
syncWithSupabase → bool
final
tableName → String
final
tableSchemas → Map<String, SupabaseTableInfo>
final
type → SqlOperationType?
final
updatePayload → TetherModelInputBase?
final

Methods

asStream() → Stream<TetherClientReturn<TModel>>
Stream implementation
override
catchError(Function onError, {bool test(Object error)?}) → Future<TetherClientReturn<TModel>>
Handle errors
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
then<R>(FutureOr<R> onValue(TetherClientReturn<TModel> value), {Function? onError}) → Future<R>
Main execution point - when the future is awaited
override
timeout(Duration timeLimit, {FutureOr<TetherClientReturn<TModel>> onTimeout()?}) → Future<TetherClientReturn<TModel>>
Timeout implementation
override
toString() → String
A string representation of this object.
inherited
upsertSupabaseData(List<Map<String, dynamic>> supabaseResponse) → Future<void>
Generates a list of UPSERT SQL statements for nested data from a Supabase response. Each type of nested data will have its own UPSERT statement.
whenComplete(FutureOr<void> action()) → Future<TetherClientReturn<TModel>>
Completion callback
override

Operators

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

Constants

defaultTimeout → const Duration