$$KalamCachedRowsTableTableManager constructor

$$KalamCachedRowsTableTableManager(
  1. _$KalamSyncDatabase db,
  2. $KalamCachedRowsTable table
)

Implementation

$$KalamCachedRowsTableTableManager(
  _$KalamSyncDatabase db,
  $KalamCachedRowsTable table,
) : super(
      TableManagerState(
        db: db,
        table: table,
        createFilteringComposer: () =>
            $$KalamCachedRowsTableFilterComposer($db: db, $table: table),
        createOrderingComposer: () =>
            $$KalamCachedRowsTableOrderingComposer($db: db, $table: table),
        createComputedFieldComposer: () =>
            $$KalamCachedRowsTableAnnotationComposer($db: db, $table: table),
        updateCompanionCallback:
            ({
              Value<String> accountKey = const Value.absent(),
              Value<String> tableId = const Value.absent(),
              Value<String> rowKey = const Value.absent(),
              Value<String> valuesJson = const Value.absent(),
              Value<DateTime> updatedAt = const Value.absent(),
              Value<int> rowid = const Value.absent(),
            }) => KalamCachedRowsCompanion(
              accountKey: accountKey,
              tableId: tableId,
              rowKey: rowKey,
              valuesJson: valuesJson,
              updatedAt: updatedAt,
              rowid: rowid,
            ),
        createCompanionCallback:
            ({
              required String accountKey,
              required String tableId,
              required String rowKey,
              required String valuesJson,
              required DateTime updatedAt,
              Value<int> rowid = const Value.absent(),
            }) => KalamCachedRowsCompanion.insert(
              accountKey: accountKey,
              tableId: tableId,
              rowKey: rowKey,
              valuesJson: valuesJson,
              updatedAt: updatedAt,
              rowid: rowid,
            ),
        withReferenceMapper: (p0) => p0
            .map((e) => (e.readTable(table), BaseReferences(db, table, e)))
            .toList(),
        prefetchHooksCallback: null,
      ),
    );