From 86e1d19dcbf95a1d31f4495bbce3a01af49b85e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=85=B1=E5=A4=A9=E5=B0=8F=E7=A6=BD=E5=85=BD?= Date: Sun, 27 Oct 2024 01:09:11 +0800 Subject: [PATCH] build --- .github/workflows/build_publish.yml | 2 + lib/src/database/database.g.dart | 3708 ++++++++++------- .../read/layout/base/base_layout_logic.dart | 19 +- lib/src/setting/security_setting.dart | 6 +- lib/src/widget/app_manager.dart | 4 +- pubspec.lock | 111 +- pubspec.yaml | 24 +- 7 files changed, 2368 insertions(+), 1506 deletions(-) diff --git a/.github/workflows/build_publish.yml b/.github/workflows/build_publish.yml index 8ca67ea1..a22abd60 100644 --- a/.github/workflows/build_publish.yml +++ b/.github/workflows/build_publish.yml @@ -113,6 +113,7 @@ jobs: - name: Build iOS if: matrix.target == 'ios' run: | + flutter precache --ios cd ios pod update cd .. @@ -126,6 +127,7 @@ jobs: - name: Build macOS if: matrix.target == 'macOS' run: | + flutter precache --macos cd macos pod update cd .. diff --git a/lib/src/database/database.g.dart b/lib/src/database/database.g.dart index bff55f82..a21c2aff 100644 --- a/lib/src/database/database.g.dart +++ b/lib/src/database/database.g.dart @@ -6703,23 +6703,103 @@ typedef $$OldSuperResolutionInfoTableUpdateCompanionBuilder Value imageStatuses, }); +class $$OldSuperResolutionInfoTableFilterComposer + extends Composer<_$AppDb, $OldSuperResolutionInfoTable> { + $$OldSuperResolutionInfoTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnFilters(column)); + + ColumnFilters get type => $composableBuilder( + column: $table.type, builder: (column) => ColumnFilters(column)); + + ColumnFilters get status => $composableBuilder( + column: $table.status, builder: (column) => ColumnFilters(column)); + + ColumnFilters get imageStatuses => $composableBuilder( + column: $table.imageStatuses, builder: (column) => ColumnFilters(column)); +} + +class $$OldSuperResolutionInfoTableOrderingComposer + extends Composer<_$AppDb, $OldSuperResolutionInfoTable> { + $$OldSuperResolutionInfoTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get type => $composableBuilder( + column: $table.type, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get status => $composableBuilder( + column: $table.status, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get imageStatuses => $composableBuilder( + column: $table.imageStatuses, + builder: (column) => ColumnOrderings(column)); +} + +class $$OldSuperResolutionInfoTableAnnotationComposer + extends Composer<_$AppDb, $OldSuperResolutionInfoTable> { + $$OldSuperResolutionInfoTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get gid => + $composableBuilder(column: $table.gid, builder: (column) => column); + + GeneratedColumn get type => + $composableBuilder(column: $table.type, builder: (column) => column); + + GeneratedColumn get status => + $composableBuilder(column: $table.status, builder: (column) => column); + + GeneratedColumn get imageStatuses => $composableBuilder( + column: $table.imageStatuses, builder: (column) => column); +} + class $$OldSuperResolutionInfoTableTableManager extends RootTableManager< _$AppDb, $OldSuperResolutionInfoTable, OldSuperResolutionInfoData, $$OldSuperResolutionInfoTableFilterComposer, $$OldSuperResolutionInfoTableOrderingComposer, + $$OldSuperResolutionInfoTableAnnotationComposer, $$OldSuperResolutionInfoTableCreateCompanionBuilder, - $$OldSuperResolutionInfoTableUpdateCompanionBuilder> { + $$OldSuperResolutionInfoTableUpdateCompanionBuilder, + ( + OldSuperResolutionInfoData, + BaseReferences<_$AppDb, $OldSuperResolutionInfoTable, + OldSuperResolutionInfoData> + ), + OldSuperResolutionInfoData, + PrefetchHooks Function()> { $$OldSuperResolutionInfoTableTableManager( _$AppDb db, $OldSuperResolutionInfoTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: $$OldSuperResolutionInfoTableFilterComposer( - ComposerState(db, table)), - orderingComposer: $$OldSuperResolutionInfoTableOrderingComposer( - ComposerState(db, table)), + createFilteringComposer: () => + $$OldSuperResolutionInfoTableFilterComposer( + $db: db, $table: table), + createOrderingComposer: () => + $$OldSuperResolutionInfoTableOrderingComposer( + $db: db, $table: table), + createComputedFieldComposer: () => + $$OldSuperResolutionInfoTableAnnotationComposer( + $db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value type = const Value.absent(), @@ -6744,57 +6824,30 @@ class $$OldSuperResolutionInfoTableTableManager extends RootTableManager< status: status, imageStatuses: imageStatuses, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$OldSuperResolutionInfoTableFilterComposer - extends FilterComposer<_$AppDb, $OldSuperResolutionInfoTable> { - $$OldSuperResolutionInfoTableFilterComposer(super.$state); - ColumnFilters get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get type => $state.composableBuilder( - column: $state.table.type, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get status => $state.composableBuilder( - column: $state.table.status, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get imageStatuses => $state.composableBuilder( - column: $state.table.imageStatuses, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$OldSuperResolutionInfoTableOrderingComposer - extends OrderingComposer<_$AppDb, $OldSuperResolutionInfoTable> { - $$OldSuperResolutionInfoTableOrderingComposer(super.$state); - ColumnOrderings get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get type => $state.composableBuilder( - column: $state.table.type, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get status => $state.composableBuilder( - column: $state.table.status, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get imageStatuses => $state.composableBuilder( - column: $state.table.imageStatuses, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$OldSuperResolutionInfoTableProcessedTableManager + = ProcessedTableManager< + _$AppDb, + $OldSuperResolutionInfoTable, + OldSuperResolutionInfoData, + $$OldSuperResolutionInfoTableFilterComposer, + $$OldSuperResolutionInfoTableOrderingComposer, + $$OldSuperResolutionInfoTableAnnotationComposer, + $$OldSuperResolutionInfoTableCreateCompanionBuilder, + $$OldSuperResolutionInfoTableUpdateCompanionBuilder, + ( + OldSuperResolutionInfoData, + BaseReferences<_$AppDb, $OldSuperResolutionInfoTable, + OldSuperResolutionInfoData> + ), + OldSuperResolutionInfoData, + PrefetchHooks Function()>; typedef $$SuperResolutionInfoTableCreateCompanionBuilder = SuperResolutionInfoCompanion Function({ required int gid, @@ -6812,23 +6865,102 @@ typedef $$SuperResolutionInfoTableUpdateCompanionBuilder Value rowid, }); +class $$SuperResolutionInfoTableFilterComposer + extends Composer<_$AppDb, $SuperResolutionInfoTable> { + $$SuperResolutionInfoTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnFilters(column)); + + ColumnFilters get type => $composableBuilder( + column: $table.type, builder: (column) => ColumnFilters(column)); + + ColumnFilters get status => $composableBuilder( + column: $table.status, builder: (column) => ColumnFilters(column)); + + ColumnFilters get imageStatuses => $composableBuilder( + column: $table.imageStatuses, builder: (column) => ColumnFilters(column)); +} + +class $$SuperResolutionInfoTableOrderingComposer + extends Composer<_$AppDb, $SuperResolutionInfoTable> { + $$SuperResolutionInfoTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get type => $composableBuilder( + column: $table.type, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get status => $composableBuilder( + column: $table.status, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get imageStatuses => $composableBuilder( + column: $table.imageStatuses, + builder: (column) => ColumnOrderings(column)); +} + +class $$SuperResolutionInfoTableAnnotationComposer + extends Composer<_$AppDb, $SuperResolutionInfoTable> { + $$SuperResolutionInfoTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get gid => + $composableBuilder(column: $table.gid, builder: (column) => column); + + GeneratedColumn get type => + $composableBuilder(column: $table.type, builder: (column) => column); + + GeneratedColumn get status => + $composableBuilder(column: $table.status, builder: (column) => column); + + GeneratedColumn get imageStatuses => $composableBuilder( + column: $table.imageStatuses, builder: (column) => column); +} + class $$SuperResolutionInfoTableTableManager extends RootTableManager< _$AppDb, $SuperResolutionInfoTable, SuperResolutionInfoData, $$SuperResolutionInfoTableFilterComposer, $$SuperResolutionInfoTableOrderingComposer, + $$SuperResolutionInfoTableAnnotationComposer, $$SuperResolutionInfoTableCreateCompanionBuilder, - $$SuperResolutionInfoTableUpdateCompanionBuilder> { + $$SuperResolutionInfoTableUpdateCompanionBuilder, + ( + SuperResolutionInfoData, + BaseReferences<_$AppDb, $SuperResolutionInfoTable, + SuperResolutionInfoData> + ), + SuperResolutionInfoData, + PrefetchHooks Function()> { $$SuperResolutionInfoTableTableManager( _$AppDb db, $SuperResolutionInfoTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: $$SuperResolutionInfoTableFilterComposer( - ComposerState(db, table)), - orderingComposer: $$SuperResolutionInfoTableOrderingComposer( - ComposerState(db, table)), + createFilteringComposer: () => + $$SuperResolutionInfoTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$SuperResolutionInfoTableOrderingComposer( + $db: db, $table: table), + createComputedFieldComposer: () => + $$SuperResolutionInfoTableAnnotationComposer( + $db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value type = const Value.absent(), @@ -6857,57 +6989,29 @@ class $$SuperResolutionInfoTableTableManager extends RootTableManager< imageStatuses: imageStatuses, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$SuperResolutionInfoTableFilterComposer - extends FilterComposer<_$AppDb, $SuperResolutionInfoTable> { - $$SuperResolutionInfoTableFilterComposer(super.$state); - ColumnFilters get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get type => $state.composableBuilder( - column: $state.table.type, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get status => $state.composableBuilder( - column: $state.table.status, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get imageStatuses => $state.composableBuilder( - column: $state.table.imageStatuses, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$SuperResolutionInfoTableOrderingComposer - extends OrderingComposer<_$AppDb, $SuperResolutionInfoTable> { - $$SuperResolutionInfoTableOrderingComposer(super.$state); - ColumnOrderings get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get type => $state.composableBuilder( - column: $state.table.type, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get status => $state.composableBuilder( - column: $state.table.status, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get imageStatuses => $state.composableBuilder( - column: $state.table.imageStatuses, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$SuperResolutionInfoTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $SuperResolutionInfoTable, + SuperResolutionInfoData, + $$SuperResolutionInfoTableFilterComposer, + $$SuperResolutionInfoTableOrderingComposer, + $$SuperResolutionInfoTableAnnotationComposer, + $$SuperResolutionInfoTableCreateCompanionBuilder, + $$SuperResolutionInfoTableUpdateCompanionBuilder, + ( + SuperResolutionInfoData, + BaseReferences<_$AppDb, $SuperResolutionInfoTable, + SuperResolutionInfoData> + ), + SuperResolutionInfoData, + PrefetchHooks Function()>; typedef $$TagTableCreateCompanionBuilder = TagCompanion Function({ required String namespace, required String key, @@ -6929,21 +7033,120 @@ typedef $$TagTableUpdateCompanionBuilder = TagCompanion Function({ Value rowid, }); +class $$TagTableFilterComposer extends Composer<_$AppDb, $TagTable> { + $$TagTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get namespace => $composableBuilder( + column: $table.namespace, builder: (column) => ColumnFilters(column)); + + ColumnFilters get key => $composableBuilder( + column: $table.key, builder: (column) => ColumnFilters(column)); + + ColumnFilters get translatedNamespace => $composableBuilder( + column: $table.translatedNamespace, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get tagName => $composableBuilder( + column: $table.tagName, builder: (column) => ColumnFilters(column)); + + ColumnFilters get fullTagName => $composableBuilder( + column: $table.fullTagName, builder: (column) => ColumnFilters(column)); + + ColumnFilters get intro => $composableBuilder( + column: $table.intro, builder: (column) => ColumnFilters(column)); + + ColumnFilters get links => $composableBuilder( + column: $table.links, builder: (column) => ColumnFilters(column)); +} + +class $$TagTableOrderingComposer extends Composer<_$AppDb, $TagTable> { + $$TagTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get namespace => $composableBuilder( + column: $table.namespace, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get key => $composableBuilder( + column: $table.key, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get translatedNamespace => $composableBuilder( + column: $table.translatedNamespace, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get tagName => $composableBuilder( + column: $table.tagName, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get fullTagName => $composableBuilder( + column: $table.fullTagName, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get intro => $composableBuilder( + column: $table.intro, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get links => $composableBuilder( + column: $table.links, builder: (column) => ColumnOrderings(column)); +} + +class $$TagTableAnnotationComposer extends Composer<_$AppDb, $TagTable> { + $$TagTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get namespace => + $composableBuilder(column: $table.namespace, builder: (column) => column); + + GeneratedColumn get key => + $composableBuilder(column: $table.key, builder: (column) => column); + + GeneratedColumn get translatedNamespace => $composableBuilder( + column: $table.translatedNamespace, builder: (column) => column); + + GeneratedColumn get tagName => + $composableBuilder(column: $table.tagName, builder: (column) => column); + + GeneratedColumn get fullTagName => $composableBuilder( + column: $table.fullTagName, builder: (column) => column); + + GeneratedColumn get intro => + $composableBuilder(column: $table.intro, builder: (column) => column); + + GeneratedColumn get links => + $composableBuilder(column: $table.links, builder: (column) => column); +} + class $$TagTableTableManager extends RootTableManager< _$AppDb, $TagTable, TagData, $$TagTableFilterComposer, $$TagTableOrderingComposer, + $$TagTableAnnotationComposer, $$TagTableCreateCompanionBuilder, - $$TagTableUpdateCompanionBuilder> { + $$TagTableUpdateCompanionBuilder, + (TagData, BaseReferences<_$AppDb, $TagTable, TagData>), + TagData, + PrefetchHooks Function()> { $$TagTableTableManager(_$AppDb db, $TagTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: $$TagTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$TagTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$TagTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$TagTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$TagTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value namespace = const Value.absent(), Value key = const Value.absent(), @@ -6984,85 +7187,25 @@ class $$TagTableTableManager extends RootTableManager< links: links, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$TagTableFilterComposer extends FilterComposer<_$AppDb, $TagTable> { - $$TagTableFilterComposer(super.$state); - ColumnFilters get namespace => $state.composableBuilder( - column: $state.table.namespace, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get key => $state.composableBuilder( - column: $state.table.key, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get translatedNamespace => $state.composableBuilder( - column: $state.table.translatedNamespace, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get tagName => $state.composableBuilder( - column: $state.table.tagName, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get fullTagName => $state.composableBuilder( - column: $state.table.fullTagName, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get intro => $state.composableBuilder( - column: $state.table.intro, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get links => $state.composableBuilder( - column: $state.table.links, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$TagTableOrderingComposer extends OrderingComposer<_$AppDb, $TagTable> { - $$TagTableOrderingComposer(super.$state); - ColumnOrderings get namespace => $state.composableBuilder( - column: $state.table.namespace, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get key => $state.composableBuilder( - column: $state.table.key, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get translatedNamespace => $state.composableBuilder( - column: $state.table.translatedNamespace, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get tagName => $state.composableBuilder( - column: $state.table.tagName, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get fullTagName => $state.composableBuilder( - column: $state.table.fullTagName, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get intro => $state.composableBuilder( - column: $state.table.intro, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get links => $state.composableBuilder( - column: $state.table.links, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$TagTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $TagTable, + TagData, + $$TagTableFilterComposer, + $$TagTableOrderingComposer, + $$TagTableAnnotationComposer, + $$TagTableCreateCompanionBuilder, + $$TagTableUpdateCompanionBuilder, + (TagData, BaseReferences<_$AppDb, $TagTable, TagData>), + TagData, + PrefetchHooks Function()>; typedef $$ArchiveDownloadedTableCreateCompanionBuilder = ArchiveDownloadedCompanion Function({ Value gid, @@ -7110,23 +7253,251 @@ typedef $$ArchiveDownloadedTableUpdateCompanionBuilder Value tagRefreshTime, }); +class $$ArchiveDownloadedTableFilterComposer + extends Composer<_$AppDb, $ArchiveDownloadedTable> { + $$ArchiveDownloadedTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnFilters(column)); + + ColumnFilters get token => $composableBuilder( + column: $table.token, builder: (column) => ColumnFilters(column)); + + ColumnFilters get title => $composableBuilder( + column: $table.title, builder: (column) => ColumnFilters(column)); + + ColumnFilters get category => $composableBuilder( + column: $table.category, builder: (column) => ColumnFilters(column)); + + ColumnFilters get pageCount => $composableBuilder( + column: $table.pageCount, builder: (column) => ColumnFilters(column)); + + ColumnFilters get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => ColumnFilters(column)); + + ColumnFilters get coverUrl => $composableBuilder( + column: $table.coverUrl, builder: (column) => ColumnFilters(column)); + + ColumnFilters get uploader => $composableBuilder( + column: $table.uploader, builder: (column) => ColumnFilters(column)); + + ColumnFilters get size => $composableBuilder( + column: $table.size, builder: (column) => ColumnFilters(column)); + + ColumnFilters get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => ColumnFilters(column)); + + ColumnFilters get archiveStatusCode => $composableBuilder( + column: $table.archiveStatusCode, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get archivePageUrl => $composableBuilder( + column: $table.archivePageUrl, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadPageUrl => $composableBuilder( + column: $table.downloadPageUrl, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadUrl => $composableBuilder( + column: $table.downloadUrl, builder: (column) => ColumnFilters(column)); + + ColumnFilters get isOriginal => $composableBuilder( + column: $table.isOriginal, builder: (column) => ColumnFilters(column)); + + ColumnFilters get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => ColumnFilters(column)); + + ColumnFilters get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnFilters(column)); + + ColumnFilters get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnFilters(column)); + + ColumnFilters get tags => $composableBuilder( + column: $table.tags, builder: (column) => ColumnFilters(column)); + + ColumnFilters get tagRefreshTime => $composableBuilder( + column: $table.tagRefreshTime, + builder: (column) => ColumnFilters(column)); +} + +class $$ArchiveDownloadedTableOrderingComposer + extends Composer<_$AppDb, $ArchiveDownloadedTable> { + $$ArchiveDownloadedTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get token => $composableBuilder( + column: $table.token, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get title => $composableBuilder( + column: $table.title, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get category => $composableBuilder( + column: $table.category, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get pageCount => $composableBuilder( + column: $table.pageCount, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get coverUrl => $composableBuilder( + column: $table.coverUrl, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get uploader => $composableBuilder( + column: $table.uploader, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get size => $composableBuilder( + column: $table.size, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get archiveStatusCode => $composableBuilder( + column: $table.archiveStatusCode, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get archivePageUrl => $composableBuilder( + column: $table.archivePageUrl, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadPageUrl => $composableBuilder( + column: $table.downloadPageUrl, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadUrl => $composableBuilder( + column: $table.downloadUrl, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get isOriginal => $composableBuilder( + column: $table.isOriginal, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get tags => $composableBuilder( + column: $table.tags, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get tagRefreshTime => $composableBuilder( + column: $table.tagRefreshTime, + builder: (column) => ColumnOrderings(column)); +} + +class $$ArchiveDownloadedTableAnnotationComposer + extends Composer<_$AppDb, $ArchiveDownloadedTable> { + $$ArchiveDownloadedTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get gid => + $composableBuilder(column: $table.gid, builder: (column) => column); + + GeneratedColumn get token => + $composableBuilder(column: $table.token, builder: (column) => column); + + GeneratedColumn get title => + $composableBuilder(column: $table.title, builder: (column) => column); + + GeneratedColumn get category => + $composableBuilder(column: $table.category, builder: (column) => column); + + GeneratedColumn get pageCount => + $composableBuilder(column: $table.pageCount, builder: (column) => column); + + GeneratedColumn get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => column); + + GeneratedColumn get coverUrl => + $composableBuilder(column: $table.coverUrl, builder: (column) => column); + + GeneratedColumn get uploader => + $composableBuilder(column: $table.uploader, builder: (column) => column); + + GeneratedColumn get size => + $composableBuilder(column: $table.size, builder: (column) => column); + + GeneratedColumn get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => column); + + GeneratedColumn get archiveStatusCode => $composableBuilder( + column: $table.archiveStatusCode, builder: (column) => column); + + GeneratedColumn get archivePageUrl => $composableBuilder( + column: $table.archivePageUrl, builder: (column) => column); + + GeneratedColumn get downloadPageUrl => $composableBuilder( + column: $table.downloadPageUrl, builder: (column) => column); + + GeneratedColumn get downloadUrl => $composableBuilder( + column: $table.downloadUrl, builder: (column) => column); + + GeneratedColumn get isOriginal => $composableBuilder( + column: $table.isOriginal, builder: (column) => column); + + GeneratedColumn get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => column); + + GeneratedColumn get sortOrder => + $composableBuilder(column: $table.sortOrder, builder: (column) => column); + + GeneratedColumn get groupName => + $composableBuilder(column: $table.groupName, builder: (column) => column); + + GeneratedColumn get tags => + $composableBuilder(column: $table.tags, builder: (column) => column); + + GeneratedColumn get tagRefreshTime => $composableBuilder( + column: $table.tagRefreshTime, builder: (column) => column); +} + class $$ArchiveDownloadedTableTableManager extends RootTableManager< _$AppDb, $ArchiveDownloadedTable, ArchiveDownloadedData, $$ArchiveDownloadedTableFilterComposer, $$ArchiveDownloadedTableOrderingComposer, + $$ArchiveDownloadedTableAnnotationComposer, $$ArchiveDownloadedTableCreateCompanionBuilder, - $$ArchiveDownloadedTableUpdateCompanionBuilder> { + $$ArchiveDownloadedTableUpdateCompanionBuilder, + ( + ArchiveDownloadedData, + BaseReferences<_$AppDb, $ArchiveDownloadedTable, ArchiveDownloadedData> + ), + ArchiveDownloadedData, + PrefetchHooks Function()> { $$ArchiveDownloadedTableTableManager( _$AppDb db, $ArchiveDownloadedTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$ArchiveDownloadedTableFilterComposer(ComposerState(db, table)), - orderingComposer: $$ArchiveDownloadedTableOrderingComposer( - ComposerState(db, table)), + createFilteringComposer: () => + $$ArchiveDownloadedTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$ArchiveDownloadedTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$ArchiveDownloadedTableAnnotationComposer( + $db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value token = const Value.absent(), @@ -7215,217 +7586,28 @@ class $$ArchiveDownloadedTableTableManager extends RootTableManager< tags: tags, tagRefreshTime: tagRefreshTime, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$ArchiveDownloadedTableFilterComposer - extends FilterComposer<_$AppDb, $ArchiveDownloadedTable> { - $$ArchiveDownloadedTableFilterComposer(super.$state); - ColumnFilters get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get token => $state.composableBuilder( - column: $state.table.token, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get title => $state.composableBuilder( - column: $state.table.title, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get category => $state.composableBuilder( - column: $state.table.category, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get pageCount => $state.composableBuilder( - column: $state.table.pageCount, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get galleryUrl => $state.composableBuilder( - column: $state.table.galleryUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get coverUrl => $state.composableBuilder( - column: $state.table.coverUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get uploader => $state.composableBuilder( - column: $state.table.uploader, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get size => $state.composableBuilder( - column: $state.table.size, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get publishTime => $state.composableBuilder( - column: $state.table.publishTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get archiveStatusCode => $state.composableBuilder( - column: $state.table.archiveStatusCode, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get archivePageUrl => $state.composableBuilder( - column: $state.table.archivePageUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadPageUrl => $state.composableBuilder( - column: $state.table.downloadPageUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadUrl => $state.composableBuilder( - column: $state.table.downloadUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get isOriginal => $state.composableBuilder( - column: $state.table.isOriginal, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get insertTime => $state.composableBuilder( - column: $state.table.insertTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get tags => $state.composableBuilder( - column: $state.table.tags, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get tagRefreshTime => $state.composableBuilder( - column: $state.table.tagRefreshTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$ArchiveDownloadedTableOrderingComposer - extends OrderingComposer<_$AppDb, $ArchiveDownloadedTable> { - $$ArchiveDownloadedTableOrderingComposer(super.$state); - ColumnOrderings get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get token => $state.composableBuilder( - column: $state.table.token, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get title => $state.composableBuilder( - column: $state.table.title, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get category => $state.composableBuilder( - column: $state.table.category, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get pageCount => $state.composableBuilder( - column: $state.table.pageCount, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get galleryUrl => $state.composableBuilder( - column: $state.table.galleryUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get coverUrl => $state.composableBuilder( - column: $state.table.coverUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get uploader => $state.composableBuilder( - column: $state.table.uploader, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get size => $state.composableBuilder( - column: $state.table.size, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get publishTime => $state.composableBuilder( - column: $state.table.publishTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get archiveStatusCode => $state.composableBuilder( - column: $state.table.archiveStatusCode, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get archivePageUrl => $state.composableBuilder( - column: $state.table.archivePageUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadPageUrl => $state.composableBuilder( - column: $state.table.downloadPageUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadUrl => $state.composableBuilder( - column: $state.table.downloadUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get isOriginal => $state.composableBuilder( - column: $state.table.isOriginal, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get insertTime => $state.composableBuilder( - column: $state.table.insertTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get tags => $state.composableBuilder( - column: $state.table.tags, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get tagRefreshTime => $state.composableBuilder( - column: $state.table.tagRefreshTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$ArchiveDownloadedTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $ArchiveDownloadedTable, + ArchiveDownloadedData, + $$ArchiveDownloadedTableFilterComposer, + $$ArchiveDownloadedTableOrderingComposer, + $$ArchiveDownloadedTableAnnotationComposer, + $$ArchiveDownloadedTableCreateCompanionBuilder, + $$ArchiveDownloadedTableUpdateCompanionBuilder, + ( + ArchiveDownloadedData, + BaseReferences<_$AppDb, $ArchiveDownloadedTable, ArchiveDownloadedData> + ), + ArchiveDownloadedData, + PrefetchHooks Function()>; typedef $$ArchiveDownloadedOldTableCreateCompanionBuilder = ArchiveDownloadedOldCompanion Function({ required int gid, @@ -7471,23 +7653,233 @@ typedef $$ArchiveDownloadedOldTableUpdateCompanionBuilder Value rowid, }); +class $$ArchiveDownloadedOldTableFilterComposer + extends Composer<_$AppDb, $ArchiveDownloadedOldTable> { + $$ArchiveDownloadedOldTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnFilters(column)); + + ColumnFilters get token => $composableBuilder( + column: $table.token, builder: (column) => ColumnFilters(column)); + + ColumnFilters get title => $composableBuilder( + column: $table.title, builder: (column) => ColumnFilters(column)); + + ColumnFilters get category => $composableBuilder( + column: $table.category, builder: (column) => ColumnFilters(column)); + + ColumnFilters get pageCount => $composableBuilder( + column: $table.pageCount, builder: (column) => ColumnFilters(column)); + + ColumnFilters get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => ColumnFilters(column)); + + ColumnFilters get coverUrl => $composableBuilder( + column: $table.coverUrl, builder: (column) => ColumnFilters(column)); + + ColumnFilters get uploader => $composableBuilder( + column: $table.uploader, builder: (column) => ColumnFilters(column)); + + ColumnFilters get size => $composableBuilder( + column: $table.size, builder: (column) => ColumnFilters(column)); + + ColumnFilters get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => ColumnFilters(column)); + + ColumnFilters get archiveStatusIndex => $composableBuilder( + column: $table.archiveStatusIndex, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get archivePageUrl => $composableBuilder( + column: $table.archivePageUrl, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadPageUrl => $composableBuilder( + column: $table.downloadPageUrl, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadUrl => $composableBuilder( + column: $table.downloadUrl, builder: (column) => ColumnFilters(column)); + + ColumnFilters get isOriginal => $composableBuilder( + column: $table.isOriginal, builder: (column) => ColumnFilters(column)); + + ColumnFilters get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => ColumnFilters(column)); + + ColumnFilters get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnFilters(column)); + + ColumnFilters get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnFilters(column)); +} + +class $$ArchiveDownloadedOldTableOrderingComposer + extends Composer<_$AppDb, $ArchiveDownloadedOldTable> { + $$ArchiveDownloadedOldTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get token => $composableBuilder( + column: $table.token, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get title => $composableBuilder( + column: $table.title, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get category => $composableBuilder( + column: $table.category, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get pageCount => $composableBuilder( + column: $table.pageCount, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get coverUrl => $composableBuilder( + column: $table.coverUrl, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get uploader => $composableBuilder( + column: $table.uploader, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get size => $composableBuilder( + column: $table.size, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get archiveStatusIndex => $composableBuilder( + column: $table.archiveStatusIndex, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get archivePageUrl => $composableBuilder( + column: $table.archivePageUrl, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadPageUrl => $composableBuilder( + column: $table.downloadPageUrl, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadUrl => $composableBuilder( + column: $table.downloadUrl, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get isOriginal => $composableBuilder( + column: $table.isOriginal, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnOrderings(column)); +} + +class $$ArchiveDownloadedOldTableAnnotationComposer + extends Composer<_$AppDb, $ArchiveDownloadedOldTable> { + $$ArchiveDownloadedOldTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get gid => + $composableBuilder(column: $table.gid, builder: (column) => column); + + GeneratedColumn get token => + $composableBuilder(column: $table.token, builder: (column) => column); + + GeneratedColumn get title => + $composableBuilder(column: $table.title, builder: (column) => column); + + GeneratedColumn get category => + $composableBuilder(column: $table.category, builder: (column) => column); + + GeneratedColumn get pageCount => + $composableBuilder(column: $table.pageCount, builder: (column) => column); + + GeneratedColumn get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => column); + + GeneratedColumn get coverUrl => + $composableBuilder(column: $table.coverUrl, builder: (column) => column); + + GeneratedColumn get uploader => + $composableBuilder(column: $table.uploader, builder: (column) => column); + + GeneratedColumn get size => + $composableBuilder(column: $table.size, builder: (column) => column); + + GeneratedColumn get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => column); + + GeneratedColumn get archiveStatusIndex => $composableBuilder( + column: $table.archiveStatusIndex, builder: (column) => column); + + GeneratedColumn get archivePageUrl => $composableBuilder( + column: $table.archivePageUrl, builder: (column) => column); + + GeneratedColumn get downloadPageUrl => $composableBuilder( + column: $table.downloadPageUrl, builder: (column) => column); + + GeneratedColumn get downloadUrl => $composableBuilder( + column: $table.downloadUrl, builder: (column) => column); + + GeneratedColumn get isOriginal => $composableBuilder( + column: $table.isOriginal, builder: (column) => column); + + GeneratedColumn get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => column); + + GeneratedColumn get sortOrder => + $composableBuilder(column: $table.sortOrder, builder: (column) => column); + + GeneratedColumn get groupName => + $composableBuilder(column: $table.groupName, builder: (column) => column); +} + class $$ArchiveDownloadedOldTableTableManager extends RootTableManager< _$AppDb, $ArchiveDownloadedOldTable, ArchiveDownloadedOldData, $$ArchiveDownloadedOldTableFilterComposer, $$ArchiveDownloadedOldTableOrderingComposer, + $$ArchiveDownloadedOldTableAnnotationComposer, $$ArchiveDownloadedOldTableCreateCompanionBuilder, - $$ArchiveDownloadedOldTableUpdateCompanionBuilder> { + $$ArchiveDownloadedOldTableUpdateCompanionBuilder, + ( + ArchiveDownloadedOldData, + BaseReferences<_$AppDb, $ArchiveDownloadedOldTable, + ArchiveDownloadedOldData> + ), + ArchiveDownloadedOldData, + PrefetchHooks Function()> { $$ArchiveDownloadedOldTableTableManager( _$AppDb db, $ArchiveDownloadedOldTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: $$ArchiveDownloadedOldTableFilterComposer( - ComposerState(db, table)), - orderingComposer: $$ArchiveDownloadedOldTableOrderingComposer( - ComposerState(db, table)), + createFilteringComposer: () => + $$ArchiveDownloadedOldTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$ArchiveDownloadedOldTableOrderingComposer( + $db: db, $table: table), + createComputedFieldComposer: () => + $$ArchiveDownloadedOldTableAnnotationComposer( + $db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value token = const Value.absent(), @@ -7572,197 +7964,30 @@ class $$ArchiveDownloadedOldTableTableManager extends RootTableManager< groupName: groupName, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$ArchiveDownloadedOldTableFilterComposer - extends FilterComposer<_$AppDb, $ArchiveDownloadedOldTable> { - $$ArchiveDownloadedOldTableFilterComposer(super.$state); - ColumnFilters get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get token => $state.composableBuilder( - column: $state.table.token, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get title => $state.composableBuilder( - column: $state.table.title, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get category => $state.composableBuilder( - column: $state.table.category, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get pageCount => $state.composableBuilder( - column: $state.table.pageCount, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get galleryUrl => $state.composableBuilder( - column: $state.table.galleryUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get coverUrl => $state.composableBuilder( - column: $state.table.coverUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get uploader => $state.composableBuilder( - column: $state.table.uploader, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get size => $state.composableBuilder( - column: $state.table.size, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get publishTime => $state.composableBuilder( - column: $state.table.publishTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get archiveStatusIndex => $state.composableBuilder( - column: $state.table.archiveStatusIndex, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get archivePageUrl => $state.composableBuilder( - column: $state.table.archivePageUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadPageUrl => $state.composableBuilder( - column: $state.table.downloadPageUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadUrl => $state.composableBuilder( - column: $state.table.downloadUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get isOriginal => $state.composableBuilder( - column: $state.table.isOriginal, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get insertTime => $state.composableBuilder( - column: $state.table.insertTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$ArchiveDownloadedOldTableOrderingComposer - extends OrderingComposer<_$AppDb, $ArchiveDownloadedOldTable> { - $$ArchiveDownloadedOldTableOrderingComposer(super.$state); - ColumnOrderings get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get token => $state.composableBuilder( - column: $state.table.token, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get title => $state.composableBuilder( - column: $state.table.title, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get category => $state.composableBuilder( - column: $state.table.category, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get pageCount => $state.composableBuilder( - column: $state.table.pageCount, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get galleryUrl => $state.composableBuilder( - column: $state.table.galleryUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get coverUrl => $state.composableBuilder( - column: $state.table.coverUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get uploader => $state.composableBuilder( - column: $state.table.uploader, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get size => $state.composableBuilder( - column: $state.table.size, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get publishTime => $state.composableBuilder( - column: $state.table.publishTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get archiveStatusIndex => $state.composableBuilder( - column: $state.table.archiveStatusIndex, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get archivePageUrl => $state.composableBuilder( - column: $state.table.archivePageUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadPageUrl => $state.composableBuilder( - column: $state.table.downloadPageUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadUrl => $state.composableBuilder( - column: $state.table.downloadUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get isOriginal => $state.composableBuilder( - column: $state.table.isOriginal, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get insertTime => $state.composableBuilder( - column: $state.table.insertTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$ArchiveDownloadedOldTableProcessedTableManager + = ProcessedTableManager< + _$AppDb, + $ArchiveDownloadedOldTable, + ArchiveDownloadedOldData, + $$ArchiveDownloadedOldTableFilterComposer, + $$ArchiveDownloadedOldTableOrderingComposer, + $$ArchiveDownloadedOldTableAnnotationComposer, + $$ArchiveDownloadedOldTableCreateCompanionBuilder, + $$ArchiveDownloadedOldTableUpdateCompanionBuilder, + ( + ArchiveDownloadedOldData, + BaseReferences<_$AppDb, $ArchiveDownloadedOldTable, + ArchiveDownloadedOldData> + ), + ArchiveDownloadedOldData, + PrefetchHooks Function()>; typedef $$ArchiveGroupTableCreateCompanionBuilder = ArchiveGroupCompanion Function({ required String groupName, @@ -7776,22 +8001,79 @@ typedef $$ArchiveGroupTableUpdateCompanionBuilder = ArchiveGroupCompanion Value rowid, }); -class $$ArchiveGroupTableTableManager extends RootTableManager< - _$AppDb, - $ArchiveGroupTable, - ArchiveGroupData, - $$ArchiveGroupTableFilterComposer, +class $$ArchiveGroupTableFilterComposer + extends Composer<_$AppDb, $ArchiveGroupTable> { + $$ArchiveGroupTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnFilters(column)); + + ColumnFilters get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnFilters(column)); +} + +class $$ArchiveGroupTableOrderingComposer + extends Composer<_$AppDb, $ArchiveGroupTable> { + $$ArchiveGroupTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnOrderings(column)); +} + +class $$ArchiveGroupTableAnnotationComposer + extends Composer<_$AppDb, $ArchiveGroupTable> { + $$ArchiveGroupTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get groupName => + $composableBuilder(column: $table.groupName, builder: (column) => column); + + GeneratedColumn get sortOrder => + $composableBuilder(column: $table.sortOrder, builder: (column) => column); +} + +class $$ArchiveGroupTableTableManager extends RootTableManager< + _$AppDb, + $ArchiveGroupTable, + ArchiveGroupData, + $$ArchiveGroupTableFilterComposer, $$ArchiveGroupTableOrderingComposer, + $$ArchiveGroupTableAnnotationComposer, $$ArchiveGroupTableCreateCompanionBuilder, - $$ArchiveGroupTableUpdateCompanionBuilder> { + $$ArchiveGroupTableUpdateCompanionBuilder, + ( + ArchiveGroupData, + BaseReferences<_$AppDb, $ArchiveGroupTable, ArchiveGroupData> + ), + ArchiveGroupData, + PrefetchHooks Function()> { $$ArchiveGroupTableTableManager(_$AppDb db, $ArchiveGroupTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$ArchiveGroupTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$ArchiveGroupTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$ArchiveGroupTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$ArchiveGroupTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$ArchiveGroupTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value groupName = const Value.absent(), Value sortOrder = const Value.absent(), @@ -7812,37 +8094,28 @@ class $$ArchiveGroupTableTableManager extends RootTableManager< sortOrder: sortOrder, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$ArchiveGroupTableFilterComposer - extends FilterComposer<_$AppDb, $ArchiveGroupTable> { - $$ArchiveGroupTableFilterComposer(super.$state); - ColumnFilters get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$ArchiveGroupTableOrderingComposer - extends OrderingComposer<_$AppDb, $ArchiveGroupTable> { - $$ArchiveGroupTableOrderingComposer(super.$state); - ColumnOrderings get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$ArchiveGroupTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $ArchiveGroupTable, + ArchiveGroupData, + $$ArchiveGroupTableFilterComposer, + $$ArchiveGroupTableOrderingComposer, + $$ArchiveGroupTableAnnotationComposer, + $$ArchiveGroupTableCreateCompanionBuilder, + $$ArchiveGroupTableUpdateCompanionBuilder, + ( + ArchiveGroupData, + BaseReferences<_$AppDb, $ArchiveGroupTable, ArchiveGroupData> + ), + ArchiveGroupData, + PrefetchHooks Function()>; typedef $$GalleryDownloadedTableCreateCompanionBuilder = GalleryDownloadedCompanion Function({ Value gid, @@ -7884,23 +8157,284 @@ typedef $$GalleryDownloadedTableUpdateCompanionBuilder Value tagRefreshTime, }); +final class $$GalleryDownloadedTableReferences extends BaseReferences<_$AppDb, + $GalleryDownloadedTable, GalleryDownloadedData> { + $$GalleryDownloadedTableReferences( + super.$_db, super.$_table, super.$_typedResult); + + static MultiTypedResultKey<$ImageTable, List> _imageRefsTable( + _$AppDb db) => + MultiTypedResultKey.fromTable(db.image, + aliasName: + $_aliasNameGenerator(db.galleryDownloaded.gid, db.image.gid)); + + $$ImageTableProcessedTableManager get imageRefs { + final manager = $$ImageTableTableManager($_db, $_db.image) + .filter((f) => f.gid.gid($_item.gid)); + + final cache = $_typedResult.readTableOrNull(_imageRefsTable($_db)); + return ProcessedTableManager( + manager.$state.copyWith(prefetchedData: cache)); + } +} + +class $$GalleryDownloadedTableFilterComposer + extends Composer<_$AppDb, $GalleryDownloadedTable> { + $$GalleryDownloadedTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnFilters(column)); + + ColumnFilters get token => $composableBuilder( + column: $table.token, builder: (column) => ColumnFilters(column)); + + ColumnFilters get title => $composableBuilder( + column: $table.title, builder: (column) => ColumnFilters(column)); + + ColumnFilters get category => $composableBuilder( + column: $table.category, builder: (column) => ColumnFilters(column)); + + ColumnFilters get pageCount => $composableBuilder( + column: $table.pageCount, builder: (column) => ColumnFilters(column)); + + ColumnFilters get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => ColumnFilters(column)); + + ColumnFilters get oldVersionGalleryUrl => $composableBuilder( + column: $table.oldVersionGalleryUrl, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get uploader => $composableBuilder( + column: $table.uploader, builder: (column) => ColumnFilters(column)); + + ColumnFilters get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadOriginalImage => $composableBuilder( + column: $table.downloadOriginalImage, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get priority => $composableBuilder( + column: $table.priority, builder: (column) => ColumnFilters(column)); + + ColumnFilters get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnFilters(column)); + + ColumnFilters get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnFilters(column)); + + ColumnFilters get tags => $composableBuilder( + column: $table.tags, builder: (column) => ColumnFilters(column)); + + ColumnFilters get tagRefreshTime => $composableBuilder( + column: $table.tagRefreshTime, + builder: (column) => ColumnFilters(column)); + + Expression imageRefs( + Expression Function($$ImageTableFilterComposer f) f) { + final $$ImageTableFilterComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.gid, + referencedTable: $db.image, + getReferencedColumn: (t) => t.gid, + builder: (joinBuilder, + {$addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer}) => + $$ImageTableFilterComposer( + $db: $db, + $table: $db.image, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + )); + return f(composer); + } +} + +class $$GalleryDownloadedTableOrderingComposer + extends Composer<_$AppDb, $GalleryDownloadedTable> { + $$GalleryDownloadedTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get token => $composableBuilder( + column: $table.token, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get title => $composableBuilder( + column: $table.title, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get category => $composableBuilder( + column: $table.category, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get pageCount => $composableBuilder( + column: $table.pageCount, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get oldVersionGalleryUrl => $composableBuilder( + column: $table.oldVersionGalleryUrl, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get uploader => $composableBuilder( + column: $table.uploader, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadOriginalImage => $composableBuilder( + column: $table.downloadOriginalImage, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get priority => $composableBuilder( + column: $table.priority, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get tags => $composableBuilder( + column: $table.tags, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get tagRefreshTime => $composableBuilder( + column: $table.tagRefreshTime, + builder: (column) => ColumnOrderings(column)); +} + +class $$GalleryDownloadedTableAnnotationComposer + extends Composer<_$AppDb, $GalleryDownloadedTable> { + $$GalleryDownloadedTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get gid => + $composableBuilder(column: $table.gid, builder: (column) => column); + + GeneratedColumn get token => + $composableBuilder(column: $table.token, builder: (column) => column); + + GeneratedColumn get title => + $composableBuilder(column: $table.title, builder: (column) => column); + + GeneratedColumn get category => + $composableBuilder(column: $table.category, builder: (column) => column); + + GeneratedColumn get pageCount => + $composableBuilder(column: $table.pageCount, builder: (column) => column); + + GeneratedColumn get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => column); + + GeneratedColumn get oldVersionGalleryUrl => $composableBuilder( + column: $table.oldVersionGalleryUrl, builder: (column) => column); + + GeneratedColumn get uploader => + $composableBuilder(column: $table.uploader, builder: (column) => column); + + GeneratedColumn get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => column); + + GeneratedColumn get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, builder: (column) => column); + + GeneratedColumn get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => column); + + GeneratedColumn get downloadOriginalImage => $composableBuilder( + column: $table.downloadOriginalImage, builder: (column) => column); + + GeneratedColumn get priority => + $composableBuilder(column: $table.priority, builder: (column) => column); + + GeneratedColumn get sortOrder => + $composableBuilder(column: $table.sortOrder, builder: (column) => column); + + GeneratedColumn get groupName => + $composableBuilder(column: $table.groupName, builder: (column) => column); + + GeneratedColumn get tags => + $composableBuilder(column: $table.tags, builder: (column) => column); + + GeneratedColumn get tagRefreshTime => $composableBuilder( + column: $table.tagRefreshTime, builder: (column) => column); + + Expression imageRefs( + Expression Function($$ImageTableAnnotationComposer a) f) { + final $$ImageTableAnnotationComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.gid, + referencedTable: $db.image, + getReferencedColumn: (t) => t.gid, + builder: (joinBuilder, + {$addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer}) => + $$ImageTableAnnotationComposer( + $db: $db, + $table: $db.image, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + )); + return f(composer); + } +} + class $$GalleryDownloadedTableTableManager extends RootTableManager< _$AppDb, $GalleryDownloadedTable, GalleryDownloadedData, $$GalleryDownloadedTableFilterComposer, $$GalleryDownloadedTableOrderingComposer, + $$GalleryDownloadedTableAnnotationComposer, $$GalleryDownloadedTableCreateCompanionBuilder, - $$GalleryDownloadedTableUpdateCompanionBuilder> { + $$GalleryDownloadedTableUpdateCompanionBuilder, + (GalleryDownloadedData, $$GalleryDownloadedTableReferences), + GalleryDownloadedData, + PrefetchHooks Function({bool imageRefs})> { $$GalleryDownloadedTableTableManager( _$AppDb db, $GalleryDownloadedTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$GalleryDownloadedTableFilterComposer(ComposerState(db, table)), - orderingComposer: $$GalleryDownloadedTableOrderingComposer( - ComposerState(db, table)), + createFilteringComposer: () => + $$GalleryDownloadedTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$GalleryDownloadedTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$GalleryDownloadedTableAnnotationComposer( + $db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value token = const Value.absent(), @@ -7977,200 +8511,50 @@ class $$GalleryDownloadedTableTableManager extends RootTableManager< tags: tags, tagRefreshTime: tagRefreshTime, ), + withReferenceMapper: (p0) => p0 + .map((e) => ( + e.readTable(table), + $$GalleryDownloadedTableReferences(db, table, e) + )) + .toList(), + prefetchHooksCallback: ({imageRefs = false}) { + return PrefetchHooks( + db: db, + explicitlyWatchedTables: [if (imageRefs) db.image], + addJoins: null, + getPrefetchedDataCallback: (items) async { + return [ + if (imageRefs) + await $_getPrefetchedData( + currentTable: table, + referencedTable: $$GalleryDownloadedTableReferences + ._imageRefsTable(db), + managerFromTypedResult: (p0) => + $$GalleryDownloadedTableReferences(db, table, p0) + .imageRefs, + referencedItemsForCurrentItem: + (item, referencedItems) => + referencedItems.where((e) => e.gid == item.gid), + typedResults: items) + ]; + }, + ); + }, )); } -class $$GalleryDownloadedTableFilterComposer - extends FilterComposer<_$AppDb, $GalleryDownloadedTable> { - $$GalleryDownloadedTableFilterComposer(super.$state); - ColumnFilters get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get token => $state.composableBuilder( - column: $state.table.token, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get title => $state.composableBuilder( - column: $state.table.title, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get category => $state.composableBuilder( - column: $state.table.category, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get pageCount => $state.composableBuilder( - column: $state.table.pageCount, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get galleryUrl => $state.composableBuilder( - column: $state.table.galleryUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get oldVersionGalleryUrl => $state.composableBuilder( - column: $state.table.oldVersionGalleryUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get uploader => $state.composableBuilder( - column: $state.table.uploader, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get publishTime => $state.composableBuilder( - column: $state.table.publishTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadStatusIndex => $state.composableBuilder( - column: $state.table.downloadStatusIndex, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get insertTime => $state.composableBuilder( - column: $state.table.insertTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadOriginalImage => $state.composableBuilder( - column: $state.table.downloadOriginalImage, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get priority => $state.composableBuilder( - column: $state.table.priority, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get tags => $state.composableBuilder( - column: $state.table.tags, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get tagRefreshTime => $state.composableBuilder( - column: $state.table.tagRefreshTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ComposableFilter imageRefs( - ComposableFilter Function($$ImageTableFilterComposer f) f) { - final $$ImageTableFilterComposer composer = $state.composerBuilder( - composer: this, - getCurrentColumn: (t) => t.gid, - referencedTable: $state.db.image, - getReferencedColumn: (t) => t.gid, - builder: (joinBuilder, parentComposers) => $$ImageTableFilterComposer( - ComposerState( - $state.db, $state.db.image, joinBuilder, parentComposers))); - return f(composer); - } -} - -class $$GalleryDownloadedTableOrderingComposer - extends OrderingComposer<_$AppDb, $GalleryDownloadedTable> { - $$GalleryDownloadedTableOrderingComposer(super.$state); - ColumnOrderings get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get token => $state.composableBuilder( - column: $state.table.token, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get title => $state.composableBuilder( - column: $state.table.title, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get category => $state.composableBuilder( - column: $state.table.category, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get pageCount => $state.composableBuilder( - column: $state.table.pageCount, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get galleryUrl => $state.composableBuilder( - column: $state.table.galleryUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get oldVersionGalleryUrl => $state.composableBuilder( - column: $state.table.oldVersionGalleryUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get uploader => $state.composableBuilder( - column: $state.table.uploader, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get publishTime => $state.composableBuilder( - column: $state.table.publishTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadStatusIndex => $state.composableBuilder( - column: $state.table.downloadStatusIndex, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get insertTime => $state.composableBuilder( - column: $state.table.insertTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadOriginalImage => $state.composableBuilder( - column: $state.table.downloadOriginalImage, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get priority => $state.composableBuilder( - column: $state.table.priority, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get tags => $state.composableBuilder( - column: $state.table.tags, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get tagRefreshTime => $state.composableBuilder( - column: $state.table.tagRefreshTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$GalleryDownloadedTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $GalleryDownloadedTable, + GalleryDownloadedData, + $$GalleryDownloadedTableFilterComposer, + $$GalleryDownloadedTableOrderingComposer, + $$GalleryDownloadedTableAnnotationComposer, + $$GalleryDownloadedTableCreateCompanionBuilder, + $$GalleryDownloadedTableUpdateCompanionBuilder, + (GalleryDownloadedData, $$GalleryDownloadedTableReferences), + GalleryDownloadedData, + PrefetchHooks Function({bool imageRefs})>; typedef $$GalleryDownloadedOldTableCreateCompanionBuilder = GalleryDownloadedOldCompanion Function({ Value gid, @@ -8208,23 +8592,206 @@ typedef $$GalleryDownloadedOldTableUpdateCompanionBuilder Value groupName, }); +class $$GalleryDownloadedOldTableFilterComposer + extends Composer<_$AppDb, $GalleryDownloadedOldTable> { + $$GalleryDownloadedOldTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnFilters(column)); + + ColumnFilters get token => $composableBuilder( + column: $table.token, builder: (column) => ColumnFilters(column)); + + ColumnFilters get title => $composableBuilder( + column: $table.title, builder: (column) => ColumnFilters(column)); + + ColumnFilters get category => $composableBuilder( + column: $table.category, builder: (column) => ColumnFilters(column)); + + ColumnFilters get pageCount => $composableBuilder( + column: $table.pageCount, builder: (column) => ColumnFilters(column)); + + ColumnFilters get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => ColumnFilters(column)); + + ColumnFilters get oldVersionGalleryUrl => $composableBuilder( + column: $table.oldVersionGalleryUrl, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get uploader => $composableBuilder( + column: $table.uploader, builder: (column) => ColumnFilters(column)); + + ColumnFilters get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadOriginalImage => $composableBuilder( + column: $table.downloadOriginalImage, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get priority => $composableBuilder( + column: $table.priority, builder: (column) => ColumnFilters(column)); + + ColumnFilters get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnFilters(column)); + + ColumnFilters get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnFilters(column)); +} + +class $$GalleryDownloadedOldTableOrderingComposer + extends Composer<_$AppDb, $GalleryDownloadedOldTable> { + $$GalleryDownloadedOldTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get token => $composableBuilder( + column: $table.token, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get title => $composableBuilder( + column: $table.title, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get category => $composableBuilder( + column: $table.category, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get pageCount => $composableBuilder( + column: $table.pageCount, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get oldVersionGalleryUrl => $composableBuilder( + column: $table.oldVersionGalleryUrl, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get uploader => $composableBuilder( + column: $table.uploader, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadOriginalImage => $composableBuilder( + column: $table.downloadOriginalImage, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get priority => $composableBuilder( + column: $table.priority, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnOrderings(column)); +} + +class $$GalleryDownloadedOldTableAnnotationComposer + extends Composer<_$AppDb, $GalleryDownloadedOldTable> { + $$GalleryDownloadedOldTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get gid => + $composableBuilder(column: $table.gid, builder: (column) => column); + + GeneratedColumn get token => + $composableBuilder(column: $table.token, builder: (column) => column); + + GeneratedColumn get title => + $composableBuilder(column: $table.title, builder: (column) => column); + + GeneratedColumn get category => + $composableBuilder(column: $table.category, builder: (column) => column); + + GeneratedColumn get pageCount => + $composableBuilder(column: $table.pageCount, builder: (column) => column); + + GeneratedColumn get galleryUrl => $composableBuilder( + column: $table.galleryUrl, builder: (column) => column); + + GeneratedColumn get oldVersionGalleryUrl => $composableBuilder( + column: $table.oldVersionGalleryUrl, builder: (column) => column); + + GeneratedColumn get uploader => + $composableBuilder(column: $table.uploader, builder: (column) => column); + + GeneratedColumn get publishTime => $composableBuilder( + column: $table.publishTime, builder: (column) => column); + + GeneratedColumn get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, builder: (column) => column); + + GeneratedColumn get insertTime => $composableBuilder( + column: $table.insertTime, builder: (column) => column); + + GeneratedColumn get downloadOriginalImage => $composableBuilder( + column: $table.downloadOriginalImage, builder: (column) => column); + + GeneratedColumn get priority => + $composableBuilder(column: $table.priority, builder: (column) => column); + + GeneratedColumn get sortOrder => + $composableBuilder(column: $table.sortOrder, builder: (column) => column); + + GeneratedColumn get groupName => + $composableBuilder(column: $table.groupName, builder: (column) => column); +} + class $$GalleryDownloadedOldTableTableManager extends RootTableManager< _$AppDb, $GalleryDownloadedOldTable, GalleryDownloadedOldData, $$GalleryDownloadedOldTableFilterComposer, $$GalleryDownloadedOldTableOrderingComposer, + $$GalleryDownloadedOldTableAnnotationComposer, $$GalleryDownloadedOldTableCreateCompanionBuilder, - $$GalleryDownloadedOldTableUpdateCompanionBuilder> { + $$GalleryDownloadedOldTableUpdateCompanionBuilder, + ( + GalleryDownloadedOldData, + BaseReferences<_$AppDb, $GalleryDownloadedOldTable, + GalleryDownloadedOldData> + ), + GalleryDownloadedOldData, + PrefetchHooks Function()> { $$GalleryDownloadedOldTableTableManager( _$AppDb db, $GalleryDownloadedOldTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: $$GalleryDownloadedOldTableFilterComposer( - ComposerState(db, table)), - orderingComposer: $$GalleryDownloadedOldTableOrderingComposer( - ComposerState(db, table)), + createFilteringComposer: () => + $$GalleryDownloadedOldTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$GalleryDownloadedOldTableOrderingComposer( + $db: db, $table: table), + createComputedFieldComposer: () => + $$GalleryDownloadedOldTableAnnotationComposer( + $db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value token = const Value.absent(), @@ -8293,167 +8860,30 @@ class $$GalleryDownloadedOldTableTableManager extends RootTableManager< sortOrder: sortOrder, groupName: groupName, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$GalleryDownloadedOldTableFilterComposer - extends FilterComposer<_$AppDb, $GalleryDownloadedOldTable> { - $$GalleryDownloadedOldTableFilterComposer(super.$state); - ColumnFilters get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get token => $state.composableBuilder( - column: $state.table.token, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get title => $state.composableBuilder( - column: $state.table.title, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get category => $state.composableBuilder( - column: $state.table.category, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get pageCount => $state.composableBuilder( - column: $state.table.pageCount, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get galleryUrl => $state.composableBuilder( - column: $state.table.galleryUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get oldVersionGalleryUrl => $state.composableBuilder( - column: $state.table.oldVersionGalleryUrl, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get uploader => $state.composableBuilder( - column: $state.table.uploader, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get publishTime => $state.composableBuilder( - column: $state.table.publishTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadStatusIndex => $state.composableBuilder( - column: $state.table.downloadStatusIndex, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get insertTime => $state.composableBuilder( - column: $state.table.insertTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadOriginalImage => $state.composableBuilder( - column: $state.table.downloadOriginalImage, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get priority => $state.composableBuilder( - column: $state.table.priority, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$GalleryDownloadedOldTableOrderingComposer - extends OrderingComposer<_$AppDb, $GalleryDownloadedOldTable> { - $$GalleryDownloadedOldTableOrderingComposer(super.$state); - ColumnOrderings get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get token => $state.composableBuilder( - column: $state.table.token, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get title => $state.composableBuilder( - column: $state.table.title, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get category => $state.composableBuilder( - column: $state.table.category, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get pageCount => $state.composableBuilder( - column: $state.table.pageCount, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get galleryUrl => $state.composableBuilder( - column: $state.table.galleryUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get oldVersionGalleryUrl => $state.composableBuilder( - column: $state.table.oldVersionGalleryUrl, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get uploader => $state.composableBuilder( - column: $state.table.uploader, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get publishTime => $state.composableBuilder( - column: $state.table.publishTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadStatusIndex => $state.composableBuilder( - column: $state.table.downloadStatusIndex, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get insertTime => $state.composableBuilder( - column: $state.table.insertTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadOriginalImage => $state.composableBuilder( - column: $state.table.downloadOriginalImage, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get priority => $state.composableBuilder( - column: $state.table.priority, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$GalleryDownloadedOldTableProcessedTableManager + = ProcessedTableManager< + _$AppDb, + $GalleryDownloadedOldTable, + GalleryDownloadedOldData, + $$GalleryDownloadedOldTableFilterComposer, + $$GalleryDownloadedOldTableOrderingComposer, + $$GalleryDownloadedOldTableAnnotationComposer, + $$GalleryDownloadedOldTableCreateCompanionBuilder, + $$GalleryDownloadedOldTableUpdateCompanionBuilder, + ( + GalleryDownloadedOldData, + BaseReferences<_$AppDb, $GalleryDownloadedOldTable, + GalleryDownloadedOldData> + ), + GalleryDownloadedOldData, + PrefetchHooks Function()>; typedef $$GalleryGroupTableCreateCompanionBuilder = GalleryGroupCompanion Function({ required String groupName, @@ -8467,22 +8897,79 @@ typedef $$GalleryGroupTableUpdateCompanionBuilder = GalleryGroupCompanion Value rowid, }); +class $$GalleryGroupTableFilterComposer + extends Composer<_$AppDb, $GalleryGroupTable> { + $$GalleryGroupTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnFilters(column)); + + ColumnFilters get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnFilters(column)); +} + +class $$GalleryGroupTableOrderingComposer + extends Composer<_$AppDb, $GalleryGroupTable> { + $$GalleryGroupTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get groupName => $composableBuilder( + column: $table.groupName, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get sortOrder => $composableBuilder( + column: $table.sortOrder, builder: (column) => ColumnOrderings(column)); +} + +class $$GalleryGroupTableAnnotationComposer + extends Composer<_$AppDb, $GalleryGroupTable> { + $$GalleryGroupTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get groupName => + $composableBuilder(column: $table.groupName, builder: (column) => column); + + GeneratedColumn get sortOrder => + $composableBuilder(column: $table.sortOrder, builder: (column) => column); +} + class $$GalleryGroupTableTableManager extends RootTableManager< _$AppDb, $GalleryGroupTable, GalleryGroupData, $$GalleryGroupTableFilterComposer, $$GalleryGroupTableOrderingComposer, + $$GalleryGroupTableAnnotationComposer, $$GalleryGroupTableCreateCompanionBuilder, - $$GalleryGroupTableUpdateCompanionBuilder> { + $$GalleryGroupTableUpdateCompanionBuilder, + ( + GalleryGroupData, + BaseReferences<_$AppDb, $GalleryGroupTable, GalleryGroupData> + ), + GalleryGroupData, + PrefetchHooks Function()> { $$GalleryGroupTableTableManager(_$AppDb db, $GalleryGroupTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$GalleryGroupTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$GalleryGroupTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$GalleryGroupTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$GalleryGroupTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$GalleryGroupTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value groupName = const Value.absent(), Value sortOrder = const Value.absent(), @@ -8503,37 +8990,28 @@ class $$GalleryGroupTableTableManager extends RootTableManager< sortOrder: sortOrder, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$GalleryGroupTableFilterComposer - extends FilterComposer<_$AppDb, $GalleryGroupTable> { - $$GalleryGroupTableFilterComposer(super.$state); - ColumnFilters get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$GalleryGroupTableOrderingComposer - extends OrderingComposer<_$AppDb, $GalleryGroupTable> { - $$GalleryGroupTableOrderingComposer(super.$state); - ColumnOrderings get groupName => $state.composableBuilder( - column: $state.table.groupName, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get sortOrder => $state.composableBuilder( - column: $state.table.sortOrder, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$GalleryGroupTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $GalleryGroupTable, + GalleryGroupData, + $$GalleryGroupTableFilterComposer, + $$GalleryGroupTableOrderingComposer, + $$GalleryGroupTableAnnotationComposer, + $$GalleryGroupTableCreateCompanionBuilder, + $$GalleryGroupTableUpdateCompanionBuilder, + ( + GalleryGroupData, + BaseReferences<_$AppDb, $GalleryGroupTable, GalleryGroupData> + ), + GalleryGroupData, + PrefetchHooks Function()>; typedef $$ImageTableCreateCompanionBuilder = ImageCompanion Function({ required int gid, required String url, @@ -8553,22 +9031,183 @@ typedef $$ImageTableUpdateCompanionBuilder = ImageCompanion Function({ Value rowid, }); +final class $$ImageTableReferences + extends BaseReferences<_$AppDb, $ImageTable, ImageData> { + $$ImageTableReferences(super.$_db, super.$_table, super.$_typedResult); + + static $GalleryDownloadedTable _gidTable(_$AppDb db) => + db.galleryDownloaded.createAlias( + $_aliasNameGenerator(db.image.gid, db.galleryDownloaded.gid)); + + $$GalleryDownloadedTableProcessedTableManager? get gid { + if ($_item.gid == null) return null; + final manager = + $$GalleryDownloadedTableTableManager($_db, $_db.galleryDownloaded) + .filter((f) => f.gid($_item.gid!)); + final item = $_typedResult.readTableOrNull(_gidTable($_db)); + if (item == null) return manager; + return ProcessedTableManager( + manager.$state.copyWith(prefetchedData: [item])); + } +} + +class $$ImageTableFilterComposer extends Composer<_$AppDb, $ImageTable> { + $$ImageTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get url => $composableBuilder( + column: $table.url, builder: (column) => ColumnFilters(column)); + + ColumnFilters get serialNo => $composableBuilder( + column: $table.serialNo, builder: (column) => ColumnFilters(column)); + + ColumnFilters get path => $composableBuilder( + column: $table.path, builder: (column) => ColumnFilters(column)); + + ColumnFilters get imageHash => $composableBuilder( + column: $table.imageHash, builder: (column) => ColumnFilters(column)); + + ColumnFilters get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, + builder: (column) => ColumnFilters(column)); + + $$GalleryDownloadedTableFilterComposer get gid { + final $$GalleryDownloadedTableFilterComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.gid, + referencedTable: $db.galleryDownloaded, + getReferencedColumn: (t) => t.gid, + builder: (joinBuilder, + {$addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer}) => + $$GalleryDownloadedTableFilterComposer( + $db: $db, + $table: $db.galleryDownloaded, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + )); + return composer; + } +} + +class $$ImageTableOrderingComposer extends Composer<_$AppDb, $ImageTable> { + $$ImageTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get url => $composableBuilder( + column: $table.url, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get serialNo => $composableBuilder( + column: $table.serialNo, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get path => $composableBuilder( + column: $table.path, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get imageHash => $composableBuilder( + column: $table.imageHash, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, + builder: (column) => ColumnOrderings(column)); + + $$GalleryDownloadedTableOrderingComposer get gid { + final $$GalleryDownloadedTableOrderingComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.gid, + referencedTable: $db.galleryDownloaded, + getReferencedColumn: (t) => t.gid, + builder: (joinBuilder, + {$addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer}) => + $$GalleryDownloadedTableOrderingComposer( + $db: $db, + $table: $db.galleryDownloaded, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + )); + return composer; + } +} + +class $$ImageTableAnnotationComposer extends Composer<_$AppDb, $ImageTable> { + $$ImageTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get url => + $composableBuilder(column: $table.url, builder: (column) => column); + + GeneratedColumn get serialNo => + $composableBuilder(column: $table.serialNo, builder: (column) => column); + + GeneratedColumn get path => + $composableBuilder(column: $table.path, builder: (column) => column); + + GeneratedColumn get imageHash => + $composableBuilder(column: $table.imageHash, builder: (column) => column); + + GeneratedColumn get downloadStatusIndex => $composableBuilder( + column: $table.downloadStatusIndex, builder: (column) => column); + + $$GalleryDownloadedTableAnnotationComposer get gid { + final $$GalleryDownloadedTableAnnotationComposer composer = + $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.gid, + referencedTable: $db.galleryDownloaded, + getReferencedColumn: (t) => t.gid, + builder: (joinBuilder, + {$addJoinBuilderToRootComposer, + $removeJoinBuilderFromRootComposer}) => + $$GalleryDownloadedTableAnnotationComposer( + $db: $db, + $table: $db.galleryDownloaded, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: + $removeJoinBuilderFromRootComposer, + )); + return composer; + } +} + class $$ImageTableTableManager extends RootTableManager< _$AppDb, $ImageTable, ImageData, $$ImageTableFilterComposer, $$ImageTableOrderingComposer, + $$ImageTableAnnotationComposer, $$ImageTableCreateCompanionBuilder, - $$ImageTableUpdateCompanionBuilder> { + $$ImageTableUpdateCompanionBuilder, + (ImageData, $$ImageTableReferences), + ImageData, + PrefetchHooks Function({bool gid})> { $$ImageTableTableManager(_$AppDb db, $ImageTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$ImageTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$ImageTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$ImageTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$ImageTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$ImageTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value url = const Value.absent(), @@ -8605,98 +9244,58 @@ class $$ImageTableTableManager extends RootTableManager< downloadStatusIndex: downloadStatusIndex, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => + (e.readTable(table), $$ImageTableReferences(db, table, e))) + .toList(), + prefetchHooksCallback: ({gid = false}) { + return PrefetchHooks( + db: db, + explicitlyWatchedTables: [], + addJoins: < + T extends TableManagerState< + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic>>(state) { + if (gid) { + state = state.withJoin( + currentTable: table, + currentColumn: table.gid, + referencedTable: $$ImageTableReferences._gidTable(db), + referencedColumn: $$ImageTableReferences._gidTable(db).gid, + ) as T; + } + + return state; + }, + getPrefetchedDataCallback: (items) async { + return []; + }, + ); + }, )); } -class $$ImageTableFilterComposer extends FilterComposer<_$AppDb, $ImageTable> { - $$ImageTableFilterComposer(super.$state); - ColumnFilters get url => $state.composableBuilder( - column: $state.table.url, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get serialNo => $state.composableBuilder( - column: $state.table.serialNo, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get path => $state.composableBuilder( - column: $state.table.path, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get imageHash => $state.composableBuilder( - column: $state.table.imageHash, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get downloadStatusIndex => $state.composableBuilder( - column: $state.table.downloadStatusIndex, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - $$GalleryDownloadedTableFilterComposer get gid { - final $$GalleryDownloadedTableFilterComposer composer = - $state.composerBuilder( - composer: this, - getCurrentColumn: (t) => t.gid, - referencedTable: $state.db.galleryDownloaded, - getReferencedColumn: (t) => t.gid, - builder: (joinBuilder, parentComposers) => - $$GalleryDownloadedTableFilterComposer(ComposerState( - $state.db, - $state.db.galleryDownloaded, - joinBuilder, - parentComposers))); - return composer; - } -} - -class $$ImageTableOrderingComposer - extends OrderingComposer<_$AppDb, $ImageTable> { - $$ImageTableOrderingComposer(super.$state); - ColumnOrderings get url => $state.composableBuilder( - column: $state.table.url, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get serialNo => $state.composableBuilder( - column: $state.table.serialNo, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get path => $state.composableBuilder( - column: $state.table.path, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get imageHash => $state.composableBuilder( - column: $state.table.imageHash, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get downloadStatusIndex => $state.composableBuilder( - column: $state.table.downloadStatusIndex, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - $$GalleryDownloadedTableOrderingComposer get gid { - final $$GalleryDownloadedTableOrderingComposer composer = - $state.composerBuilder( - composer: this, - getCurrentColumn: (t) => t.gid, - referencedTable: $state.db.galleryDownloaded, - getReferencedColumn: (t) => t.gid, - builder: (joinBuilder, parentComposers) => - $$GalleryDownloadedTableOrderingComposer(ComposerState( - $state.db, - $state.db.galleryDownloaded, - joinBuilder, - parentComposers))); - return composer; - } -} - +typedef $$ImageTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $ImageTable, + ImageData, + $$ImageTableFilterComposer, + $$ImageTableOrderingComposer, + $$ImageTableAnnotationComposer, + $$ImageTableCreateCompanionBuilder, + $$ImageTableUpdateCompanionBuilder, + (ImageData, $$ImageTableReferences), + ImageData, + PrefetchHooks Function({bool gid})>; typedef $$GalleryHistoryTableCreateCompanionBuilder = GalleryHistoryCompanion Function({ Value gid, @@ -8710,22 +9309,89 @@ typedef $$GalleryHistoryTableUpdateCompanionBuilder = GalleryHistoryCompanion Value lastReadTime, }); +class $$GalleryHistoryTableFilterComposer + extends Composer<_$AppDb, $GalleryHistoryTable> { + $$GalleryHistoryTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnFilters(column)); + + ColumnFilters get jsonBody => $composableBuilder( + column: $table.jsonBody, builder: (column) => ColumnFilters(column)); + + ColumnFilters get lastReadTime => $composableBuilder( + column: $table.lastReadTime, builder: (column) => ColumnFilters(column)); +} + +class $$GalleryHistoryTableOrderingComposer + extends Composer<_$AppDb, $GalleryHistoryTable> { + $$GalleryHistoryTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get jsonBody => $composableBuilder( + column: $table.jsonBody, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get lastReadTime => $composableBuilder( + column: $table.lastReadTime, + builder: (column) => ColumnOrderings(column)); +} + +class $$GalleryHistoryTableAnnotationComposer + extends Composer<_$AppDb, $GalleryHistoryTable> { + $$GalleryHistoryTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get gid => + $composableBuilder(column: $table.gid, builder: (column) => column); + + GeneratedColumn get jsonBody => + $composableBuilder(column: $table.jsonBody, builder: (column) => column); + + GeneratedColumn get lastReadTime => $composableBuilder( + column: $table.lastReadTime, builder: (column) => column); +} + class $$GalleryHistoryTableTableManager extends RootTableManager< _$AppDb, $GalleryHistoryTable, GalleryHistoryData, $$GalleryHistoryTableFilterComposer, $$GalleryHistoryTableOrderingComposer, + $$GalleryHistoryTableAnnotationComposer, $$GalleryHistoryTableCreateCompanionBuilder, - $$GalleryHistoryTableUpdateCompanionBuilder> { + $$GalleryHistoryTableUpdateCompanionBuilder, + ( + GalleryHistoryData, + BaseReferences<_$AppDb, $GalleryHistoryTable, GalleryHistoryData> + ), + GalleryHistoryData, + PrefetchHooks Function()> { $$GalleryHistoryTableTableManager(_$AppDb db, $GalleryHistoryTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$GalleryHistoryTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$GalleryHistoryTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$GalleryHistoryTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$GalleryHistoryTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$GalleryHistoryTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value jsonBody = const Value.absent(), @@ -8746,47 +9412,28 @@ class $$GalleryHistoryTableTableManager extends RootTableManager< jsonBody: jsonBody, lastReadTime: lastReadTime, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$GalleryHistoryTableFilterComposer - extends FilterComposer<_$AppDb, $GalleryHistoryTable> { - $$GalleryHistoryTableFilterComposer(super.$state); - ColumnFilters get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get jsonBody => $state.composableBuilder( - column: $state.table.jsonBody, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get lastReadTime => $state.composableBuilder( - column: $state.table.lastReadTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$GalleryHistoryTableOrderingComposer - extends OrderingComposer<_$AppDb, $GalleryHistoryTable> { - $$GalleryHistoryTableOrderingComposer(super.$state); - ColumnOrderings get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get jsonBody => $state.composableBuilder( - column: $state.table.jsonBody, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get lastReadTime => $state.composableBuilder( - column: $state.table.lastReadTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$GalleryHistoryTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $GalleryHistoryTable, + GalleryHistoryData, + $$GalleryHistoryTableFilterComposer, + $$GalleryHistoryTableOrderingComposer, + $$GalleryHistoryTableAnnotationComposer, + $$GalleryHistoryTableCreateCompanionBuilder, + $$GalleryHistoryTableUpdateCompanionBuilder, + ( + GalleryHistoryData, + BaseReferences<_$AppDb, $GalleryHistoryTable, GalleryHistoryData> + ), + GalleryHistoryData, + PrefetchHooks Function()>; typedef $$GalleryHistoryV2TableCreateCompanionBuilder = GalleryHistoryV2Companion Function({ Value gid, @@ -8800,22 +9447,89 @@ typedef $$GalleryHistoryV2TableUpdateCompanionBuilder Value lastReadTime, }); +class $$GalleryHistoryV2TableFilterComposer + extends Composer<_$AppDb, $GalleryHistoryV2Table> { + $$GalleryHistoryV2TableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnFilters(column)); + + ColumnFilters get jsonBody => $composableBuilder( + column: $table.jsonBody, builder: (column) => ColumnFilters(column)); + + ColumnFilters get lastReadTime => $composableBuilder( + column: $table.lastReadTime, builder: (column) => ColumnFilters(column)); +} + +class $$GalleryHistoryV2TableOrderingComposer + extends Composer<_$AppDb, $GalleryHistoryV2Table> { + $$GalleryHistoryV2TableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get gid => $composableBuilder( + column: $table.gid, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get jsonBody => $composableBuilder( + column: $table.jsonBody, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get lastReadTime => $composableBuilder( + column: $table.lastReadTime, + builder: (column) => ColumnOrderings(column)); +} + +class $$GalleryHistoryV2TableAnnotationComposer + extends Composer<_$AppDb, $GalleryHistoryV2Table> { + $$GalleryHistoryV2TableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get gid => + $composableBuilder(column: $table.gid, builder: (column) => column); + + GeneratedColumn get jsonBody => + $composableBuilder(column: $table.jsonBody, builder: (column) => column); + + GeneratedColumn get lastReadTime => $composableBuilder( + column: $table.lastReadTime, builder: (column) => column); +} + class $$GalleryHistoryV2TableTableManager extends RootTableManager< _$AppDb, $GalleryHistoryV2Table, GalleryHistoryV2Data, $$GalleryHistoryV2TableFilterComposer, $$GalleryHistoryV2TableOrderingComposer, + $$GalleryHistoryV2TableAnnotationComposer, $$GalleryHistoryV2TableCreateCompanionBuilder, - $$GalleryHistoryV2TableUpdateCompanionBuilder> { + $$GalleryHistoryV2TableUpdateCompanionBuilder, + ( + GalleryHistoryV2Data, + BaseReferences<_$AppDb, $GalleryHistoryV2Table, GalleryHistoryV2Data> + ), + GalleryHistoryV2Data, + PrefetchHooks Function()> { $$GalleryHistoryV2TableTableManager(_$AppDb db, $GalleryHistoryV2Table table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$GalleryHistoryV2TableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$GalleryHistoryV2TableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$GalleryHistoryV2TableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$GalleryHistoryV2TableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$GalleryHistoryV2TableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value gid = const Value.absent(), Value jsonBody = const Value.absent(), @@ -8836,47 +9550,28 @@ class $$GalleryHistoryV2TableTableManager extends RootTableManager< jsonBody: jsonBody, lastReadTime: lastReadTime, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$GalleryHistoryV2TableFilterComposer - extends FilterComposer<_$AppDb, $GalleryHistoryV2Table> { - $$GalleryHistoryV2TableFilterComposer(super.$state); - ColumnFilters get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get jsonBody => $state.composableBuilder( - column: $state.table.jsonBody, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get lastReadTime => $state.composableBuilder( - column: $state.table.lastReadTime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$GalleryHistoryV2TableOrderingComposer - extends OrderingComposer<_$AppDb, $GalleryHistoryV2Table> { - $$GalleryHistoryV2TableOrderingComposer(super.$state); - ColumnOrderings get gid => $state.composableBuilder( - column: $state.table.gid, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get jsonBody => $state.composableBuilder( - column: $state.table.jsonBody, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get lastReadTime => $state.composableBuilder( - column: $state.table.lastReadTime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$GalleryHistoryV2TableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $GalleryHistoryV2Table, + GalleryHistoryV2Data, + $$GalleryHistoryV2TableFilterComposer, + $$GalleryHistoryV2TableOrderingComposer, + $$GalleryHistoryV2TableAnnotationComposer, + $$GalleryHistoryV2TableCreateCompanionBuilder, + $$GalleryHistoryV2TableUpdateCompanionBuilder, + ( + GalleryHistoryV2Data, + BaseReferences<_$AppDb, $GalleryHistoryV2Table, GalleryHistoryV2Data> + ), + GalleryHistoryV2Data, + PrefetchHooks Function()>; typedef $$TagCountTableCreateCompanionBuilder = TagCountCompanion Function({ required String namespaceWithKey, required int count, @@ -8888,22 +9583,77 @@ typedef $$TagCountTableUpdateCompanionBuilder = TagCountCompanion Function({ Value rowid, }); +class $$TagCountTableFilterComposer extends Composer<_$AppDb, $TagCountTable> { + $$TagCountTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get namespaceWithKey => $composableBuilder( + column: $table.namespaceWithKey, + builder: (column) => ColumnFilters(column)); + + ColumnFilters get count => $composableBuilder( + column: $table.count, builder: (column) => ColumnFilters(column)); +} + +class $$TagCountTableOrderingComposer + extends Composer<_$AppDb, $TagCountTable> { + $$TagCountTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get namespaceWithKey => $composableBuilder( + column: $table.namespaceWithKey, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get count => $composableBuilder( + column: $table.count, builder: (column) => ColumnOrderings(column)); +} + +class $$TagCountTableAnnotationComposer + extends Composer<_$AppDb, $TagCountTable> { + $$TagCountTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get namespaceWithKey => $composableBuilder( + column: $table.namespaceWithKey, builder: (column) => column); + + GeneratedColumn get count => + $composableBuilder(column: $table.count, builder: (column) => column); +} + class $$TagCountTableTableManager extends RootTableManager< _$AppDb, $TagCountTable, TagCountData, $$TagCountTableFilterComposer, $$TagCountTableOrderingComposer, + $$TagCountTableAnnotationComposer, $$TagCountTableCreateCompanionBuilder, - $$TagCountTableUpdateCompanionBuilder> { + $$TagCountTableUpdateCompanionBuilder, + (TagCountData, BaseReferences<_$AppDb, $TagCountTable, TagCountData>), + TagCountData, + PrefetchHooks Function()> { $$TagCountTableTableManager(_$AppDb db, $TagCountTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$TagCountTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$TagCountTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$TagCountTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$TagCountTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$TagCountTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value namespaceWithKey = const Value.absent(), Value count = const Value.absent(), @@ -8924,37 +9674,25 @@ class $$TagCountTableTableManager extends RootTableManager< count: count, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$TagCountTableFilterComposer - extends FilterComposer<_$AppDb, $TagCountTable> { - $$TagCountTableFilterComposer(super.$state); - ColumnFilters get namespaceWithKey => $state.composableBuilder( - column: $state.table.namespaceWithKey, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get count => $state.composableBuilder( - column: $state.table.count, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$TagCountTableOrderingComposer - extends OrderingComposer<_$AppDb, $TagCountTable> { - $$TagCountTableOrderingComposer(super.$state); - ColumnOrderings get namespaceWithKey => $state.composableBuilder( - column: $state.table.namespaceWithKey, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get count => $state.composableBuilder( - column: $state.table.count, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$TagCountTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $TagCountTable, + TagCountData, + $$TagCountTableFilterComposer, + $$TagCountTableOrderingComposer, + $$TagCountTableAnnotationComposer, + $$TagCountTableCreateCompanionBuilder, + $$TagCountTableUpdateCompanionBuilder, + (TagCountData, BaseReferences<_$AppDb, $TagCountTable, TagCountData>), + TagCountData, + PrefetchHooks Function()>; typedef $$DioCacheTableCreateCompanionBuilder = DioCacheCompanion Function({ required String cacheKey, required String url, @@ -8972,22 +9710,102 @@ typedef $$DioCacheTableUpdateCompanionBuilder = DioCacheCompanion Function({ Value rowid, }); +class $$DioCacheTableFilterComposer extends Composer<_$AppDb, $DioCacheTable> { + $$DioCacheTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get cacheKey => $composableBuilder( + column: $table.cacheKey, builder: (column) => ColumnFilters(column)); + + ColumnFilters get url => $composableBuilder( + column: $table.url, builder: (column) => ColumnFilters(column)); + + ColumnFilters get expireDate => $composableBuilder( + column: $table.expireDate, builder: (column) => ColumnFilters(column)); + + ColumnFilters get content => $composableBuilder( + column: $table.content, builder: (column) => ColumnFilters(column)); + + ColumnFilters get headers => $composableBuilder( + column: $table.headers, builder: (column) => ColumnFilters(column)); +} + +class $$DioCacheTableOrderingComposer + extends Composer<_$AppDb, $DioCacheTable> { + $$DioCacheTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get cacheKey => $composableBuilder( + column: $table.cacheKey, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get url => $composableBuilder( + column: $table.url, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get expireDate => $composableBuilder( + column: $table.expireDate, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get content => $composableBuilder( + column: $table.content, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get headers => $composableBuilder( + column: $table.headers, builder: (column) => ColumnOrderings(column)); +} + +class $$DioCacheTableAnnotationComposer + extends Composer<_$AppDb, $DioCacheTable> { + $$DioCacheTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get cacheKey => + $composableBuilder(column: $table.cacheKey, builder: (column) => column); + + GeneratedColumn get url => + $composableBuilder(column: $table.url, builder: (column) => column); + + GeneratedColumn get expireDate => $composableBuilder( + column: $table.expireDate, builder: (column) => column); + + GeneratedColumn get content => + $composableBuilder(column: $table.content, builder: (column) => column); + + GeneratedColumn get headers => + $composableBuilder(column: $table.headers, builder: (column) => column); +} + class $$DioCacheTableTableManager extends RootTableManager< _$AppDb, $DioCacheTable, DioCacheData, $$DioCacheTableFilterComposer, $$DioCacheTableOrderingComposer, + $$DioCacheTableAnnotationComposer, $$DioCacheTableCreateCompanionBuilder, - $$DioCacheTableUpdateCompanionBuilder> { + $$DioCacheTableUpdateCompanionBuilder, + (DioCacheData, BaseReferences<_$AppDb, $DioCacheTable, DioCacheData>), + DioCacheData, + PrefetchHooks Function()> { $$DioCacheTableTableManager(_$AppDb db, $DioCacheTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$DioCacheTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$DioCacheTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$DioCacheTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$DioCacheTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$DioCacheTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value cacheKey = const Value.absent(), Value url = const Value.absent(), @@ -9020,67 +9838,25 @@ class $$DioCacheTableTableManager extends RootTableManager< headers: headers, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$DioCacheTableFilterComposer - extends FilterComposer<_$AppDb, $DioCacheTable> { - $$DioCacheTableFilterComposer(super.$state); - ColumnFilters get cacheKey => $state.composableBuilder( - column: $state.table.cacheKey, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get url => $state.composableBuilder( - column: $state.table.url, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get expireDate => $state.composableBuilder( - column: $state.table.expireDate, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get content => $state.composableBuilder( - column: $state.table.content, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get headers => $state.composableBuilder( - column: $state.table.headers, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$DioCacheTableOrderingComposer - extends OrderingComposer<_$AppDb, $DioCacheTable> { - $$DioCacheTableOrderingComposer(super.$state); - ColumnOrderings get cacheKey => $state.composableBuilder( - column: $state.table.cacheKey, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get url => $state.composableBuilder( - column: $state.table.url, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get expireDate => $state.composableBuilder( - column: $state.table.expireDate, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get content => $state.composableBuilder( - column: $state.table.content, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get headers => $state.composableBuilder( - column: $state.table.headers, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$DioCacheTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $DioCacheTable, + DioCacheData, + $$DioCacheTableFilterComposer, + $$DioCacheTableOrderingComposer, + $$DioCacheTableAnnotationComposer, + $$DioCacheTableCreateCompanionBuilder, + $$DioCacheTableUpdateCompanionBuilder, + (DioCacheData, BaseReferences<_$AppDb, $DioCacheTable, DioCacheData>), + DioCacheData, + PrefetchHooks Function()>; typedef $$BlockRuleTableCreateCompanionBuilder = BlockRuleCompanion Function({ Value id, required String groupId, @@ -9098,22 +9874,112 @@ typedef $$BlockRuleTableUpdateCompanionBuilder = BlockRuleCompanion Function({ Value expression, }); +class $$BlockRuleTableFilterComposer + extends Composer<_$AppDb, $BlockRuleTable> { + $$BlockRuleTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get id => $composableBuilder( + column: $table.id, builder: (column) => ColumnFilters(column)); + + ColumnFilters get groupId => $composableBuilder( + column: $table.groupId, builder: (column) => ColumnFilters(column)); + + ColumnFilters get target => $composableBuilder( + column: $table.target, builder: (column) => ColumnFilters(column)); + + ColumnFilters get attribute => $composableBuilder( + column: $table.attribute, builder: (column) => ColumnFilters(column)); + + ColumnFilters get pattern => $composableBuilder( + column: $table.pattern, builder: (column) => ColumnFilters(column)); + + ColumnFilters get expression => $composableBuilder( + column: $table.expression, builder: (column) => ColumnFilters(column)); +} + +class $$BlockRuleTableOrderingComposer + extends Composer<_$AppDb, $BlockRuleTable> { + $$BlockRuleTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get id => $composableBuilder( + column: $table.id, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get groupId => $composableBuilder( + column: $table.groupId, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get target => $composableBuilder( + column: $table.target, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get attribute => $composableBuilder( + column: $table.attribute, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get pattern => $composableBuilder( + column: $table.pattern, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get expression => $composableBuilder( + column: $table.expression, builder: (column) => ColumnOrderings(column)); +} + +class $$BlockRuleTableAnnotationComposer + extends Composer<_$AppDb, $BlockRuleTable> { + $$BlockRuleTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get id => + $composableBuilder(column: $table.id, builder: (column) => column); + + GeneratedColumn get groupId => + $composableBuilder(column: $table.groupId, builder: (column) => column); + + GeneratedColumn get target => + $composableBuilder(column: $table.target, builder: (column) => column); + + GeneratedColumn get attribute => + $composableBuilder(column: $table.attribute, builder: (column) => column); + + GeneratedColumn get pattern => + $composableBuilder(column: $table.pattern, builder: (column) => column); + + GeneratedColumn get expression => $composableBuilder( + column: $table.expression, builder: (column) => column); +} + class $$BlockRuleTableTableManager extends RootTableManager< _$AppDb, $BlockRuleTable, BlockRuleData, $$BlockRuleTableFilterComposer, $$BlockRuleTableOrderingComposer, + $$BlockRuleTableAnnotationComposer, $$BlockRuleTableCreateCompanionBuilder, - $$BlockRuleTableUpdateCompanionBuilder> { + $$BlockRuleTableUpdateCompanionBuilder, + (BlockRuleData, BaseReferences<_$AppDb, $BlockRuleTable, BlockRuleData>), + BlockRuleData, + PrefetchHooks Function()> { $$BlockRuleTableTableManager(_$AppDb db, $BlockRuleTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$BlockRuleTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$BlockRuleTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$BlockRuleTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$BlockRuleTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$BlockRuleTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), Value groupId = const Value.absent(), @@ -9146,77 +10012,25 @@ class $$BlockRuleTableTableManager extends RootTableManager< pattern: pattern, expression: expression, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$BlockRuleTableFilterComposer - extends FilterComposer<_$AppDb, $BlockRuleTable> { - $$BlockRuleTableFilterComposer(super.$state); - ColumnFilters get id => $state.composableBuilder( - column: $state.table.id, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get groupId => $state.composableBuilder( - column: $state.table.groupId, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get target => $state.composableBuilder( - column: $state.table.target, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get attribute => $state.composableBuilder( - column: $state.table.attribute, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get pattern => $state.composableBuilder( - column: $state.table.pattern, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get expression => $state.composableBuilder( - column: $state.table.expression, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$BlockRuleTableOrderingComposer - extends OrderingComposer<_$AppDb, $BlockRuleTable> { - $$BlockRuleTableOrderingComposer(super.$state); - ColumnOrderings get id => $state.composableBuilder( - column: $state.table.id, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get groupId => $state.composableBuilder( - column: $state.table.groupId, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get target => $state.composableBuilder( - column: $state.table.target, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get attribute => $state.composableBuilder( - column: $state.table.attribute, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get pattern => $state.composableBuilder( - column: $state.table.pattern, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get expression => $state.composableBuilder( - column: $state.table.expression, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} - +typedef $$BlockRuleTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $BlockRuleTable, + BlockRuleData, + $$BlockRuleTableFilterComposer, + $$BlockRuleTableOrderingComposer, + $$BlockRuleTableAnnotationComposer, + $$BlockRuleTableCreateCompanionBuilder, + $$BlockRuleTableUpdateCompanionBuilder, + (BlockRuleData, BaseReferences<_$AppDb, $BlockRuleTable, BlockRuleData>), + BlockRuleData, + PrefetchHooks Function()>; typedef $$LocalConfigTableCreateCompanionBuilder = LocalConfigCompanion Function({ required String configKey, @@ -9234,22 +10048,98 @@ typedef $$LocalConfigTableUpdateCompanionBuilder = LocalConfigCompanion Value rowid, }); +class $$LocalConfigTableFilterComposer + extends Composer<_$AppDb, $LocalConfigTable> { + $$LocalConfigTableFilterComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnFilters get configKey => $composableBuilder( + column: $table.configKey, builder: (column) => ColumnFilters(column)); + + ColumnFilters get subConfigKey => $composableBuilder( + column: $table.subConfigKey, builder: (column) => ColumnFilters(column)); + + ColumnFilters get value => $composableBuilder( + column: $table.value, builder: (column) => ColumnFilters(column)); + + ColumnFilters get utime => $composableBuilder( + column: $table.utime, builder: (column) => ColumnFilters(column)); +} + +class $$LocalConfigTableOrderingComposer + extends Composer<_$AppDb, $LocalConfigTable> { + $$LocalConfigTableOrderingComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + ColumnOrderings get configKey => $composableBuilder( + column: $table.configKey, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get subConfigKey => $composableBuilder( + column: $table.subConfigKey, + builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get value => $composableBuilder( + column: $table.value, builder: (column) => ColumnOrderings(column)); + + ColumnOrderings get utime => $composableBuilder( + column: $table.utime, builder: (column) => ColumnOrderings(column)); +} + +class $$LocalConfigTableAnnotationComposer + extends Composer<_$AppDb, $LocalConfigTable> { + $$LocalConfigTableAnnotationComposer({ + required super.$db, + required super.$table, + super.joinBuilder, + super.$addJoinBuilderToRootComposer, + super.$removeJoinBuilderFromRootComposer, + }); + GeneratedColumn get configKey => + $composableBuilder(column: $table.configKey, builder: (column) => column); + + GeneratedColumn get subConfigKey => $composableBuilder( + column: $table.subConfigKey, builder: (column) => column); + + GeneratedColumn get value => + $composableBuilder(column: $table.value, builder: (column) => column); + + GeneratedColumn get utime => + $composableBuilder(column: $table.utime, builder: (column) => column); +} + class $$LocalConfigTableTableManager extends RootTableManager< _$AppDb, $LocalConfigTable, LocalConfigData, $$LocalConfigTableFilterComposer, $$LocalConfigTableOrderingComposer, + $$LocalConfigTableAnnotationComposer, $$LocalConfigTableCreateCompanionBuilder, - $$LocalConfigTableUpdateCompanionBuilder> { + $$LocalConfigTableUpdateCompanionBuilder, + ( + LocalConfigData, + BaseReferences<_$AppDb, $LocalConfigTable, LocalConfigData> + ), + LocalConfigData, + PrefetchHooks Function()> { $$LocalConfigTableTableManager(_$AppDb db, $LocalConfigTable table) : super(TableManagerState( db: db, table: table, - filteringComposer: - $$LocalConfigTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$LocalConfigTableOrderingComposer(ComposerState(db, table)), + createFilteringComposer: () => + $$LocalConfigTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$LocalConfigTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$LocalConfigTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value configKey = const Value.absent(), Value subConfigKey = const Value.absent(), @@ -9278,56 +10168,28 @@ class $$LocalConfigTableTableManager extends RootTableManager< utime: utime, rowid: rowid, ), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), + prefetchHooksCallback: null, )); } -class $$LocalConfigTableFilterComposer - extends FilterComposer<_$AppDb, $LocalConfigTable> { - $$LocalConfigTableFilterComposer(super.$state); - ColumnFilters get configKey => $state.composableBuilder( - column: $state.table.configKey, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get subConfigKey => $state.composableBuilder( - column: $state.table.subConfigKey, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get value => $state.composableBuilder( - column: $state.table.value, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); - - ColumnFilters get utime => $state.composableBuilder( - column: $state.table.utime, - builder: (column, joinBuilders) => - ColumnFilters(column, joinBuilders: joinBuilders)); -} - -class $$LocalConfigTableOrderingComposer - extends OrderingComposer<_$AppDb, $LocalConfigTable> { - $$LocalConfigTableOrderingComposer(super.$state); - ColumnOrderings get configKey => $state.composableBuilder( - column: $state.table.configKey, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get subConfigKey => $state.composableBuilder( - column: $state.table.subConfigKey, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get value => $state.composableBuilder( - column: $state.table.value, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); - - ColumnOrderings get utime => $state.composableBuilder( - column: $state.table.utime, - builder: (column, joinBuilders) => - ColumnOrderings(column, joinBuilders: joinBuilders)); -} +typedef $$LocalConfigTableProcessedTableManager = ProcessedTableManager< + _$AppDb, + $LocalConfigTable, + LocalConfigData, + $$LocalConfigTableFilterComposer, + $$LocalConfigTableOrderingComposer, + $$LocalConfigTableAnnotationComposer, + $$LocalConfigTableCreateCompanionBuilder, + $$LocalConfigTableUpdateCompanionBuilder, + ( + LocalConfigData, + BaseReferences<_$AppDb, $LocalConfigTable, LocalConfigData> + ), + LocalConfigData, + PrefetchHooks Function()>; class $AppDbManager { final _$AppDb _db; diff --git a/lib/src/pages/read/layout/base/base_layout_logic.dart b/lib/src/pages/read/layout/base/base_layout_logic.dart index 131ea64a..4bf3ebff 100644 --- a/lib/src/pages/read/layout/base/base_layout_logic.dart +++ b/lib/src/pages/read/layout/base/base_layout_logic.dart @@ -215,9 +215,8 @@ abstract class BaseLayoutLogic extends GetxController with GetTickerProviderStat File file = File(path); file.create().then((file) => file.writeAsBytes(data)).then( - (_) => Share.shareFiles( - [path], - text: '$index${extension(readPageState.images[index]!.url)}', + (_) => Share.shareUri( + Uri.file(path), sharePositionOrigin: Rect.fromLTWH(0, 0, fullScreenWidth, readPageState.displayRegionSize.height * 2 / 3), ), ); @@ -229,11 +228,12 @@ abstract class BaseLayoutLogic extends GetxController with GetTickerProviderStat return; } - Share.shareFiles( - [ - GalleryDownloadService.computeImageDownloadAbsolutePathFromRelativePath(galleryDownloadService.galleryDownloadInfos[readPageState.readPageInfo.gid!]!.images[index]!.path!), - ], - text: basename(galleryDownloadService.galleryDownloadInfos[readPageState.readPageInfo.gid!]!.images[index]!.path!), + Share.shareUri( + Uri.file( + GalleryDownloadService.computeImageDownloadAbsolutePathFromRelativePath( + galleryDownloadService.galleryDownloadInfos[readPageState.readPageInfo.gid!]!.images[index]!.path!, + ), + ), sharePositionOrigin: Rect.fromLTWH(0, 0, fullScreenWidth, readPageState.displayRegionSize.height * 2 / 3), ); } @@ -287,7 +287,8 @@ abstract class BaseLayoutLogic extends GetxController with GetTickerProviderStat return saveOnlineImage(index); } - String fileName = '${readPageState.readPageInfo.gid!}_${readPageState.readPageInfo.token!}_${index}_original${extension(readPageState.images[index]!.originalImageUrl!)}'; + String fileName = + '${readPageState.readPageInfo.gid!}_${readPageState.readPageInfo.token!}_${index}_original${extension(readPageState.images[index]!.originalImageUrl!)}'; String downloadPath = join(downloadSetting.tempDownloadPath.value, fileName); File file = File(downloadPath); diff --git a/lib/src/setting/security_setting.dart b/lib/src/setting/security_setting.dart index 9186b257..36229211 100644 --- a/lib/src/setting/security_setting.dart +++ b/lib/src/setting/security_setting.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:extended_image/extended_image.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_windowmanager/flutter_windowmanager.dart'; +import 'package:flutter_windowmanager_plus/flutter_windowmanager_plus.dart'; import 'package:get/get.dart'; import 'package:jhentai/src/enum/config_enum.dart'; import 'package:jhentai/src/setting/download_setting.dart'; @@ -66,9 +66,9 @@ class SecuritySetting with JHLifeCircleBeanWithConfigStorage implements JHLifeCi if (GetPlatform.isAndroid) { ever(enableBlur, (_) { if (enableBlur.isTrue) { - FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE); + FlutterWindowManagerPlus.addFlags(FlutterWindowManagerPlus.FLAG_SECURE); } else { - FlutterWindowManager.clearFlags(FlutterWindowManager.FLAG_SECURE); + FlutterWindowManagerPlus.clearFlags(FlutterWindowManagerPlus.FLAG_SECURE); saveEnableAuthOnResume(false); } SystemChrome.setSystemUIOverlayStyle( diff --git a/lib/src/widget/app_manager.dart b/lib/src/widget/app_manager.dart index e4c6faa8..7308f3e5 100644 --- a/lib/src/widget/app_manager.dart +++ b/lib/src/widget/app_manager.dart @@ -2,7 +2,7 @@ import 'dart:ui'; import 'package:blur/blur.dart'; import 'package:flutter/material.dart'; -import 'package:flutter_windowmanager/flutter_windowmanager.dart'; +import 'package:flutter_windowmanager_plus/flutter_windowmanager_plus.dart'; import 'package:get/get.dart'; import 'package:jhentai/src/extension/get_logic_extension.dart'; @@ -197,7 +197,7 @@ class _AppManagerState extends State with WidgetsBindingObserver { /// so i choose to set FLAG_SECURE to do the same effect. void _addSecureFlagForAndroid(BuildContext context) { if (GetPlatform.isAndroid && (securitySetting.enableAuthOnResume.isTrue || securitySetting.enableBlur.isTrue)) { - FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE); + FlutterWindowManagerPlus.addFlags(FlutterWindowManagerPlus.FLAG_SECURE); } } } diff --git a/pubspec.lock b/pubspec.lock index 5dcad541..26154bb4 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -93,18 +93,18 @@ packages: dependency: "direct main" description: name: battery_plus - sha256: ca67f5457a473f132fec42a4445c8c19a98205c1bc20f8feaa5a7f50d42f750f + sha256: "220c8f1961efb01d6870493b5ac5a80afaeaffc8757f7a11ed3025a8570d29e7" url: "https://pub.dev" source: hosted - version: "6.0.1" + version: "6.2.0" battery_plus_platform_interface: dependency: transitive description: name: battery_plus_platform_interface - sha256: "942707f90e2f7481dcb178df02e22a9c6971b3562b848d6a1b8c7cff9f1a1fec" + sha256: e8342c0f32de4b1dfd0223114b6785e48e579bfc398da9471c9179b907fa4910 url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.0.1" blur: dependency: "direct main" description: @@ -157,12 +157,12 @@ packages: dependency: "direct dev" description: name: build_runner - sha256: "581bacf68f89ec8792f5e5a0b2c4decd1c948e97ce659dc783688c8a88fbec21" + sha256: "644dc98a0f179b872f612d3eb627924b578897c629788e858157fa5e704ca0c7" url: "https://pub.dev" source: hosted - version: "2.4.8" + version: "2.4.11" build_runner_core: - dependency: "direct dev" + dependency: transitive description: name: build_runner_core sha256: "88a57f2ac99849362e73878334caa9f06ee25f31d2adced882b8337838c84e1e" @@ -301,10 +301,10 @@ packages: dependency: transitive description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.4+2" crypto: dependency: "direct main" description: @@ -366,18 +366,18 @@ packages: dependency: "direct main" description: name: device_info_plus - sha256: eead12d1a1ed83d8283ab4c2f3fca23ac4082f29f25f29dff0f758f57d06ec91 + sha256: c4af09051b4f0508f6c1dc0a5c085bf014d5c9a4a0678ce1799c2b4d716387a0 url: "https://pub.dev" source: hosted - version: "10.1.0" + version: "11.1.0" device_info_plus_platform_interface: dependency: transitive description: name: device_info_plus_platform_interface - sha256: d3b01d5868b50ae571cd1dc6e502fc94d956b665756180f7b16ead09e836fd64 + sha256: "282d3cf731045a2feb66abfe61bbc40870ae50a3ed10a4d3d217556c35c8c2ba" url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "7.0.1" dio: dependency: "direct main" description: @@ -399,18 +399,18 @@ packages: dependency: "direct main" description: name: drift - sha256: "4e0ffee40d23f0b809e6cff1ad202886f51d629649073ed42d9cd1d194ea943e" + sha256: df027d168a2985a2e9da900adeba2ab0136f0d84436592cf3cd5135f82c8579c url: "https://pub.dev" source: hosted - version: "2.19.1+1" + version: "2.21.0" drift_dev: dependency: "direct dev" description: name: drift_dev - sha256: ac7647c6cedca99724ca300cff9181f6dd799428f8ed71f94159ed0528eaec26 + sha256: "4592cea370f1dcd8afc67987c28402797d9ddb4aa3ae372cb675497c0741816c" url: "https://pub.dev" source: hosted - version: "2.19.1" + version: "2.21.1" encrypt: dependency: transitive description: @@ -487,10 +487,10 @@ packages: dependency: "direct main" description: name: file_picker - sha256: "824f5b9f389bfc4dddac3dea76cd70c51092d9dff0b2ece7ef4f53db8547d258" + sha256: aac85f20436608e01a6ffd1fdd4e746a7f33c93a2c83752e626bdfaea139b877 url: "https://pub.dev" source: hosted - version: "8.0.6" + version: "8.1.3" fixnum: dependency: transitive description: @@ -650,15 +650,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.15.2" - flutter_windowmanager: + flutter_windowmanager_plus: dependency: "direct main" description: - path: "." - ref: HEAD - resolved-ref: "3f5e7dae93e3c83368d2db0da7ee0dbcfd14d895" - url: "https://github.com/AQuadic/flutter_windowmanager" - source: git - version: "0.2.0" + name: flutter_windowmanager_plus + sha256: "4e2bf7c7f374699fd74d59785f1d74efd40052c24a5edde5a4d825cc72608d40" + url: "https://pub.dev" + source: hosted + version: "1.0.1" fluttertoast: dependency: "direct main" description: @@ -676,13 +675,13 @@ packages: source: hosted version: "9.2.0" frontend_server_client: - dependency: transitive + dependency: "direct dev" description: name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "4.0.0" fwfh_cached_network_image: dependency: transitive description: @@ -920,10 +919,10 @@ packages: dependency: transitive description: name: just_audio_web - sha256: "0edb481ad4aa1ff38f8c40f1a3576013c3420bf6669b686fe661627d49bc606c" + sha256: "9a98035b8b24b40749507687520ec5ab404e291d2b0937823ff45d92cb18d448" url: "https://pub.dev" source: hosted - version: "0.4.11" + version: "0.4.13" leak_tracker: dependency: transitive description: @@ -1105,10 +1104,10 @@ packages: dependency: "direct main" description: name: package_info_plus - sha256: "4de6c36df77ffbcef0a5aefe04669d33f2d18397fea228277b852a2d4e58e860" + sha256: "894f37107424311bdae3e476552229476777b8752c5a2a2369c0cb9a2d5442ef" url: "https://pub.dev" source: hosted - version: "8.0.1" + version: "8.0.3" package_info_plus_platform_interface: dependency: transitive description: @@ -1217,10 +1216,10 @@ packages: dependency: transitive description: name: permission_handler_html - sha256: "6cac773d389e045a8d4f85418d07ad58ef9e42a56e063629ce14c4c26344de24" + sha256: af26edbbb1f2674af65a8f4b56e1a6f526156bc273d0e65dd8075fab51c78851 url: "https://pub.dev" source: hosted - version: "0.1.2" + version: "0.1.3+2" permission_handler_platform_interface: dependency: transitive description: @@ -1442,18 +1441,18 @@ packages: dependency: "direct main" description: name: share_plus - sha256: fb5319f3aab4c5dda5ebb92dca978179ba21f8c783ee4380910ef4c1c6824f51 + sha256: "3af2cda1752e5c24f2fc04b6083b40f013ffe84fb90472f30c6499a9213d5442" url: "https://pub.dev" source: hosted - version: "8.0.3" + version: "10.1.1" share_plus_platform_interface: dependency: transitive description: name: share_plus_platform_interface - sha256: "251eb156a8b5fa9ce033747d73535bf53911071f8d3b6f4f0b578505ce0d4496" + sha256: c57c0bbfec7142e3a0f55633be504b796af72e60e3c791b44d5a017b985f7a48 url: "https://pub.dev" source: hosted - version: "3.4.0" + version: "5.0.1" shelf: dependency: transitive description: @@ -1567,10 +1566,10 @@ packages: dependency: transitive description: name: sqlite3 - sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb + sha256: bb174b3ec2527f9c5f680f73a89af8149dd99782fbb56ea88ad0807c5638f2ed url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.7" sqlite3_flutter_libs: dependency: "direct main" description: @@ -1583,10 +1582,10 @@ packages: dependency: transitive description: name: sqlparser - sha256: "3be52b4968fc2f098ba735863404756d2fe3ea0729cf006a5b5612618f74ca04" + sha256: d77749237609784e337ec36c979d41f6f38a7b279df98622ae23929c8eb954a4 url: "https://pub.dev" source: hosted - version: "0.37.1" + version: "0.39.2" stack_trace: dependency: transitive description: @@ -1823,10 +1822,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a" + sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.3" url_launcher_windows: dependency: transitive description: @@ -1911,10 +1910,10 @@ packages: dependency: transitive description: name: video_player_web - sha256: ff4d69a6614b03f055397c27a71c9d3ddea2b2a23d71b2ba0164f59ca32b8fe2 + sha256: "881b375a934d8ebf868c7fb1423b2bfaa393a0a265fa3f733079a86536064a10" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.3" visibility_detector: dependency: transitive description: @@ -1935,10 +1934,10 @@ packages: dependency: "direct main" description: name: wakelock_plus - sha256: "4fa83a128b4127619e385f686b4f080a5d2de46cff8e8c94eccac5fcf76550e5" + sha256: bf4ee6f17a2fa373ed3753ad0e602b7603f8c75af006d5b9bdade263928c0484 url: "https://pub.dev" source: hosted - version: "1.2.7" + version: "1.2.8" wakelock_plus_platform_interface: dependency: transitive description: @@ -1967,18 +1966,18 @@ packages: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.0" webkit_inspection_protocol: dependency: transitive description: @@ -2023,10 +2022,10 @@ packages: dependency: transitive description: name: win32 - sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4 + sha256: "68d1e89a91ed61ad9c370f9f8b6effed9ae5e0ede22a270bdfa6daf79fc2290a" url: "https://pub.dev" source: hosted - version: "5.5.1" + version: "5.5.4" win32_registry: dependency: transitive description: @@ -2084,5 +2083,5 @@ packages: source: hosted version: "2.0.1" sdks: - dart: ">=3.4.0 <4.0.0" + dart: ">=3.5.1 <4.0.0" flutter: ">=3.22.0" diff --git a/pubspec.yaml b/pubspec.yaml index a57193ca..64556b4c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,7 +36,7 @@ dependencies: executor: 2.2.2 retry: 3.1.2 path: 1.9.0 - drift: 2.19.1+1 + drift: 2.21.0 sqlite3_flutter_libs: 0.5.8 path_provider: 2.1.3 # https://github.com/letsar/flutter_slidable/issues/488 @@ -60,18 +60,17 @@ dependencies: git: url: https://github.com/jiangtian616/photo_view ref: separate - package_info_plus: 8.0.1 - file_picker: 8.0.6 + package_info_plus: 8.0.3 + file_picker: 8.1.3 local_auth: 2.2.0 blur: 3.1.0 - flutter_windowmanager: - git: https://github.com/AQuadic/flutter_windowmanager + flutter_windowmanager_plus: 1.0.1 animate_do: 3.3.4 - share_plus: 8.0.3 + share_plus: 10.1.1 syncfusion_flutter_charts: 27.1.48 archive: 3.6.1 fluttertoast: 8.1.2 - battery_plus: 6.0.1 + battery_plus: 6.2.0 throttling: 1.0.0 receive_sharing_intent: 1.4.5 window_manager: 0.3.9 @@ -93,7 +92,7 @@ dependencies: url: https://github.com/jiangtian616/flutter_draggable_gridview flutter_displaymode: 0.6.0 pinput: 2.2.31 - wakelock_plus: 1.2.7 + wakelock_plus: 1.2.8 flex_color_picker: 3.1.0 zoom_widget: 2.0.1 android_intent_plus: 5.0.2 @@ -104,7 +103,7 @@ dependencies: dotted_border: 2.1.0 j_downloader: git: https://github.com/jiangtian616/JDownloader - device_info_plus: 10.1.0 + device_info_plus: 11.1.0 template_expressions: 3.2.0+7 uuid: 4.4.0 xml: 6.5.0 @@ -126,12 +125,11 @@ dev_dependencies: sdk: flutter flutter_lints: ^1.0.0 test: 1.25.2 - drift_dev: 2.19.1 - build_runner: 2.4.8 - build_runner_core: 7.2.9 + drift_dev: 2.21.1 + build_runner: 2.4.11 + frontend_server_client: 4.0.0 flutter_launcher_icons: 0.11.0 - flutter: uses-material-design: true