$$NodesTableTableManager constructor
$$NodesTableTableManager(
- _$AirpassDatabase db,
- $NodesTable table
Implementation
$$NodesTableTableManager(_$AirpassDatabase db, $NodesTable table)
: super(
TableManagerState(
db: db,
table: table,
createFilteringComposer: () =>
$$NodesTableFilterComposer($db: db, $table: table),
createOrderingComposer: () =>
$$NodesTableOrderingComposer($db: db, $table: table),
createComputedFieldComposer: () =>
$$NodesTableAnnotationComposer($db: db, $table: table),
updateCompanionCallback:
({
Value<String> nodeId = const Value.absent(),
Value<int> role = const Value.absent(),
Value<String?> groupId = const Value.absent(),
Value<int> lastSeen = const Value.absent(),
Value<int> hopCount = const Value.absent(),
Value<String?> displayName = const Value.absent(),
Value<int?> batteryLevel = const Value.absent(),
Value<bool> hasInternetAccess = const Value.absent(),
Value<String?> metadata = const Value.absent(),
Value<int> rowid = const Value.absent(),
}) => NodesCompanion(
nodeId: nodeId,
role: role,
groupId: groupId,
lastSeen: lastSeen,
hopCount: hopCount,
displayName: displayName,
batteryLevel: batteryLevel,
hasInternetAccess: hasInternetAccess,
metadata: metadata,
rowid: rowid,
),
createCompanionCallback:
({
required String nodeId,
Value<int> role = const Value.absent(),
Value<String?> groupId = const Value.absent(),
required int lastSeen,
Value<int> hopCount = const Value.absent(),
Value<String?> displayName = const Value.absent(),
Value<int?> batteryLevel = const Value.absent(),
Value<bool> hasInternetAccess = const Value.absent(),
Value<String?> metadata = const Value.absent(),
Value<int> rowid = const Value.absent(),
}) => NodesCompanion.insert(
nodeId: nodeId,
role: role,
groupId: groupId,
lastSeen: lastSeen,
hopCount: hopCount,
displayName: displayName,
batteryLevel: batteryLevel,
hasInternetAccess: hasInternetAccess,
metadata: metadata,
rowid: rowid,
),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
.toList(),
prefetchHooksCallback: null,
),
);