$$DeviceResourceAuditTableTableManager constructor

$$DeviceResourceAuditTableTableManager(
  1. _$ACLDatabase db,
  2. $DeviceResourceAuditTable table
)

Implementation

$$DeviceResourceAuditTableTableManager(
    _$ACLDatabase db, $DeviceResourceAuditTable table)
    : super(TableManagerState(
        db: db,
        table: table,
        createFilteringComposer: () =>
            $$DeviceResourceAuditTableFilterComposer($db: db, $table: table),
        createOrderingComposer: () =>
            $$DeviceResourceAuditTableOrderingComposer(
                $db: db, $table: table),
        createComputedFieldComposer: () =>
            $$DeviceResourceAuditTableAnnotationComposer(
                $db: db, $table: table),
        updateCompanionCallback: ({
          Value<int> id = const Value.absent(),
          Value<DateTime> createdAt = const Value.absent(),
          Value<double> cpuUsage = const Value.absent(),
          Value<double> ramInMB = const Value.absent(),
          Value<double> freeRamInMB = const Value.absent(),
          Value<double> storageInMB = const Value.absent(),
          Value<double> freeStorageInMB = const Value.absent(),
        }) =>
            DeviceResourceAuditCompanion(
          id: id,
          createdAt: createdAt,
          cpuUsage: cpuUsage,
          ramInMB: ramInMB,
          freeRamInMB: freeRamInMB,
          storageInMB: storageInMB,
          freeStorageInMB: freeStorageInMB,
        ),
        createCompanionCallback: ({
          Value<int> id = const Value.absent(),
          Value<DateTime> createdAt = const Value.absent(),
          required double cpuUsage,
          required double ramInMB,
          required double freeRamInMB,
          required double storageInMB,
          required double freeStorageInMB,
        }) =>
            DeviceResourceAuditCompanion.insert(
          id: id,
          createdAt: createdAt,
          cpuUsage: cpuUsage,
          ramInMB: ramInMB,
          freeRamInMB: freeRamInMB,
          storageInMB: storageInMB,
          freeStorageInMB: freeStorageInMB,
        ),
        withReferenceMapper: (p0) => p0
            .map((e) => (e.readTable(table), BaseReferences(db, table, e)))
            .toList(),
        prefetchHooksCallback: null,
      ));