$$SyllabusSectionsTableTableManager constructor

$$SyllabusSectionsTableTableManager(
  1. _$AppDatabase db,
  2. $SyllabusSectionsTable table
)

Implementation

$$SyllabusSectionsTableTableManager(
  _$AppDatabase db,
  $SyllabusSectionsTable table,
) : super(
      TableManagerState(
        db: db,
        table: table,
        createFilteringComposer: () =>
            $$SyllabusSectionsTableFilterComposer($db: db, $table: table),
        createOrderingComposer: () =>
            $$SyllabusSectionsTableOrderingComposer($db: db, $table: table),
        createComputedFieldComposer: () =>
            $$SyllabusSectionsTableAnnotationComposer($db: db, $table: table),
        updateCompanionCallback:
            ({
              Value<int> id = const Value.absent(),
              Value<int> syllabus = const Value.absent(),
              Value<String> title = const Value.absent(),
              Value<String?> content = const Value.absent(),
              Value<int> position = const Value.absent(),
            }) => SyllabusSectionsCompanion(
              id: id,
              syllabus: syllabus,
              title: title,
              content: content,
              position: position,
            ),
        createCompanionCallback:
            ({
              Value<int> id = const Value.absent(),
              required int syllabus,
              required String title,
              Value<String?> content = const Value.absent(),
              required int position,
            }) => SyllabusSectionsCompanion.insert(
              id: id,
              syllabus: syllabus,
              title: title,
              content: content,
              position: position,
            ),
        withReferenceMapper: (p0) => p0
            .map(
              (e) => (
                e.readTable<$SyllabusSectionsTable, SyllabusSection>(table),
                $$SyllabusSectionsTableReferences(db, table, e),
              ),
            )
            .toList(),
        prefetchHooksCallback: ({syllabus = false}) {
          return PrefetchHooks(
            db: db,
            explicitlyWatchedTables: [],
            addJoins:
                <
                  T extends TableManagerState<
                    dynamic,
                    dynamic,
                    dynamic,
                    dynamic,
                    dynamic,
                    dynamic,
                    dynamic,
                    dynamic,
                    dynamic,
                    dynamic,
                    dynamic
                  >
                >(state) {
                  if (syllabus) {
                    state = state.withJoin(
                      currentTable: table,
                      currentColumn: table.syllabus,
                      referencedTable: $$SyllabusSectionsTableReferences
                          ._syllabusTable(db),
                      referencedColumn: $$SyllabusSectionsTableReferences
                          ._syllabusTable(db)
                          .id,
                    ) as T;
                  }

                  return state;
                },
            getPrefetchedDataCallback: (items) async {
              return [];
            },
          );
        },
      ),
    );