ClientManagerQueryBuilder<TModel extends TetherModel<TModel>> class

Inheritance

Constructors

ClientManagerQueryBuilder.new({required String tableName, required String localTableName, required SqliteDatabase localDb, required SupabaseClient client, required SupabaseQueryBuilder supabase, required SupabaseQueryBuilder baseSupabase, required Map<String, SupabaseTableInfo> tableSchemas, required FromJsonFactory<TModel> fromJsonFactory, required FromSqliteFactory<TModel> fromSqliteFactory, SqlOperationType? type = SqlOperationType.select, SelectBuilderBase? selector, SqlStatement? localQuery, SelectBuilderBase? selectorStatement})
Creates a new query builder.

Properties

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

Methods

asStream() Stream<TetherClientReturn<TModel>>
Stream implementation
inherited
catchError(Function onError, {bool test(Object error)?}) Future<TetherClientReturn<TModel>>
Handle errors
inherited
delete(dynamic id, {String idColumnName = 'id'}) ClientManagerFilterBuilder<TModel>
insert(List<TetherModelInputBase> values, {bool defaultToNull = true}) ClientManagerFilterBuilder<TModel>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
select(SelectBuilderBase select) ClientManagerFilterBuilder<TModel>
then<R>(FutureOr<R> onValue(TetherClientReturn<TModel> value), {Function? onError}) Future<R>
Main execution point - when the future is awaited
inherited
timeout(Duration timeLimit, {FutureOr<TetherClientReturn<TModel>> onTimeout()?}) Future<TetherClientReturn<TModel>>
Timeout implementation
inherited
toString() String
A string representation of this object.
inherited
update(TetherModelInputBase value) ClientManagerFilterBuilder<TModel>
upsert(TetherModelInputBase value, {String? onConflict, bool ignoreDuplicates = false, bool defaultToNull = true}) ClientManagerFilterBuilder<TModel>
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.
inherited
whenComplete(FutureOr<void> action()) Future<TetherClientReturn<TModel>>
Completion callback
inherited

Operators

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