$$NoteTableTableManager constructor
$$NoteTableTableManager(
- _$SharedDatabase db,
- $NoteTable table
Implementation
$$NoteTableTableManager(_$SharedDatabase db, $NoteTable table)
: super(
TableManagerState(
db: db,
table: table,
createFilteringComposer: () =>
$$NoteTableFilterComposer($db: db, $table: table),
createOrderingComposer: () =>
$$NoteTableOrderingComposer($db: db, $table: table),
createComputedFieldComposer: () =>
$$NoteTableAnnotationComposer($db: db, $table: table),
updateCompanionCallback:
({
Value<int> id = const Value.absent(),
Value<String> title = const Value.absent(),
Value<String> content = const Value.absent(),
Value<DateTime> createDateTime = const Value.absent(),
Value<String> colorCode = const Value.absent(),
}) => NoteCompanion(
id: id,
title: title,
content: content,
createDateTime: createDateTime,
colorCode: colorCode,
),
createCompanionCallback:
({
Value<int> id = const Value.absent(),
required String title,
required String content,
required DateTime createDateTime,
required String colorCode,
}) => NoteCompanion.insert(
id: id,
title: title,
content: content,
createDateTime: createDateTime,
colorCode: colorCode,
),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
.toList(),
prefetchHooksCallback: null,
),
);