$$GroupsTableTableManager constructor

$$GroupsTableTableManager(
  1. _$AirpassDatabase db,
  2. $GroupsTable table
)

Implementation

$$GroupsTableTableManager(_$AirpassDatabase db, $GroupsTable table)
  : super(
      TableManagerState(
        db: db,
        table: table,
        createFilteringComposer: () =>
            $$GroupsTableFilterComposer($db: db, $table: table),
        createOrderingComposer: () =>
            $$GroupsTableOrderingComposer($db: db, $table: table),
        createComputedFieldComposer: () =>
            $$GroupsTableAnnotationComposer($db: db, $table: table),
        updateCompanionCallback:
            ({
              Value<String> groupId = const Value.absent(),
              Value<String> displayName = const Value.absent(),
              Value<int> discoveredAt = const Value.absent(),
              Value<int> lastSeenAt = const Value.absent(),
              Value<int> memberCount = const Value.absent(),
              Value<bool> isSubscribed = const Value.absent(),
              Value<String?> metadata = const Value.absent(),
              Value<int> rowid = const Value.absent(),
            }) => GroupsCompanion(
              groupId: groupId,
              displayName: displayName,
              discoveredAt: discoveredAt,
              lastSeenAt: lastSeenAt,
              memberCount: memberCount,
              isSubscribed: isSubscribed,
              metadata: metadata,
              rowid: rowid,
            ),
        createCompanionCallback:
            ({
              required String groupId,
              required String displayName,
              required int discoveredAt,
              required int lastSeenAt,
              Value<int> memberCount = const Value.absent(),
              Value<bool> isSubscribed = const Value.absent(),
              Value<String?> metadata = const Value.absent(),
              Value<int> rowid = const Value.absent(),
            }) => GroupsCompanion.insert(
              groupId: groupId,
              displayName: displayName,
              discoveredAt: discoveredAt,
              lastSeenAt: lastSeenAt,
              memberCount: memberCount,
              isSubscribed: isSubscribed,
              metadata: metadata,
              rowid: rowid,
            ),
        withReferenceMapper: (p0) => p0
            .map((e) => (e.readTable(table), BaseReferences(db, table, e)))
            .toList(),
        prefetchHooksCallback: null,
      ),
    );