ClientManagerBase<TModel extends TetherModel<TModel>> constructor

ClientManagerBase<TModel extends TetherModel<TModel>>({
  1. required String tableName,
  2. required String localTableName,
  3. required SqliteDatabase localDb,
  4. required PostgrestBuilder supabase,
  5. required SupabaseQueryBuilder baseSupabase,
  6. required SupabaseClient client,
  7. required Map<String, SupabaseTableInfo> tableSchemas,
  8. required FromJsonFactory<TModel> fromJsonFactory,
  9. required FromSqliteFactory<TModel> fromSqliteFactory,
  10. SqlOperationType? type = SqlOperationType.select,
  11. SelectBuilderBase? selector,
  12. bool syncWithSupabase = true,
  13. SqlStatement? localQuery,
  14. bool maybeSingle = false,
  15. bool isRemoteOnly = false,
  16. bool isLocalOnly = false,
  17. SelectBuilderBase? selectorStatement,
})

Implementation

ClientManagerBase({
  required this.tableName,
  required this.localTableName,
  required this.localDb,
  required this.supabase,
  required this.baseSupabase,
  required this.client,
  required this.tableSchemas,
  required this.fromJsonFactory,
  required this.fromSqliteFactory,
  this.type = SqlOperationType.select,
  this.selector,
  this.syncWithSupabase = true,
  this.localQuery,
  this.maybeSingle = false,
  this.isRemoteOnly = false,
  this.isLocalOnly = false,
  this.selectorStatement,
});