$$PortalApplicationFavoritesTableTableManager constructor
Implementation
$$PortalApplicationFavoritesTableTableManager(
_$AppDatabase db,
$PortalApplicationFavoritesTable table,
) : super(
TableManagerState(
db: db,
table: table,
createFilteringComposer: () =>
$$PortalApplicationFavoritesTableFilterComposer(
$db: db,
$table: table,
),
createOrderingComposer: () =>
$$PortalApplicationFavoritesTableOrderingComposer(
$db: db,
$table: table,
),
createComputedFieldComposer: () =>
$$PortalApplicationFavoritesTableAnnotationComposer(
$db: db,
$table: table,
),
updateCompanionCallback:
({
Value<int> user = const Value.absent(),
Value<String> applicationCode = const Value.absent(),
Value<int> rowid = const Value.absent(),
}) => PortalApplicationFavoritesCompanion(
user: user,
applicationCode: applicationCode,
rowid: rowid,
),
createCompanionCallback:
({
required int user,
required String applicationCode,
Value<int> rowid = const Value.absent(),
}) => PortalApplicationFavoritesCompanion.insert(
user: user,
applicationCode: applicationCode,
rowid: rowid,
),
withReferenceMapper: (p0) => p0
.map(
(e) => (
e.readTable(table),
$$PortalApplicationFavoritesTableReferences(db, table, e),
),
)
.toList(),
prefetchHooksCallback: ({user = false}) {
return PrefetchHooks(
db: db,
explicitlyWatchedTables: [],
addJoins:
<
T extends TableManagerState<
dynamic,
dynamic,
dynamic,
dynamic,
dynamic,
dynamic,
dynamic,
dynamic,
dynamic,
dynamic,
dynamic
>
>(state) {
if (user) {
state =
state.withJoin(
currentTable: table,
currentColumn: table.user,
referencedTable:
$$PortalApplicationFavoritesTableReferences
._userTable(db),
referencedColumn:
$$PortalApplicationFavoritesTableReferences
._userTable(db)
.id,
)
as T;
}
return state;
},
getPrefetchedDataCallback: (items) async {
return [];
},
);
},
),
);