$$BatteryAuditTableTableManager constructor

$$BatteryAuditTableTableManager(
  1. _$ACLDatabase db,
  2. $BatteryAuditTable table
)

Implementation

$$BatteryAuditTableTableManager(_$ACLDatabase db, $BatteryAuditTable table)
    : super(TableManagerState(
        db: db,
        table: table,
        createFilteringComposer: () =>
            $$BatteryAuditTableFilterComposer($db: db, $table: table),
        createOrderingComposer: () =>
            $$BatteryAuditTableOrderingComposer($db: db, $table: table),
        createComputedFieldComposer: () =>
            $$BatteryAuditTableAnnotationComposer($db: db, $table: table),
        updateCompanionCallback: ({
          Value<int> id = const Value.absent(),
          Value<DateTime> createdAt = const Value.absent(),
          Value<int> percentage = const Value.absent(),
          Value<bool> isCharging = const Value.absent(),
          Value<BatteryAuditStatus> status = const Value.absent(),
          Value<int> capacity = const Value.absent(),
          Value<bool> isScreenOn = const Value.absent(),
        }) =>
            BatteryAuditCompanion(
          id: id,
          createdAt: createdAt,
          percentage: percentage,
          isCharging: isCharging,
          status: status,
          capacity: capacity,
          isScreenOn: isScreenOn,
        ),
        createCompanionCallback: ({
          Value<int> id = const Value.absent(),
          Value<DateTime> createdAt = const Value.absent(),
          required int percentage,
          required bool isCharging,
          required BatteryAuditStatus status,
          required int capacity,
          required bool isScreenOn,
        }) =>
            BatteryAuditCompanion.insert(
          id: id,
          createdAt: createdAt,
          percentage: percentage,
          isCharging: isCharging,
          status: status,
          capacity: capacity,
          isScreenOn: isScreenOn,
        ),
        withReferenceMapper: (p0) => p0
            .map((e) => (e.readTable(table), BaseReferences(db, table, e)))
            .toList(),
        prefetchHooksCallback: null,
      ));