$$CardsTableTableManager constructor
$$CardsTableTableManager(- _$MyDatabase db,
- $CardsTable table
)
Implementation
$$CardsTableTableManager(_$MyDatabase db, $CardsTable table)
: super(TableManagerState(
db: db,
table: table,
filteringComposer:
$$CardsTableFilterComposer(ComposerState(db, table)),
orderingComposer:
$$CardsTableOrderingComposer(ComposerState(db, table)),
updateCompanionCallback: ({
Value<int> id = const Value.absent(),
Value<int> userId = const Value.absent(),
Value<String> image = const Value.absent(),
Value<String> name = const Value.absent(),
Value<String> desc = const Value.absent(),
Value<DateTime> updateAt = const Value.absent(),
Value<DateTime> createAt = const Value.absent(),
}) =>
CardsCompanion(
id: id,
userId: userId,
image: image,
name: name,
desc: desc,
updateAt: updateAt,
createAt: createAt,
),
createCompanionCallback: ({
Value<int> id = const Value.absent(),
required int userId,
required String image,
required String name,
required String desc,
required DateTime updateAt,
required DateTime createAt,
}) =>
CardsCompanion.insert(
id: id,
userId: userId,
image: image,
name: name,
desc: desc,
updateAt: updateAt,
createAt: createAt,
),
));