diff --git a/lib/database/app_database.g.dart b/lib/database/app_database.g.dart index 587bddc0..2ba7538a 100644 --- a/lib/database/app_database.g.dart +++ b/lib/database/app_database.g.dart @@ -3,8 +3,7 @@ part of 'app_database.dart'; // ignore_for_file: type=lint -class $DownloadedMediaTable extends DownloadedMedia - with TableInfo<$DownloadedMediaTable, DownloadedMediaItem> { +class $DownloadedMediaTable extends DownloadedMedia with TableInfo<$DownloadedMediaTable, DownloadedMediaItem> { @override final GeneratedDatabase attachedDatabase; final String? _alias; @@ -18,13 +17,9 @@ class $DownloadedMediaTable extends DownloadedMedia hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'PRIMARY KEY AUTOINCREMENT', - ), - ); - static const VerificationMeta _serverIdMeta = const VerificationMeta( - 'serverId', + defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT'), ); + static const VerificationMeta _serverIdMeta = const VerificationMeta('serverId'); @override late final GeneratedColumn serverId = GeneratedColumn( 'server_id', @@ -33,9 +28,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _clientScopeIdMeta = const VerificationMeta( - 'clientScopeId', - ); + static const VerificationMeta _clientScopeIdMeta = const VerificationMeta('clientScopeId'); @override late final GeneratedColumn clientScopeId = GeneratedColumn( 'client_scope_id', @@ -44,9 +37,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _ratingKeyMeta = const VerificationMeta( - 'ratingKey', - ); + static const VerificationMeta _ratingKeyMeta = const VerificationMeta('ratingKey'); @override late final GeneratedColumn ratingKey = GeneratedColumn( 'rating_key', @@ -55,9 +46,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _globalKeyMeta = const VerificationMeta( - 'globalKey', - ); + static const VerificationMeta _globalKeyMeta = const VerificationMeta('globalKey'); @override late final GeneratedColumn globalKey = GeneratedColumn( 'global_key', @@ -76,9 +65,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _parentRatingKeyMeta = const VerificationMeta( - 'parentRatingKey', - ); + static const VerificationMeta _parentRatingKeyMeta = const VerificationMeta('parentRatingKey'); @override late final GeneratedColumn parentRatingKey = GeneratedColumn( 'parent_rating_key', @@ -87,17 +74,15 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _grandparentRatingKeyMeta = - const VerificationMeta('grandparentRatingKey'); + static const VerificationMeta _grandparentRatingKeyMeta = const VerificationMeta('grandparentRatingKey'); @override - late final GeneratedColumn grandparentRatingKey = - GeneratedColumn( - 'grandparent_rating_key', - aliasedName, - true, - type: DriftSqlType.string, - requiredDuringInsert: false, - ); + late final GeneratedColumn grandparentRatingKey = GeneratedColumn( + 'grandparent_rating_key', + aliasedName, + true, + type: DriftSqlType.string, + requiredDuringInsert: false, + ); static const VerificationMeta _statusMeta = const VerificationMeta('status'); @override late final GeneratedColumn status = GeneratedColumn( @@ -107,9 +92,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.int, requiredDuringInsert: true, ); - static const VerificationMeta _progressMeta = const VerificationMeta( - 'progress', - ); + static const VerificationMeta _progressMeta = const VerificationMeta('progress'); @override late final GeneratedColumn progress = GeneratedColumn( 'progress', @@ -119,9 +102,7 @@ class $DownloadedMediaTable extends DownloadedMedia requiredDuringInsert: false, defaultValue: const Constant(0), ); - static const VerificationMeta _totalBytesMeta = const VerificationMeta( - 'totalBytes', - ); + static const VerificationMeta _totalBytesMeta = const VerificationMeta('totalBytes'); @override late final GeneratedColumn totalBytes = GeneratedColumn( 'total_bytes', @@ -130,9 +111,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.int, requiredDuringInsert: false, ); - static const VerificationMeta _downloadedBytesMeta = const VerificationMeta( - 'downloadedBytes', - ); + static const VerificationMeta _downloadedBytesMeta = const VerificationMeta('downloadedBytes'); @override late final GeneratedColumn downloadedBytes = GeneratedColumn( 'downloaded_bytes', @@ -142,9 +121,7 @@ class $DownloadedMediaTable extends DownloadedMedia requiredDuringInsert: false, defaultValue: const Constant(0), ); - static const VerificationMeta _videoFilePathMeta = const VerificationMeta( - 'videoFilePath', - ); + static const VerificationMeta _videoFilePathMeta = const VerificationMeta('videoFilePath'); @override late final GeneratedColumn videoFilePath = GeneratedColumn( 'video_file_path', @@ -153,9 +130,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _thumbPathMeta = const VerificationMeta( - 'thumbPath', - ); + static const VerificationMeta _thumbPathMeta = const VerificationMeta('thumbPath'); @override late final GeneratedColumn thumbPath = GeneratedColumn( 'thumb_path', @@ -164,9 +139,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _downloadedAtMeta = const VerificationMeta( - 'downloadedAt', - ); + static const VerificationMeta _downloadedAtMeta = const VerificationMeta('downloadedAt'); @override late final GeneratedColumn downloadedAt = GeneratedColumn( 'downloaded_at', @@ -175,9 +148,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.int, requiredDuringInsert: false, ); - static const VerificationMeta _errorMessageMeta = const VerificationMeta( - 'errorMessage', - ); + static const VerificationMeta _errorMessageMeta = const VerificationMeta('errorMessage'); @override late final GeneratedColumn errorMessage = GeneratedColumn( 'error_message', @@ -186,9 +157,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _retryCountMeta = const VerificationMeta( - 'retryCount', - ); + static const VerificationMeta _retryCountMeta = const VerificationMeta('retryCount'); @override late final GeneratedColumn retryCount = GeneratedColumn( 'retry_count', @@ -198,9 +167,7 @@ class $DownloadedMediaTable extends DownloadedMedia requiredDuringInsert: false, defaultValue: const Constant(0), ); - static const VerificationMeta _bgTaskIdMeta = const VerificationMeta( - 'bgTaskId', - ); + static const VerificationMeta _bgTaskIdMeta = const VerificationMeta('bgTaskId'); @override late final GeneratedColumn bgTaskId = GeneratedColumn( 'bg_task_id', @@ -209,9 +176,7 @@ class $DownloadedMediaTable extends DownloadedMedia type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _mediaIndexMeta = const VerificationMeta( - 'mediaIndex', - ); + static const VerificationMeta _mediaIndexMeta = const VerificationMeta('mediaIndex'); @override late final GeneratedColumn mediaIndex = GeneratedColumn( 'media_index', @@ -249,153 +214,90 @@ class $DownloadedMediaTable extends DownloadedMedia String get actualTableName => $name; static const String $name = 'downloaded_media'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); } if (data.containsKey('server_id')) { - context.handle( - _serverIdMeta, - serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta), - ); + context.handle(_serverIdMeta, serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta)); } else if (isInserting) { context.missing(_serverIdMeta); } if (data.containsKey('client_scope_id')) { context.handle( _clientScopeIdMeta, - clientScopeId.isAcceptableOrUnknown( - data['client_scope_id']!, - _clientScopeIdMeta, - ), + clientScopeId.isAcceptableOrUnknown(data['client_scope_id']!, _clientScopeIdMeta), ); } if (data.containsKey('rating_key')) { - context.handle( - _ratingKeyMeta, - ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta), - ); + context.handle(_ratingKeyMeta, ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta)); } else if (isInserting) { context.missing(_ratingKeyMeta); } if (data.containsKey('global_key')) { - context.handle( - _globalKeyMeta, - globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta), - ); + context.handle(_globalKeyMeta, globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta)); } else if (isInserting) { context.missing(_globalKeyMeta); } if (data.containsKey('type')) { - context.handle( - _typeMeta, - type.isAcceptableOrUnknown(data['type']!, _typeMeta), - ); + context.handle(_typeMeta, type.isAcceptableOrUnknown(data['type']!, _typeMeta)); } else if (isInserting) { context.missing(_typeMeta); } if (data.containsKey('parent_rating_key')) { context.handle( _parentRatingKeyMeta, - parentRatingKey.isAcceptableOrUnknown( - data['parent_rating_key']!, - _parentRatingKeyMeta, - ), + parentRatingKey.isAcceptableOrUnknown(data['parent_rating_key']!, _parentRatingKeyMeta), ); } if (data.containsKey('grandparent_rating_key')) { context.handle( _grandparentRatingKeyMeta, - grandparentRatingKey.isAcceptableOrUnknown( - data['grandparent_rating_key']!, - _grandparentRatingKeyMeta, - ), + grandparentRatingKey.isAcceptableOrUnknown(data['grandparent_rating_key']!, _grandparentRatingKeyMeta), ); } if (data.containsKey('status')) { - context.handle( - _statusMeta, - status.isAcceptableOrUnknown(data['status']!, _statusMeta), - ); + context.handle(_statusMeta, status.isAcceptableOrUnknown(data['status']!, _statusMeta)); } else if (isInserting) { context.missing(_statusMeta); } if (data.containsKey('progress')) { - context.handle( - _progressMeta, - progress.isAcceptableOrUnknown(data['progress']!, _progressMeta), - ); + context.handle(_progressMeta, progress.isAcceptableOrUnknown(data['progress']!, _progressMeta)); } if (data.containsKey('total_bytes')) { - context.handle( - _totalBytesMeta, - totalBytes.isAcceptableOrUnknown(data['total_bytes']!, _totalBytesMeta), - ); + context.handle(_totalBytesMeta, totalBytes.isAcceptableOrUnknown(data['total_bytes']!, _totalBytesMeta)); } if (data.containsKey('downloaded_bytes')) { context.handle( _downloadedBytesMeta, - downloadedBytes.isAcceptableOrUnknown( - data['downloaded_bytes']!, - _downloadedBytesMeta, - ), + downloadedBytes.isAcceptableOrUnknown(data['downloaded_bytes']!, _downloadedBytesMeta), ); } if (data.containsKey('video_file_path')) { context.handle( _videoFilePathMeta, - videoFilePath.isAcceptableOrUnknown( - data['video_file_path']!, - _videoFilePathMeta, - ), + videoFilePath.isAcceptableOrUnknown(data['video_file_path']!, _videoFilePathMeta), ); } if (data.containsKey('thumb_path')) { - context.handle( - _thumbPathMeta, - thumbPath.isAcceptableOrUnknown(data['thumb_path']!, _thumbPathMeta), - ); + context.handle(_thumbPathMeta, thumbPath.isAcceptableOrUnknown(data['thumb_path']!, _thumbPathMeta)); } if (data.containsKey('downloaded_at')) { - context.handle( - _downloadedAtMeta, - downloadedAt.isAcceptableOrUnknown( - data['downloaded_at']!, - _downloadedAtMeta, - ), - ); + context.handle(_downloadedAtMeta, downloadedAt.isAcceptableOrUnknown(data['downloaded_at']!, _downloadedAtMeta)); } if (data.containsKey('error_message')) { - context.handle( - _errorMessageMeta, - errorMessage.isAcceptableOrUnknown( - data['error_message']!, - _errorMessageMeta, - ), - ); + context.handle(_errorMessageMeta, errorMessage.isAcceptableOrUnknown(data['error_message']!, _errorMessageMeta)); } if (data.containsKey('retry_count')) { - context.handle( - _retryCountMeta, - retryCount.isAcceptableOrUnknown(data['retry_count']!, _retryCountMeta), - ); + context.handle(_retryCountMeta, retryCount.isAcceptableOrUnknown(data['retry_count']!, _retryCountMeta)); } if (data.containsKey('bg_task_id')) { - context.handle( - _bgTaskIdMeta, - bgTaskId.isAcceptableOrUnknown(data['bg_task_id']!, _bgTaskIdMeta), - ); + context.handle(_bgTaskIdMeta, bgTaskId.isAcceptableOrUnknown(data['bg_task_id']!, _bgTaskIdMeta)); } if (data.containsKey('media_index')) { - context.handle( - _mediaIndexMeta, - mediaIndex.isAcceptableOrUnknown(data['media_index']!, _mediaIndexMeta), - ); + context.handle(_mediaIndexMeta, mediaIndex.isAcceptableOrUnknown(data['media_index']!, _mediaIndexMeta)); } return context; } @@ -406,30 +308,12 @@ class $DownloadedMediaTable extends DownloadedMedia DownloadedMediaItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return DownloadedMediaItem( - id: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}id'], - )!, - serverId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}server_id'], - )!, - clientScopeId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}client_scope_id'], - ), - ratingKey: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}rating_key'], - )!, - globalKey: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}global_key'], - )!, - type: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}type'], - )!, + id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, + serverId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}server_id'])!, + clientScopeId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}client_scope_id']), + ratingKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}rating_key'])!, + globalKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}global_key'])!, + type: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}type'])!, parentRatingKey: attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}parent_rating_key'], @@ -438,50 +322,17 @@ class $DownloadedMediaTable extends DownloadedMedia DriftSqlType.string, data['${effectivePrefix}grandparent_rating_key'], ), - status: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}status'], - )!, - progress: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}progress'], - )!, - totalBytes: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}total_bytes'], - ), - downloadedBytes: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}downloaded_bytes'], - )!, - videoFilePath: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}video_file_path'], - ), - thumbPath: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}thumb_path'], - ), - downloadedAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}downloaded_at'], - ), - errorMessage: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}error_message'], - ), - retryCount: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}retry_count'], - )!, - bgTaskId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}bg_task_id'], - ), - mediaIndex: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}media_index'], - )!, + status: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}status'])!, + progress: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}progress'])!, + totalBytes: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}total_bytes']), + downloadedBytes: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}downloaded_bytes'])!, + videoFilePath: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}video_file_path']), + thumbPath: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}thumb_path']), + downloadedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}downloaded_at']), + errorMessage: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}error_message']), + retryCount: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}retry_count'])!, + bgTaskId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}bg_task_id']), + mediaIndex: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}media_index'])!, ); } @@ -491,8 +342,7 @@ class $DownloadedMediaTable extends DownloadedMedia } } -class DownloadedMediaItem extends DataClass - implements Insertable { +class DownloadedMediaItem extends DataClass implements Insertable { final int id; final String serverId; final String? clientScopeId; @@ -580,48 +430,29 @@ class DownloadedMediaItem extends DataClass return DownloadedMediaCompanion( id: Value(id), serverId: Value(serverId), - clientScopeId: clientScopeId == null && nullToAbsent - ? const Value.absent() - : Value(clientScopeId), + clientScopeId: clientScopeId == null && nullToAbsent ? const Value.absent() : Value(clientScopeId), ratingKey: Value(ratingKey), globalKey: Value(globalKey), type: Value(type), - parentRatingKey: parentRatingKey == null && nullToAbsent - ? const Value.absent() - : Value(parentRatingKey), + parentRatingKey: parentRatingKey == null && nullToAbsent ? const Value.absent() : Value(parentRatingKey), grandparentRatingKey: grandparentRatingKey == null && nullToAbsent ? const Value.absent() : Value(grandparentRatingKey), status: Value(status), progress: Value(progress), - totalBytes: totalBytes == null && nullToAbsent - ? const Value.absent() - : Value(totalBytes), + totalBytes: totalBytes == null && nullToAbsent ? const Value.absent() : Value(totalBytes), downloadedBytes: Value(downloadedBytes), - videoFilePath: videoFilePath == null && nullToAbsent - ? const Value.absent() - : Value(videoFilePath), - thumbPath: thumbPath == null && nullToAbsent - ? const Value.absent() - : Value(thumbPath), - downloadedAt: downloadedAt == null && nullToAbsent - ? const Value.absent() - : Value(downloadedAt), - errorMessage: errorMessage == null && nullToAbsent - ? const Value.absent() - : Value(errorMessage), + videoFilePath: videoFilePath == null && nullToAbsent ? const Value.absent() : Value(videoFilePath), + thumbPath: thumbPath == null && nullToAbsent ? const Value.absent() : Value(thumbPath), + downloadedAt: downloadedAt == null && nullToAbsent ? const Value.absent() : Value(downloadedAt), + errorMessage: errorMessage == null && nullToAbsent ? const Value.absent() : Value(errorMessage), retryCount: Value(retryCount), - bgTaskId: bgTaskId == null && nullToAbsent - ? const Value.absent() - : Value(bgTaskId), + bgTaskId: bgTaskId == null && nullToAbsent ? const Value.absent() : Value(bgTaskId), mediaIndex: Value(mediaIndex), ); } - factory DownloadedMediaItem.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory DownloadedMediaItem.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return DownloadedMediaItem( id: serializer.fromJson(json['id']), @@ -631,9 +462,7 @@ class DownloadedMediaItem extends DataClass globalKey: serializer.fromJson(json['globalKey']), type: serializer.fromJson(json['type']), parentRatingKey: serializer.fromJson(json['parentRatingKey']), - grandparentRatingKey: serializer.fromJson( - json['grandparentRatingKey'], - ), + grandparentRatingKey: serializer.fromJson(json['grandparentRatingKey']), status: serializer.fromJson(json['status']), progress: serializer.fromJson(json['progress']), totalBytes: serializer.fromJson(json['totalBytes']), @@ -696,25 +525,17 @@ class DownloadedMediaItem extends DataClass }) => DownloadedMediaItem( id: id ?? this.id, serverId: serverId ?? this.serverId, - clientScopeId: clientScopeId.present - ? clientScopeId.value - : this.clientScopeId, + clientScopeId: clientScopeId.present ? clientScopeId.value : this.clientScopeId, ratingKey: ratingKey ?? this.ratingKey, globalKey: globalKey ?? this.globalKey, type: type ?? this.type, - parentRatingKey: parentRatingKey.present - ? parentRatingKey.value - : this.parentRatingKey, - grandparentRatingKey: grandparentRatingKey.present - ? grandparentRatingKey.value - : this.grandparentRatingKey, + parentRatingKey: parentRatingKey.present ? parentRatingKey.value : this.parentRatingKey, + grandparentRatingKey: grandparentRatingKey.present ? grandparentRatingKey.value : this.grandparentRatingKey, status: status ?? this.status, progress: progress ?? this.progress, totalBytes: totalBytes.present ? totalBytes.value : this.totalBytes, downloadedBytes: downloadedBytes ?? this.downloadedBytes, - videoFilePath: videoFilePath.present - ? videoFilePath.value - : this.videoFilePath, + videoFilePath: videoFilePath.present ? videoFilePath.value : this.videoFilePath, thumbPath: thumbPath.present ? thumbPath.value : this.thumbPath, downloadedAt: downloadedAt.present ? downloadedAt.value : this.downloadedAt, errorMessage: errorMessage.present ? errorMessage.value : this.errorMessage, @@ -726,43 +547,25 @@ class DownloadedMediaItem extends DataClass return DownloadedMediaItem( id: data.id.present ? data.id.value : this.id, serverId: data.serverId.present ? data.serverId.value : this.serverId, - clientScopeId: data.clientScopeId.present - ? data.clientScopeId.value - : this.clientScopeId, + clientScopeId: data.clientScopeId.present ? data.clientScopeId.value : this.clientScopeId, ratingKey: data.ratingKey.present ? data.ratingKey.value : this.ratingKey, globalKey: data.globalKey.present ? data.globalKey.value : this.globalKey, type: data.type.present ? data.type.value : this.type, - parentRatingKey: data.parentRatingKey.present - ? data.parentRatingKey.value - : this.parentRatingKey, + parentRatingKey: data.parentRatingKey.present ? data.parentRatingKey.value : this.parentRatingKey, grandparentRatingKey: data.grandparentRatingKey.present ? data.grandparentRatingKey.value : this.grandparentRatingKey, status: data.status.present ? data.status.value : this.status, progress: data.progress.present ? data.progress.value : this.progress, - totalBytes: data.totalBytes.present - ? data.totalBytes.value - : this.totalBytes, - downloadedBytes: data.downloadedBytes.present - ? data.downloadedBytes.value - : this.downloadedBytes, - videoFilePath: data.videoFilePath.present - ? data.videoFilePath.value - : this.videoFilePath, + totalBytes: data.totalBytes.present ? data.totalBytes.value : this.totalBytes, + downloadedBytes: data.downloadedBytes.present ? data.downloadedBytes.value : this.downloadedBytes, + videoFilePath: data.videoFilePath.present ? data.videoFilePath.value : this.videoFilePath, thumbPath: data.thumbPath.present ? data.thumbPath.value : this.thumbPath, - downloadedAt: data.downloadedAt.present - ? data.downloadedAt.value - : this.downloadedAt, - errorMessage: data.errorMessage.present - ? data.errorMessage.value - : this.errorMessage, - retryCount: data.retryCount.present - ? data.retryCount.value - : this.retryCount, + downloadedAt: data.downloadedAt.present ? data.downloadedAt.value : this.downloadedAt, + errorMessage: data.errorMessage.present ? data.errorMessage.value : this.errorMessage, + retryCount: data.retryCount.present ? data.retryCount.value : this.retryCount, bgTaskId: data.bgTaskId.present ? data.bgTaskId.value : this.bgTaskId, - mediaIndex: data.mediaIndex.present - ? data.mediaIndex.value - : this.mediaIndex, + mediaIndex: data.mediaIndex.present ? data.mediaIndex.value : this.mediaIndex, ); } @@ -934,8 +737,7 @@ class DownloadedMediaCompanion extends UpdateCompanion { if (globalKey != null) 'global_key': globalKey, if (type != null) 'type': type, if (parentRatingKey != null) 'parent_rating_key': parentRatingKey, - if (grandparentRatingKey != null) - 'grandparent_rating_key': grandparentRatingKey, + if (grandparentRatingKey != null) 'grandparent_rating_key': grandparentRatingKey, if (status != null) 'status': status, if (progress != null) 'progress': progress, if (totalBytes != null) 'total_bytes': totalBytes, @@ -1019,9 +821,7 @@ class DownloadedMediaCompanion extends UpdateCompanion { map['parent_rating_key'] = Variable(parentRatingKey.value); } if (grandparentRatingKey.present) { - map['grandparent_rating_key'] = Variable( - grandparentRatingKey.value, - ); + map['grandparent_rating_key'] = Variable(grandparentRatingKey.value); } if (status.present) { map['status'] = Variable(status.value); @@ -1086,15 +886,12 @@ class DownloadedMediaCompanion extends UpdateCompanion { } } -class $DownloadOwnersTable extends DownloadOwners - with TableInfo<$DownloadOwnersTable, DownloadOwnerItem> { +class $DownloadOwnersTable extends DownloadOwners with TableInfo<$DownloadOwnersTable, DownloadOwnerItem> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $DownloadOwnersTable(this.attachedDatabase, [this._alias]); - static const VerificationMeta _profileIdMeta = const VerificationMeta( - 'profileId', - ); + static const VerificationMeta _profileIdMeta = const VerificationMeta('profileId'); @override late final GeneratedColumn profileId = GeneratedColumn( 'profile_id', @@ -1103,9 +900,7 @@ class $DownloadOwnersTable extends DownloadOwners type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _globalKeyMeta = const VerificationMeta( - 'globalKey', - ); + static const VerificationMeta _globalKeyMeta = const VerificationMeta('globalKey'); @override late final GeneratedColumn globalKey = GeneratedColumn( 'global_key', @@ -1114,9 +909,7 @@ class $DownloadOwnersTable extends DownloadOwners type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _createdAtMeta = const VerificationMeta( - 'createdAt', - ); + static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', @@ -1133,33 +926,21 @@ class $DownloadOwnersTable extends DownloadOwners String get actualTableName => $name; static const String $name = 'download_owners'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('profile_id')) { - context.handle( - _profileIdMeta, - profileId.isAcceptableOrUnknown(data['profile_id']!, _profileIdMeta), - ); + context.handle(_profileIdMeta, profileId.isAcceptableOrUnknown(data['profile_id']!, _profileIdMeta)); } else if (isInserting) { context.missing(_profileIdMeta); } if (data.containsKey('global_key')) { - context.handle( - _globalKeyMeta, - globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta), - ); + context.handle(_globalKeyMeta, globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta)); } else if (isInserting) { context.missing(_globalKeyMeta); } if (data.containsKey('created_at')) { - context.handle( - _createdAtMeta, - createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta), - ); + context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } else if (isInserting) { context.missing(_createdAtMeta); } @@ -1172,18 +953,9 @@ class $DownloadOwnersTable extends DownloadOwners DownloadOwnerItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return DownloadOwnerItem( - profileId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}profile_id'], - )!, - globalKey: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}global_key'], - )!, - createdAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}created_at'], - )!, + profileId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}profile_id'])!, + globalKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}global_key'])!, + createdAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}created_at'])!, ); } @@ -1193,16 +965,11 @@ class $DownloadOwnersTable extends DownloadOwners } } -class DownloadOwnerItem extends DataClass - implements Insertable { +class DownloadOwnerItem extends DataClass implements Insertable { final String profileId; final String globalKey; final int createdAt; - const DownloadOwnerItem({ - required this.profileId, - required this.globalKey, - required this.createdAt, - }); + const DownloadOwnerItem({required this.profileId, required this.globalKey, required this.createdAt}); @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -1220,10 +987,7 @@ class DownloadOwnerItem extends DataClass ); } - factory DownloadOwnerItem.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory DownloadOwnerItem.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return DownloadOwnerItem( profileId: serializer.fromJson(json['profileId']), @@ -1241,11 +1005,7 @@ class DownloadOwnerItem extends DataClass }; } - DownloadOwnerItem copyWith({ - String? profileId, - String? globalKey, - int? createdAt, - }) => DownloadOwnerItem( + DownloadOwnerItem copyWith({String? profileId, String? globalKey, int? createdAt}) => DownloadOwnerItem( profileId: profileId ?? this.profileId, globalKey: globalKey ?? this.globalKey, createdAt: createdAt ?? this.createdAt, @@ -1356,8 +1116,7 @@ class DownloadOwnersCompanion extends UpdateCompanion { } } -class $DownloadQueueTable extends DownloadQueue - with TableInfo<$DownloadQueueTable, DownloadQueueItem> { +class $DownloadQueueTable extends DownloadQueue with TableInfo<$DownloadQueueTable, DownloadQueueItem> { @override final GeneratedDatabase attachedDatabase; final String? _alias; @@ -1371,13 +1130,9 @@ class $DownloadQueueTable extends DownloadQueue hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'PRIMARY KEY AUTOINCREMENT', - ), - ); - static const VerificationMeta _mediaGlobalKeyMeta = const VerificationMeta( - 'mediaGlobalKey', + defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT'), ); + static const VerificationMeta _mediaGlobalKeyMeta = const VerificationMeta('mediaGlobalKey'); @override late final GeneratedColumn mediaGlobalKey = GeneratedColumn( 'media_global_key', @@ -1387,9 +1142,7 @@ class $DownloadQueueTable extends DownloadQueue requiredDuringInsert: true, defaultConstraints: GeneratedColumn.constraintIsAlways('UNIQUE'), ); - static const VerificationMeta _priorityMeta = const VerificationMeta( - 'priority', - ); + static const VerificationMeta _priorityMeta = const VerificationMeta('priority'); @override late final GeneratedColumn priority = GeneratedColumn( 'priority', @@ -1399,9 +1152,7 @@ class $DownloadQueueTable extends DownloadQueue requiredDuringInsert: false, defaultValue: const Constant(0), ); - static const VerificationMeta _addedAtMeta = const VerificationMeta( - 'addedAt', - ); + static const VerificationMeta _addedAtMeta = const VerificationMeta('addedAt'); @override late final GeneratedColumn addedAt = GeneratedColumn( 'added_at', @@ -1410,9 +1161,7 @@ class $DownloadQueueTable extends DownloadQueue type: DriftSqlType.int, requiredDuringInsert: true, ); - static const VerificationMeta _downloadSubtitlesMeta = const VerificationMeta( - 'downloadSubtitles', - ); + static const VerificationMeta _downloadSubtitlesMeta = const VerificationMeta('downloadSubtitles'); @override late final GeneratedColumn downloadSubtitles = GeneratedColumn( 'download_subtitles', @@ -1420,14 +1169,10 @@ class $DownloadQueueTable extends DownloadQueue false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("download_subtitles" IN (0, 1))', - ), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("download_subtitles" IN (0, 1))'), defaultValue: const Constant(true), ); - static const VerificationMeta _downloadArtworkMeta = const VerificationMeta( - 'downloadArtwork', - ); + static const VerificationMeta _downloadArtworkMeta = const VerificationMeta('downloadArtwork'); @override late final GeneratedColumn downloadArtwork = GeneratedColumn( 'download_artwork', @@ -1435,30 +1180,18 @@ class $DownloadQueueTable extends DownloadQueue false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("download_artwork" IN (0, 1))', - ), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("download_artwork" IN (0, 1))'), defaultValue: const Constant(true), ); @override - List get $columns => [ - id, - mediaGlobalKey, - priority, - addedAt, - downloadSubtitles, - downloadArtwork, - ]; + List get $columns => [id, mediaGlobalKey, priority, addedAt, downloadSubtitles, downloadArtwork]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'download_queue'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -1467,44 +1200,29 @@ class $DownloadQueueTable extends DownloadQueue if (data.containsKey('media_global_key')) { context.handle( _mediaGlobalKeyMeta, - mediaGlobalKey.isAcceptableOrUnknown( - data['media_global_key']!, - _mediaGlobalKeyMeta, - ), + mediaGlobalKey.isAcceptableOrUnknown(data['media_global_key']!, _mediaGlobalKeyMeta), ); } else if (isInserting) { context.missing(_mediaGlobalKeyMeta); } if (data.containsKey('priority')) { - context.handle( - _priorityMeta, - priority.isAcceptableOrUnknown(data['priority']!, _priorityMeta), - ); + context.handle(_priorityMeta, priority.isAcceptableOrUnknown(data['priority']!, _priorityMeta)); } if (data.containsKey('added_at')) { - context.handle( - _addedAtMeta, - addedAt.isAcceptableOrUnknown(data['added_at']!, _addedAtMeta), - ); + context.handle(_addedAtMeta, addedAt.isAcceptableOrUnknown(data['added_at']!, _addedAtMeta)); } else if (isInserting) { context.missing(_addedAtMeta); } if (data.containsKey('download_subtitles')) { context.handle( _downloadSubtitlesMeta, - downloadSubtitles.isAcceptableOrUnknown( - data['download_subtitles']!, - _downloadSubtitlesMeta, - ), + downloadSubtitles.isAcceptableOrUnknown(data['download_subtitles']!, _downloadSubtitlesMeta), ); } if (data.containsKey('download_artwork')) { context.handle( _downloadArtworkMeta, - downloadArtwork.isAcceptableOrUnknown( - data['download_artwork']!, - _downloadArtworkMeta, - ), + downloadArtwork.isAcceptableOrUnknown(data['download_artwork']!, _downloadArtworkMeta), ); } return context; @@ -1516,22 +1234,13 @@ class $DownloadQueueTable extends DownloadQueue DownloadQueueItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return DownloadQueueItem( - id: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}id'], - )!, + id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, mediaGlobalKey: attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}media_global_key'], )!, - priority: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}priority'], - )!, - addedAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}added_at'], - )!, + priority: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}priority'])!, + addedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}added_at'])!, downloadSubtitles: attachedDatabase.typeMapping.read( DriftSqlType.bool, data['${effectivePrefix}download_subtitles'], @@ -1549,8 +1258,7 @@ class $DownloadQueueTable extends DownloadQueue } } -class DownloadQueueItem extends DataClass - implements Insertable { +class DownloadQueueItem extends DataClass implements Insertable { final int id; final String mediaGlobalKey; final int priority; @@ -1588,10 +1296,7 @@ class DownloadQueueItem extends DataClass ); } - factory DownloadQueueItem.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory DownloadQueueItem.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return DownloadQueueItem( id: serializer.fromJson(json['id']), @@ -1633,17 +1338,11 @@ class DownloadQueueItem extends DataClass DownloadQueueItem copyWithCompanion(DownloadQueueCompanion data) { return DownloadQueueItem( id: data.id.present ? data.id.value : this.id, - mediaGlobalKey: data.mediaGlobalKey.present - ? data.mediaGlobalKey.value - : this.mediaGlobalKey, + mediaGlobalKey: data.mediaGlobalKey.present ? data.mediaGlobalKey.value : this.mediaGlobalKey, priority: data.priority.present ? data.priority.value : this.priority, addedAt: data.addedAt.present ? data.addedAt.value : this.addedAt, - downloadSubtitles: data.downloadSubtitles.present - ? data.downloadSubtitles.value - : this.downloadSubtitles, - downloadArtwork: data.downloadArtwork.present - ? data.downloadArtwork.value - : this.downloadArtwork, + downloadSubtitles: data.downloadSubtitles.present ? data.downloadSubtitles.value : this.downloadSubtitles, + downloadArtwork: data.downloadArtwork.present ? data.downloadArtwork.value : this.downloadArtwork, ); } @@ -1661,14 +1360,7 @@ class DownloadQueueItem extends DataClass } @override - int get hashCode => Object.hash( - id, - mediaGlobalKey, - priority, - addedAt, - downloadSubtitles, - downloadArtwork, - ); + int get hashCode => Object.hash(id, mediaGlobalKey, priority, addedAt, downloadSubtitles, downloadArtwork); @override bool operator ==(Object other) => identical(this, other) || @@ -1779,15 +1471,12 @@ class DownloadQueueCompanion extends UpdateCompanion { } } -class $ApiCacheTable extends ApiCache - with TableInfo<$ApiCacheTable, ApiCacheData> { +class $ApiCacheTable extends ApiCache with TableInfo<$ApiCacheTable, ApiCacheData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $ApiCacheTable(this.attachedDatabase, [this._alias]); - static const VerificationMeta _cacheKeyMeta = const VerificationMeta( - 'cacheKey', - ); + static const VerificationMeta _cacheKeyMeta = const VerificationMeta('cacheKey'); @override late final GeneratedColumn cacheKey = GeneratedColumn( 'cache_key', @@ -1813,14 +1502,10 @@ class $ApiCacheTable extends ApiCache false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("pinned" IN (0, 1))', - ), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("pinned" IN (0, 1))'), defaultValue: const Constant(false), ); - static const VerificationMeta _cachedAtMeta = const VerificationMeta( - 'cachedAt', - ); + static const VerificationMeta _cachedAtMeta = const VerificationMeta('cachedAt'); @override late final GeneratedColumn cachedAt = GeneratedColumn( 'cached_at', @@ -1838,39 +1523,24 @@ class $ApiCacheTable extends ApiCache String get actualTableName => $name; static const String $name = 'api_cache'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('cache_key')) { - context.handle( - _cacheKeyMeta, - cacheKey.isAcceptableOrUnknown(data['cache_key']!, _cacheKeyMeta), - ); + context.handle(_cacheKeyMeta, cacheKey.isAcceptableOrUnknown(data['cache_key']!, _cacheKeyMeta)); } else if (isInserting) { context.missing(_cacheKeyMeta); } if (data.containsKey('data')) { - context.handle( - _dataMeta, - this.data.isAcceptableOrUnknown(data['data']!, _dataMeta), - ); + context.handle(_dataMeta, this.data.isAcceptableOrUnknown(data['data']!, _dataMeta)); } else if (isInserting) { context.missing(_dataMeta); } if (data.containsKey('pinned')) { - context.handle( - _pinnedMeta, - pinned.isAcceptableOrUnknown(data['pinned']!, _pinnedMeta), - ); + context.handle(_pinnedMeta, pinned.isAcceptableOrUnknown(data['pinned']!, _pinnedMeta)); } if (data.containsKey('cached_at')) { - context.handle( - _cachedAtMeta, - cachedAt.isAcceptableOrUnknown(data['cached_at']!, _cachedAtMeta), - ); + context.handle(_cachedAtMeta, cachedAt.isAcceptableOrUnknown(data['cached_at']!, _cachedAtMeta)); } return context; } @@ -1881,22 +1551,10 @@ class $ApiCacheTable extends ApiCache ApiCacheData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return ApiCacheData( - cacheKey: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}cache_key'], - )!, - data: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}data'], - )!, - pinned: attachedDatabase.typeMapping.read( - DriftSqlType.bool, - data['${effectivePrefix}pinned'], - )!, - cachedAt: attachedDatabase.typeMapping.read( - DriftSqlType.dateTime, - data['${effectivePrefix}cached_at'], - )!, + cacheKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}cache_key'])!, + data: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!, + pinned: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}pinned'])!, + cachedAt: attachedDatabase.typeMapping.read(DriftSqlType.dateTime, data['${effectivePrefix}cached_at'])!, ); } @@ -1919,12 +1577,7 @@ class ApiCacheData extends DataClass implements Insertable { /// Timestamp for cache invalidation (optional future use) final DateTime cachedAt; - const ApiCacheData({ - required this.cacheKey, - required this.data, - required this.pinned, - required this.cachedAt, - }); + const ApiCacheData({required this.cacheKey, required this.data, required this.pinned, required this.cachedAt}); @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -1944,10 +1597,7 @@ class ApiCacheData extends DataClass implements Insertable { ); } - factory ApiCacheData.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory ApiCacheData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return ApiCacheData( cacheKey: serializer.fromJson(json['cacheKey']), @@ -1967,12 +1617,7 @@ class ApiCacheData extends DataClass implements Insertable { }; } - ApiCacheData copyWith({ - String? cacheKey, - String? data, - bool? pinned, - DateTime? cachedAt, - }) => ApiCacheData( + ApiCacheData copyWith({String? cacheKey, String? data, bool? pinned, DateTime? cachedAt}) => ApiCacheData( cacheKey: cacheKey ?? this.cacheKey, data: data ?? this.data, pinned: pinned ?? this.pinned, @@ -2112,13 +1757,9 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'PRIMARY KEY AUTOINCREMENT', - ), - ); - static const VerificationMeta _profileIdMeta = const VerificationMeta( - 'profileId', + defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT'), ); + static const VerificationMeta _profileIdMeta = const VerificationMeta('profileId'); @override late final GeneratedColumn profileId = GeneratedColumn( 'profile_id', @@ -2127,9 +1768,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _serverIdMeta = const VerificationMeta( - 'serverId', - ); + static const VerificationMeta _serverIdMeta = const VerificationMeta('serverId'); @override late final GeneratedColumn serverId = GeneratedColumn( 'server_id', @@ -2138,9 +1777,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _clientScopeIdMeta = const VerificationMeta( - 'clientScopeId', - ); + static const VerificationMeta _clientScopeIdMeta = const VerificationMeta('clientScopeId'); @override late final GeneratedColumn clientScopeId = GeneratedColumn( 'client_scope_id', @@ -2149,9 +1786,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _ratingKeyMeta = const VerificationMeta( - 'ratingKey', - ); + static const VerificationMeta _ratingKeyMeta = const VerificationMeta('ratingKey'); @override late final GeneratedColumn ratingKey = GeneratedColumn( 'rating_key', @@ -2160,9 +1795,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _globalKeyMeta = const VerificationMeta( - 'globalKey', - ); + static const VerificationMeta _globalKeyMeta = const VerificationMeta('globalKey'); @override late final GeneratedColumn globalKey = GeneratedColumn( 'global_key', @@ -2171,9 +1804,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _actionTypeMeta = const VerificationMeta( - 'actionType', - ); + static const VerificationMeta _actionTypeMeta = const VerificationMeta('actionType'); @override late final GeneratedColumn actionType = GeneratedColumn( 'action_type', @@ -2182,9 +1813,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _viewOffsetMeta = const VerificationMeta( - 'viewOffset', - ); + static const VerificationMeta _viewOffsetMeta = const VerificationMeta('viewOffset'); @override late final GeneratedColumn viewOffset = GeneratedColumn( 'view_offset', @@ -2193,9 +1822,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.int, requiredDuringInsert: false, ); - static const VerificationMeta _durationMeta = const VerificationMeta( - 'duration', - ); + static const VerificationMeta _durationMeta = const VerificationMeta('duration'); @override late final GeneratedColumn duration = GeneratedColumn( 'duration', @@ -2204,9 +1831,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.int, requiredDuringInsert: false, ); - static const VerificationMeta _shouldMarkWatchedMeta = const VerificationMeta( - 'shouldMarkWatched', - ); + static const VerificationMeta _shouldMarkWatchedMeta = const VerificationMeta('shouldMarkWatched'); @override late final GeneratedColumn shouldMarkWatched = GeneratedColumn( 'should_mark_watched', @@ -2214,14 +1839,10 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("should_mark_watched" IN (0, 1))', - ), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("should_mark_watched" IN (0, 1))'), defaultValue: const Constant(false), ); - static const VerificationMeta _createdAtMeta = const VerificationMeta( - 'createdAt', - ); + static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', @@ -2230,9 +1851,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.int, requiredDuringInsert: true, ); - static const VerificationMeta _updatedAtMeta = const VerificationMeta( - 'updatedAt', - ); + static const VerificationMeta _updatedAtMeta = const VerificationMeta('updatedAt'); @override late final GeneratedColumn updatedAt = GeneratedColumn( 'updated_at', @@ -2241,9 +1860,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress type: DriftSqlType.int, requiredDuringInsert: true, ); - static const VerificationMeta _syncAttemptsMeta = const VerificationMeta( - 'syncAttempts', - ); + static const VerificationMeta _syncAttemptsMeta = const VerificationMeta('syncAttempts'); @override late final GeneratedColumn syncAttempts = GeneratedColumn( 'sync_attempts', @@ -2253,9 +1870,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress requiredDuringInsert: false, defaultValue: const Constant(0), ); - static const VerificationMeta _lastErrorMeta = const VerificationMeta( - 'lastError', - ); + static const VerificationMeta _lastErrorMeta = const VerificationMeta('lastError'); @override late final GeneratedColumn lastError = GeneratedColumn( 'last_error', @@ -2287,113 +1902,68 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress String get actualTableName => $name; static const String $name = 'offline_watch_progress'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); } if (data.containsKey('profile_id')) { - context.handle( - _profileIdMeta, - profileId.isAcceptableOrUnknown(data['profile_id']!, _profileIdMeta), - ); + context.handle(_profileIdMeta, profileId.isAcceptableOrUnknown(data['profile_id']!, _profileIdMeta)); } if (data.containsKey('server_id')) { - context.handle( - _serverIdMeta, - serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta), - ); + context.handle(_serverIdMeta, serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta)); } else if (isInserting) { context.missing(_serverIdMeta); } if (data.containsKey('client_scope_id')) { context.handle( _clientScopeIdMeta, - clientScopeId.isAcceptableOrUnknown( - data['client_scope_id']!, - _clientScopeIdMeta, - ), + clientScopeId.isAcceptableOrUnknown(data['client_scope_id']!, _clientScopeIdMeta), ); } if (data.containsKey('rating_key')) { - context.handle( - _ratingKeyMeta, - ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta), - ); + context.handle(_ratingKeyMeta, ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta)); } else if (isInserting) { context.missing(_ratingKeyMeta); } if (data.containsKey('global_key')) { - context.handle( - _globalKeyMeta, - globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta), - ); + context.handle(_globalKeyMeta, globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta)); } else if (isInserting) { context.missing(_globalKeyMeta); } if (data.containsKey('action_type')) { - context.handle( - _actionTypeMeta, - actionType.isAcceptableOrUnknown(data['action_type']!, _actionTypeMeta), - ); + context.handle(_actionTypeMeta, actionType.isAcceptableOrUnknown(data['action_type']!, _actionTypeMeta)); } else if (isInserting) { context.missing(_actionTypeMeta); } if (data.containsKey('view_offset')) { - context.handle( - _viewOffsetMeta, - viewOffset.isAcceptableOrUnknown(data['view_offset']!, _viewOffsetMeta), - ); + context.handle(_viewOffsetMeta, viewOffset.isAcceptableOrUnknown(data['view_offset']!, _viewOffsetMeta)); } if (data.containsKey('duration')) { - context.handle( - _durationMeta, - duration.isAcceptableOrUnknown(data['duration']!, _durationMeta), - ); + context.handle(_durationMeta, duration.isAcceptableOrUnknown(data['duration']!, _durationMeta)); } if (data.containsKey('should_mark_watched')) { context.handle( _shouldMarkWatchedMeta, - shouldMarkWatched.isAcceptableOrUnknown( - data['should_mark_watched']!, - _shouldMarkWatchedMeta, - ), + shouldMarkWatched.isAcceptableOrUnknown(data['should_mark_watched']!, _shouldMarkWatchedMeta), ); } if (data.containsKey('created_at')) { - context.handle( - _createdAtMeta, - createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta), - ); + context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } else if (isInserting) { context.missing(_createdAtMeta); } if (data.containsKey('updated_at')) { - context.handle( - _updatedAtMeta, - updatedAt.isAcceptableOrUnknown(data['updated_at']!, _updatedAtMeta), - ); + context.handle(_updatedAtMeta, updatedAt.isAcceptableOrUnknown(data['updated_at']!, _updatedAtMeta)); } else if (isInserting) { context.missing(_updatedAtMeta); } if (data.containsKey('sync_attempts')) { - context.handle( - _syncAttemptsMeta, - syncAttempts.isAcceptableOrUnknown( - data['sync_attempts']!, - _syncAttemptsMeta, - ), - ); + context.handle(_syncAttemptsMeta, syncAttempts.isAcceptableOrUnknown(data['sync_attempts']!, _syncAttemptsMeta)); } if (data.containsKey('last_error')) { - context.handle( - _lastErrorMeta, - lastError.isAcceptableOrUnknown(data['last_error']!, _lastErrorMeta), - ); + context.handle(_lastErrorMeta, lastError.isAcceptableOrUnknown(data['last_error']!, _lastErrorMeta)); } return context; } @@ -2401,68 +1971,26 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress @override Set get $primaryKey => {id}; @override - OfflineWatchProgressItem map( - Map data, { - String? tablePrefix, - }) { + OfflineWatchProgressItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return OfflineWatchProgressItem( - id: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}id'], - )!, - profileId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}profile_id'], - ), - serverId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}server_id'], - )!, - clientScopeId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}client_scope_id'], - ), - ratingKey: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}rating_key'], - )!, - globalKey: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}global_key'], - )!, - actionType: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}action_type'], - )!, - viewOffset: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}view_offset'], - ), - duration: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}duration'], - ), + id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, + profileId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}profile_id']), + serverId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}server_id'])!, + clientScopeId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}client_scope_id']), + ratingKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}rating_key'])!, + globalKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}global_key'])!, + actionType: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}action_type'])!, + viewOffset: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}view_offset']), + duration: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}duration']), shouldMarkWatched: attachedDatabase.typeMapping.read( DriftSqlType.bool, data['${effectivePrefix}should_mark_watched'], )!, - createdAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}created_at'], - )!, - updatedAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}updated_at'], - )!, - syncAttempts: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}sync_attempts'], - )!, - lastError: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}last_error'], - ), + createdAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}created_at'])!, + updatedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}updated_at'])!, + syncAttempts: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}sync_attempts'])!, + lastError: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}last_error']), ); } @@ -2472,8 +2000,7 @@ class $OfflineWatchProgressTable extends OfflineWatchProgress } } -class OfflineWatchProgressItem extends DataClass - implements Insertable { +class OfflineWatchProgressItem extends DataClass implements Insertable { /// Auto-incrementing primary key final int id; @@ -2566,36 +2093,23 @@ class OfflineWatchProgressItem extends DataClass OfflineWatchProgressCompanion toCompanion(bool nullToAbsent) { return OfflineWatchProgressCompanion( id: Value(id), - profileId: profileId == null && nullToAbsent - ? const Value.absent() - : Value(profileId), + profileId: profileId == null && nullToAbsent ? const Value.absent() : Value(profileId), serverId: Value(serverId), - clientScopeId: clientScopeId == null && nullToAbsent - ? const Value.absent() - : Value(clientScopeId), + clientScopeId: clientScopeId == null && nullToAbsent ? const Value.absent() : Value(clientScopeId), ratingKey: Value(ratingKey), globalKey: Value(globalKey), actionType: Value(actionType), - viewOffset: viewOffset == null && nullToAbsent - ? const Value.absent() - : Value(viewOffset), - duration: duration == null && nullToAbsent - ? const Value.absent() - : Value(duration), + viewOffset: viewOffset == null && nullToAbsent ? const Value.absent() : Value(viewOffset), + duration: duration == null && nullToAbsent ? const Value.absent() : Value(duration), shouldMarkWatched: Value(shouldMarkWatched), createdAt: Value(createdAt), updatedAt: Value(updatedAt), syncAttempts: Value(syncAttempts), - lastError: lastError == null && nullToAbsent - ? const Value.absent() - : Value(lastError), + lastError: lastError == null && nullToAbsent ? const Value.absent() : Value(lastError), ); } - factory OfflineWatchProgressItem.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory OfflineWatchProgressItem.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return OfflineWatchProgressItem( id: serializer.fromJson(json['id']), @@ -2654,9 +2168,7 @@ class OfflineWatchProgressItem extends DataClass id: id ?? this.id, profileId: profileId.present ? profileId.value : this.profileId, serverId: serverId ?? this.serverId, - clientScopeId: clientScopeId.present - ? clientScopeId.value - : this.clientScopeId, + clientScopeId: clientScopeId.present ? clientScopeId.value : this.clientScopeId, ratingKey: ratingKey ?? this.ratingKey, globalKey: globalKey ?? this.globalKey, actionType: actionType ?? this.actionType, @@ -2668,33 +2180,21 @@ class OfflineWatchProgressItem extends DataClass syncAttempts: syncAttempts ?? this.syncAttempts, lastError: lastError.present ? lastError.value : this.lastError, ); - OfflineWatchProgressItem copyWithCompanion( - OfflineWatchProgressCompanion data, - ) { + OfflineWatchProgressItem copyWithCompanion(OfflineWatchProgressCompanion data) { return OfflineWatchProgressItem( id: data.id.present ? data.id.value : this.id, profileId: data.profileId.present ? data.profileId.value : this.profileId, serverId: data.serverId.present ? data.serverId.value : this.serverId, - clientScopeId: data.clientScopeId.present - ? data.clientScopeId.value - : this.clientScopeId, + clientScopeId: data.clientScopeId.present ? data.clientScopeId.value : this.clientScopeId, ratingKey: data.ratingKey.present ? data.ratingKey.value : this.ratingKey, globalKey: data.globalKey.present ? data.globalKey.value : this.globalKey, - actionType: data.actionType.present - ? data.actionType.value - : this.actionType, - viewOffset: data.viewOffset.present - ? data.viewOffset.value - : this.viewOffset, + actionType: data.actionType.present ? data.actionType.value : this.actionType, + viewOffset: data.viewOffset.present ? data.viewOffset.value : this.viewOffset, duration: data.duration.present ? data.duration.value : this.duration, - shouldMarkWatched: data.shouldMarkWatched.present - ? data.shouldMarkWatched.value - : this.shouldMarkWatched, + shouldMarkWatched: data.shouldMarkWatched.present ? data.shouldMarkWatched.value : this.shouldMarkWatched, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, updatedAt: data.updatedAt.present ? data.updatedAt.value : this.updatedAt, - syncAttempts: data.syncAttempts.present - ? data.syncAttempts.value - : this.syncAttempts, + syncAttempts: data.syncAttempts.present ? data.syncAttempts.value : this.syncAttempts, lastError: data.lastError.present ? data.lastError.value : this.lastError, ); } @@ -2757,8 +2257,7 @@ class OfflineWatchProgressItem extends DataClass other.lastError == this.lastError); } -class OfflineWatchProgressCompanion - extends UpdateCompanion { +class OfflineWatchProgressCompanion extends UpdateCompanion { final Value id; final Value profileId; final Value serverId; @@ -2948,8 +2447,7 @@ class OfflineWatchProgressCompanion } } -class $SyncRulesTable extends SyncRules - with TableInfo<$SyncRulesTable, SyncRuleItem> { +class $SyncRulesTable extends SyncRules with TableInfo<$SyncRulesTable, SyncRuleItem> { @override final GeneratedDatabase attachedDatabase; final String? _alias; @@ -2963,13 +2461,9 @@ class $SyncRulesTable extends SyncRules hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'PRIMARY KEY AUTOINCREMENT', - ), - ); - static const VerificationMeta _profileIdMeta = const VerificationMeta( - 'profileId', + defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT'), ); + static const VerificationMeta _profileIdMeta = const VerificationMeta('profileId'); @override late final GeneratedColumn profileId = GeneratedColumn( 'profile_id', @@ -2979,9 +2473,7 @@ class $SyncRulesTable extends SyncRules requiredDuringInsert: false, defaultValue: const Constant(''), ); - static const VerificationMeta _serverIdMeta = const VerificationMeta( - 'serverId', - ); + static const VerificationMeta _serverIdMeta = const VerificationMeta('serverId'); @override late final GeneratedColumn serverId = GeneratedColumn( 'server_id', @@ -2990,9 +2482,7 @@ class $SyncRulesTable extends SyncRules type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _ratingKeyMeta = const VerificationMeta( - 'ratingKey', - ); + static const VerificationMeta _ratingKeyMeta = const VerificationMeta('ratingKey'); @override late final GeneratedColumn ratingKey = GeneratedColumn( 'rating_key', @@ -3001,9 +2491,7 @@ class $SyncRulesTable extends SyncRules type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _globalKeyMeta = const VerificationMeta( - 'globalKey', - ); + static const VerificationMeta _globalKeyMeta = const VerificationMeta('globalKey'); @override late final GeneratedColumn globalKey = GeneratedColumn( 'global_key', @@ -3013,9 +2501,7 @@ class $SyncRulesTable extends SyncRules requiredDuringInsert: true, defaultConstraints: GeneratedColumn.constraintIsAlways('UNIQUE'), ); - static const VerificationMeta _targetTypeMeta = const VerificationMeta( - 'targetType', - ); + static const VerificationMeta _targetTypeMeta = const VerificationMeta('targetType'); @override late final GeneratedColumn targetType = GeneratedColumn( 'target_type', @@ -3024,9 +2510,7 @@ class $SyncRulesTable extends SyncRules type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _episodeCountMeta = const VerificationMeta( - 'episodeCount', - ); + static const VerificationMeta _episodeCountMeta = const VerificationMeta('episodeCount'); @override late final GeneratedColumn episodeCount = GeneratedColumn( 'episode_count', @@ -3035,9 +2519,7 @@ class $SyncRulesTable extends SyncRules type: DriftSqlType.int, requiredDuringInsert: true, ); - static const VerificationMeta _enabledMeta = const VerificationMeta( - 'enabled', - ); + static const VerificationMeta _enabledMeta = const VerificationMeta('enabled'); @override late final GeneratedColumn enabled = GeneratedColumn( 'enabled', @@ -3045,14 +2527,10 @@ class $SyncRulesTable extends SyncRules false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("enabled" IN (0, 1))', - ), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("enabled" IN (0, 1))'), defaultValue: const Constant(true), ); - static const VerificationMeta _createdAtMeta = const VerificationMeta( - 'createdAt', - ); + static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', @@ -3061,9 +2539,7 @@ class $SyncRulesTable extends SyncRules type: DriftSqlType.int, requiredDuringInsert: true, ); - static const VerificationMeta _lastExecutedAtMeta = const VerificationMeta( - 'lastExecutedAt', - ); + static const VerificationMeta _lastExecutedAtMeta = const VerificationMeta('lastExecutedAt'); @override late final GeneratedColumn lastExecutedAt = GeneratedColumn( 'last_executed_at', @@ -3072,9 +2548,7 @@ class $SyncRulesTable extends SyncRules type: DriftSqlType.int, requiredDuringInsert: false, ); - static const VerificationMeta _mediaIndexMeta = const VerificationMeta( - 'mediaIndex', - ); + static const VerificationMeta _mediaIndexMeta = const VerificationMeta('mediaIndex'); @override late final GeneratedColumn mediaIndex = GeneratedColumn( 'media_index', @@ -3084,9 +2558,7 @@ class $SyncRulesTable extends SyncRules requiredDuringInsert: false, defaultValue: const Constant(0), ); - static const VerificationMeta _downloadFilterMeta = const VerificationMeta( - 'downloadFilter', - ); + static const VerificationMeta _downloadFilterMeta = const VerificationMeta('downloadFilter'); @override late final GeneratedColumn downloadFilter = GeneratedColumn( 'download_filter', @@ -3117,100 +2589,61 @@ class $SyncRulesTable extends SyncRules String get actualTableName => $name; static const String $name = 'sync_rules'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); } if (data.containsKey('profile_id')) { - context.handle( - _profileIdMeta, - profileId.isAcceptableOrUnknown(data['profile_id']!, _profileIdMeta), - ); + context.handle(_profileIdMeta, profileId.isAcceptableOrUnknown(data['profile_id']!, _profileIdMeta)); } if (data.containsKey('server_id')) { - context.handle( - _serverIdMeta, - serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta), - ); + context.handle(_serverIdMeta, serverId.isAcceptableOrUnknown(data['server_id']!, _serverIdMeta)); } else if (isInserting) { context.missing(_serverIdMeta); } if (data.containsKey('rating_key')) { - context.handle( - _ratingKeyMeta, - ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta), - ); + context.handle(_ratingKeyMeta, ratingKey.isAcceptableOrUnknown(data['rating_key']!, _ratingKeyMeta)); } else if (isInserting) { context.missing(_ratingKeyMeta); } if (data.containsKey('global_key')) { - context.handle( - _globalKeyMeta, - globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta), - ); + context.handle(_globalKeyMeta, globalKey.isAcceptableOrUnknown(data['global_key']!, _globalKeyMeta)); } else if (isInserting) { context.missing(_globalKeyMeta); } if (data.containsKey('target_type')) { - context.handle( - _targetTypeMeta, - targetType.isAcceptableOrUnknown(data['target_type']!, _targetTypeMeta), - ); + context.handle(_targetTypeMeta, targetType.isAcceptableOrUnknown(data['target_type']!, _targetTypeMeta)); } else if (isInserting) { context.missing(_targetTypeMeta); } if (data.containsKey('episode_count')) { - context.handle( - _episodeCountMeta, - episodeCount.isAcceptableOrUnknown( - data['episode_count']!, - _episodeCountMeta, - ), - ); + context.handle(_episodeCountMeta, episodeCount.isAcceptableOrUnknown(data['episode_count']!, _episodeCountMeta)); } else if (isInserting) { context.missing(_episodeCountMeta); } if (data.containsKey('enabled')) { - context.handle( - _enabledMeta, - enabled.isAcceptableOrUnknown(data['enabled']!, _enabledMeta), - ); + context.handle(_enabledMeta, enabled.isAcceptableOrUnknown(data['enabled']!, _enabledMeta)); } if (data.containsKey('created_at')) { - context.handle( - _createdAtMeta, - createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta), - ); + context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } else if (isInserting) { context.missing(_createdAtMeta); } if (data.containsKey('last_executed_at')) { context.handle( _lastExecutedAtMeta, - lastExecutedAt.isAcceptableOrUnknown( - data['last_executed_at']!, - _lastExecutedAtMeta, - ), + lastExecutedAt.isAcceptableOrUnknown(data['last_executed_at']!, _lastExecutedAtMeta), ); } if (data.containsKey('media_index')) { - context.handle( - _mediaIndexMeta, - mediaIndex.isAcceptableOrUnknown(data['media_index']!, _mediaIndexMeta), - ); + context.handle(_mediaIndexMeta, mediaIndex.isAcceptableOrUnknown(data['media_index']!, _mediaIndexMeta)); } if (data.containsKey('download_filter')) { context.handle( _downloadFilterMeta, - downloadFilter.isAcceptableOrUnknown( - data['download_filter']!, - _downloadFilterMeta, - ), + downloadFilter.isAcceptableOrUnknown(data['download_filter']!, _downloadFilterMeta), ); } return context; @@ -3222,50 +2655,17 @@ class $SyncRulesTable extends SyncRules SyncRuleItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return SyncRuleItem( - id: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}id'], - )!, - profileId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}profile_id'], - )!, - serverId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}server_id'], - )!, - ratingKey: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}rating_key'], - )!, - globalKey: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}global_key'], - )!, - targetType: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}target_type'], - )!, - episodeCount: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}episode_count'], - )!, - enabled: attachedDatabase.typeMapping.read( - DriftSqlType.bool, - data['${effectivePrefix}enabled'], - )!, - createdAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}created_at'], - )!, - lastExecutedAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}last_executed_at'], - ), - mediaIndex: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}media_index'], - )!, + id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, + profileId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}profile_id'])!, + serverId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}server_id'])!, + ratingKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}rating_key'])!, + globalKey: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}global_key'])!, + targetType: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}target_type'])!, + episodeCount: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}episode_count'])!, + enabled: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}enabled'])!, + createdAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}created_at'])!, + lastExecutedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}last_executed_at']), + mediaIndex: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}media_index'])!, downloadFilter: attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}download_filter'], @@ -3337,18 +2737,13 @@ class SyncRuleItem extends DataClass implements Insertable { episodeCount: Value(episodeCount), enabled: Value(enabled), createdAt: Value(createdAt), - lastExecutedAt: lastExecutedAt == null && nullToAbsent - ? const Value.absent() - : Value(lastExecutedAt), + lastExecutedAt: lastExecutedAt == null && nullToAbsent ? const Value.absent() : Value(lastExecutedAt), mediaIndex: Value(mediaIndex), downloadFilter: Value(downloadFilter), ); } - factory SyncRuleItem.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory SyncRuleItem.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return SyncRuleItem( id: serializer.fromJson(json['id']), @@ -3407,9 +2802,7 @@ class SyncRuleItem extends DataClass implements Insertable { episodeCount: episodeCount ?? this.episodeCount, enabled: enabled ?? this.enabled, createdAt: createdAt ?? this.createdAt, - lastExecutedAt: lastExecutedAt.present - ? lastExecutedAt.value - : this.lastExecutedAt, + lastExecutedAt: lastExecutedAt.present ? lastExecutedAt.value : this.lastExecutedAt, mediaIndex: mediaIndex ?? this.mediaIndex, downloadFilter: downloadFilter ?? this.downloadFilter, ); @@ -3420,23 +2813,13 @@ class SyncRuleItem extends DataClass implements Insertable { serverId: data.serverId.present ? data.serverId.value : this.serverId, ratingKey: data.ratingKey.present ? data.ratingKey.value : this.ratingKey, globalKey: data.globalKey.present ? data.globalKey.value : this.globalKey, - targetType: data.targetType.present - ? data.targetType.value - : this.targetType, - episodeCount: data.episodeCount.present - ? data.episodeCount.value - : this.episodeCount, + targetType: data.targetType.present ? data.targetType.value : this.targetType, + episodeCount: data.episodeCount.present ? data.episodeCount.value : this.episodeCount, enabled: data.enabled.present ? data.enabled.value : this.enabled, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, - lastExecutedAt: data.lastExecutedAt.present - ? data.lastExecutedAt.value - : this.lastExecutedAt, - mediaIndex: data.mediaIndex.present - ? data.mediaIndex.value - : this.mediaIndex, - downloadFilter: data.downloadFilter.present - ? data.downloadFilter.value - : this.downloadFilter, + lastExecutedAt: data.lastExecutedAt.present ? data.lastExecutedAt.value : this.lastExecutedAt, + mediaIndex: data.mediaIndex.present ? data.mediaIndex.value : this.mediaIndex, + downloadFilter: data.downloadFilter.present ? data.downloadFilter.value : this.downloadFilter, ); } @@ -3660,8 +3043,7 @@ class SyncRulesCompanion extends UpdateCompanion { } } -class $ConnectionsTable extends Connections - with TableInfo<$ConnectionsTable, ConnectionRow> { +class $ConnectionsTable extends Connections with TableInfo<$ConnectionsTable, ConnectionRow> { @override final GeneratedDatabase attachedDatabase; final String? _alias; @@ -3684,9 +3066,7 @@ class $ConnectionsTable extends Connections type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _displayNameMeta = const VerificationMeta( - 'displayName', - ); + static const VerificationMeta _displayNameMeta = const VerificationMeta('displayName'); @override late final GeneratedColumn displayName = GeneratedColumn( 'display_name', @@ -3695,9 +3075,7 @@ class $ConnectionsTable extends Connections type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _configJsonMeta = const VerificationMeta( - 'configJson', - ); + static const VerificationMeta _configJsonMeta = const VerificationMeta('configJson'); @override late final GeneratedColumn configJson = GeneratedColumn( 'config_json', @@ -3706,9 +3084,7 @@ class $ConnectionsTable extends Connections type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _isDefaultMeta = const VerificationMeta( - 'isDefault', - ); + static const VerificationMeta _isDefaultMeta = const VerificationMeta('isDefault'); @override late final GeneratedColumn isDefault = GeneratedColumn( 'is_default', @@ -3716,14 +3092,10 @@ class $ConnectionsTable extends Connections false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("is_default" IN (0, 1))', - ), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("is_default" IN (0, 1))'), defaultValue: const Constant(false), ); - static const VerificationMeta _createdAtMeta = const VerificationMeta( - 'createdAt', - ); + static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', @@ -3732,8 +3104,7 @@ class $ConnectionsTable extends Connections type: DriftSqlType.int, requiredDuringInsert: true, ); - static const VerificationMeta _lastAuthenticatedAtMeta = - const VerificationMeta('lastAuthenticatedAt'); + static const VerificationMeta _lastAuthenticatedAtMeta = const VerificationMeta('lastAuthenticatedAt'); @override late final GeneratedColumn lastAuthenticatedAt = GeneratedColumn( 'last_authenticated_at', @@ -3743,25 +3114,14 @@ class $ConnectionsTable extends Connections requiredDuringInsert: false, ); @override - List get $columns => [ - id, - kind, - displayName, - configJson, - isDefault, - createdAt, - lastAuthenticatedAt, - ]; + List get $columns => [id, kind, displayName, configJson, isDefault, createdAt, lastAuthenticatedAt]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'connections'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -3770,53 +3130,32 @@ class $ConnectionsTable extends Connections context.missing(_idMeta); } if (data.containsKey('kind')) { - context.handle( - _kindMeta, - kind.isAcceptableOrUnknown(data['kind']!, _kindMeta), - ); + context.handle(_kindMeta, kind.isAcceptableOrUnknown(data['kind']!, _kindMeta)); } else if (isInserting) { context.missing(_kindMeta); } if (data.containsKey('display_name')) { - context.handle( - _displayNameMeta, - displayName.isAcceptableOrUnknown( - data['display_name']!, - _displayNameMeta, - ), - ); + context.handle(_displayNameMeta, displayName.isAcceptableOrUnknown(data['display_name']!, _displayNameMeta)); } else if (isInserting) { context.missing(_displayNameMeta); } if (data.containsKey('config_json')) { - context.handle( - _configJsonMeta, - configJson.isAcceptableOrUnknown(data['config_json']!, _configJsonMeta), - ); + context.handle(_configJsonMeta, configJson.isAcceptableOrUnknown(data['config_json']!, _configJsonMeta)); } else if (isInserting) { context.missing(_configJsonMeta); } if (data.containsKey('is_default')) { - context.handle( - _isDefaultMeta, - isDefault.isAcceptableOrUnknown(data['is_default']!, _isDefaultMeta), - ); + context.handle(_isDefaultMeta, isDefault.isAcceptableOrUnknown(data['is_default']!, _isDefaultMeta)); } if (data.containsKey('created_at')) { - context.handle( - _createdAtMeta, - createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta), - ); + context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } else if (isInserting) { context.missing(_createdAtMeta); } if (data.containsKey('last_authenticated_at')) { context.handle( _lastAuthenticatedAtMeta, - lastAuthenticatedAt.isAcceptableOrUnknown( - data['last_authenticated_at']!, - _lastAuthenticatedAtMeta, - ), + lastAuthenticatedAt.isAcceptableOrUnknown(data['last_authenticated_at']!, _lastAuthenticatedAtMeta), ); } return context; @@ -3828,30 +3167,12 @@ class $ConnectionsTable extends Connections ConnectionRow map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return ConnectionRow( - id: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}id'], - )!, - kind: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}kind'], - )!, - displayName: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}display_name'], - )!, - configJson: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}config_json'], - )!, - isDefault: attachedDatabase.typeMapping.read( - DriftSqlType.bool, - data['${effectivePrefix}is_default'], - )!, - createdAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}created_at'], - )!, + id: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}id'])!, + kind: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}kind'])!, + displayName: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}display_name'])!, + configJson: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}config_json'])!, + isDefault: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}is_default'])!, + createdAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}created_at'])!, lastAuthenticatedAt: attachedDatabase.typeMapping.read( DriftSqlType.int, data['${effectivePrefix}last_authenticated_at'], @@ -3927,10 +3248,7 @@ class ConnectionRow extends DataClass implements Insertable { ); } - factory ConnectionRow.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory ConnectionRow.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return ConnectionRow( id: serializer.fromJson(json['id']), @@ -3939,9 +3257,7 @@ class ConnectionRow extends DataClass implements Insertable { configJson: serializer.fromJson(json['configJson']), isDefault: serializer.fromJson(json['isDefault']), createdAt: serializer.fromJson(json['createdAt']), - lastAuthenticatedAt: serializer.fromJson( - json['lastAuthenticatedAt'], - ), + lastAuthenticatedAt: serializer.fromJson(json['lastAuthenticatedAt']), ); } @override @@ -3973,25 +3289,17 @@ class ConnectionRow extends DataClass implements Insertable { configJson: configJson ?? this.configJson, isDefault: isDefault ?? this.isDefault, createdAt: createdAt ?? this.createdAt, - lastAuthenticatedAt: lastAuthenticatedAt.present - ? lastAuthenticatedAt.value - : this.lastAuthenticatedAt, + lastAuthenticatedAt: lastAuthenticatedAt.present ? lastAuthenticatedAt.value : this.lastAuthenticatedAt, ); ConnectionRow copyWithCompanion(ConnectionsCompanion data) { return ConnectionRow( id: data.id.present ? data.id.value : this.id, kind: data.kind.present ? data.kind.value : this.kind, - displayName: data.displayName.present - ? data.displayName.value - : this.displayName, - configJson: data.configJson.present - ? data.configJson.value - : this.configJson, + displayName: data.displayName.present ? data.displayName.value : this.displayName, + configJson: data.configJson.present ? data.configJson.value : this.configJson, isDefault: data.isDefault.present ? data.isDefault.value : this.isDefault, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, - lastAuthenticatedAt: data.lastAuthenticatedAt.present - ? data.lastAuthenticatedAt.value - : this.lastAuthenticatedAt, + lastAuthenticatedAt: data.lastAuthenticatedAt.present ? data.lastAuthenticatedAt.value : this.lastAuthenticatedAt, ); } @@ -4010,15 +3318,7 @@ class ConnectionRow extends DataClass implements Insertable { } @override - int get hashCode => Object.hash( - id, - kind, - displayName, - configJson, - isDefault, - createdAt, - lastAuthenticatedAt, - ); + int get hashCode => Object.hash(id, kind, displayName, configJson, isDefault, createdAt, lastAuthenticatedAt); @override bool operator ==(Object other) => identical(this, other) || @@ -4082,8 +3382,7 @@ class ConnectionsCompanion extends UpdateCompanion { if (configJson != null) 'config_json': configJson, if (isDefault != null) 'is_default': isDefault, if (createdAt != null) 'created_at': createdAt, - if (lastAuthenticatedAt != null) - 'last_authenticated_at': lastAuthenticatedAt, + if (lastAuthenticatedAt != null) 'last_authenticated_at': lastAuthenticatedAt, if (rowid != null) 'rowid': rowid, }); } @@ -4156,8 +3455,7 @@ class ConnectionsCompanion extends UpdateCompanion { } } -class $ProfilesTable extends Profiles - with TableInfo<$ProfilesTable, ProfileRow> { +class $ProfilesTable extends Profiles with TableInfo<$ProfilesTable, ProfileRow> { @override final GeneratedDatabase attachedDatabase; final String? _alias; @@ -4180,9 +3478,7 @@ class $ProfilesTable extends Profiles type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _displayNameMeta = const VerificationMeta( - 'displayName', - ); + static const VerificationMeta _displayNameMeta = const VerificationMeta('displayName'); @override late final GeneratedColumn displayName = GeneratedColumn( 'display_name', @@ -4191,9 +3487,7 @@ class $ProfilesTable extends Profiles type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _avatarThumbUrlMeta = const VerificationMeta( - 'avatarThumbUrl', - ); + static const VerificationMeta _avatarThumbUrlMeta = const VerificationMeta('avatarThumbUrl'); @override late final GeneratedColumn avatarThumbUrl = GeneratedColumn( 'avatar_thumb_url', @@ -4202,9 +3496,7 @@ class $ProfilesTable extends Profiles type: DriftSqlType.string, requiredDuringInsert: false, ); - static const VerificationMeta _configJsonMeta = const VerificationMeta( - 'configJson', - ); + static const VerificationMeta _configJsonMeta = const VerificationMeta('configJson'); @override late final GeneratedColumn configJson = GeneratedColumn( 'config_json', @@ -4213,9 +3505,7 @@ class $ProfilesTable extends Profiles type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _sortOrderMeta = const VerificationMeta( - 'sortOrder', - ); + static const VerificationMeta _sortOrderMeta = const VerificationMeta('sortOrder'); @override late final GeneratedColumn sortOrder = GeneratedColumn( 'sort_order', @@ -4225,9 +3515,7 @@ class $ProfilesTable extends Profiles requiredDuringInsert: false, defaultValue: const Constant(0), ); - static const VerificationMeta _createdAtMeta = const VerificationMeta( - 'createdAt', - ); + static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', @@ -4236,9 +3524,7 @@ class $ProfilesTable extends Profiles type: DriftSqlType.int, requiredDuringInsert: true, ); - static const VerificationMeta _lastUsedAtMeta = const VerificationMeta( - 'lastUsedAt', - ); + static const VerificationMeta _lastUsedAtMeta = const VerificationMeta('lastUsedAt'); @override late final GeneratedColumn lastUsedAt = GeneratedColumn( 'last_used_at', @@ -4264,10 +3550,7 @@ class $ProfilesTable extends Profiles String get actualTableName => $name; static const String $name = 'profiles'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -4276,63 +3559,36 @@ class $ProfilesTable extends Profiles context.missing(_idMeta); } if (data.containsKey('kind')) { - context.handle( - _kindMeta, - kind.isAcceptableOrUnknown(data['kind']!, _kindMeta), - ); + context.handle(_kindMeta, kind.isAcceptableOrUnknown(data['kind']!, _kindMeta)); } else if (isInserting) { context.missing(_kindMeta); } if (data.containsKey('display_name')) { - context.handle( - _displayNameMeta, - displayName.isAcceptableOrUnknown( - data['display_name']!, - _displayNameMeta, - ), - ); + context.handle(_displayNameMeta, displayName.isAcceptableOrUnknown(data['display_name']!, _displayNameMeta)); } else if (isInserting) { context.missing(_displayNameMeta); } if (data.containsKey('avatar_thumb_url')) { context.handle( _avatarThumbUrlMeta, - avatarThumbUrl.isAcceptableOrUnknown( - data['avatar_thumb_url']!, - _avatarThumbUrlMeta, - ), + avatarThumbUrl.isAcceptableOrUnknown(data['avatar_thumb_url']!, _avatarThumbUrlMeta), ); } if (data.containsKey('config_json')) { - context.handle( - _configJsonMeta, - configJson.isAcceptableOrUnknown(data['config_json']!, _configJsonMeta), - ); + context.handle(_configJsonMeta, configJson.isAcceptableOrUnknown(data['config_json']!, _configJsonMeta)); } else if (isInserting) { context.missing(_configJsonMeta); } if (data.containsKey('sort_order')) { - context.handle( - _sortOrderMeta, - sortOrder.isAcceptableOrUnknown(data['sort_order']!, _sortOrderMeta), - ); + context.handle(_sortOrderMeta, sortOrder.isAcceptableOrUnknown(data['sort_order']!, _sortOrderMeta)); } if (data.containsKey('created_at')) { - context.handle( - _createdAtMeta, - createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta), - ); + context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } else if (isInserting) { context.missing(_createdAtMeta); } if (data.containsKey('last_used_at')) { - context.handle( - _lastUsedAtMeta, - lastUsedAt.isAcceptableOrUnknown( - data['last_used_at']!, - _lastUsedAtMeta, - ), - ); + context.handle(_lastUsedAtMeta, lastUsedAt.isAcceptableOrUnknown(data['last_used_at']!, _lastUsedAtMeta)); } return context; } @@ -4343,38 +3599,17 @@ class $ProfilesTable extends Profiles ProfileRow map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return ProfileRow( - id: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}id'], - )!, - kind: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}kind'], - )!, - displayName: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}display_name'], - )!, + id: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}id'])!, + kind: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}kind'])!, + displayName: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}display_name'])!, avatarThumbUrl: attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}avatar_thumb_url'], ), - configJson: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}config_json'], - )!, - sortOrder: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}sort_order'], - )!, - createdAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}created_at'], - )!, - lastUsedAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}last_used_at'], - ), + configJson: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}config_json'])!, + sortOrder: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}sort_order'])!, + createdAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}created_at'])!, + lastUsedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}last_used_at']), ); } @@ -4436,22 +3671,15 @@ class ProfileRow extends DataClass implements Insertable { id: Value(id), kind: Value(kind), displayName: Value(displayName), - avatarThumbUrl: avatarThumbUrl == null && nullToAbsent - ? const Value.absent() - : Value(avatarThumbUrl), + avatarThumbUrl: avatarThumbUrl == null && nullToAbsent ? const Value.absent() : Value(avatarThumbUrl), configJson: Value(configJson), sortOrder: Value(sortOrder), createdAt: Value(createdAt), - lastUsedAt: lastUsedAt == null && nullToAbsent - ? const Value.absent() - : Value(lastUsedAt), + lastUsedAt: lastUsedAt == null && nullToAbsent ? const Value.absent() : Value(lastUsedAt), ); } - factory ProfileRow.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory ProfileRow.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return ProfileRow( id: serializer.fromJson(json['id']), @@ -4492,9 +3720,7 @@ class ProfileRow extends DataClass implements Insertable { id: id ?? this.id, kind: kind ?? this.kind, displayName: displayName ?? this.displayName, - avatarThumbUrl: avatarThumbUrl.present - ? avatarThumbUrl.value - : this.avatarThumbUrl, + avatarThumbUrl: avatarThumbUrl.present ? avatarThumbUrl.value : this.avatarThumbUrl, configJson: configJson ?? this.configJson, sortOrder: sortOrder ?? this.sortOrder, createdAt: createdAt ?? this.createdAt, @@ -4504,20 +3730,12 @@ class ProfileRow extends DataClass implements Insertable { return ProfileRow( id: data.id.present ? data.id.value : this.id, kind: data.kind.present ? data.kind.value : this.kind, - displayName: data.displayName.present - ? data.displayName.value - : this.displayName, - avatarThumbUrl: data.avatarThumbUrl.present - ? data.avatarThumbUrl.value - : this.avatarThumbUrl, - configJson: data.configJson.present - ? data.configJson.value - : this.configJson, + displayName: data.displayName.present ? data.displayName.value : this.displayName, + avatarThumbUrl: data.avatarThumbUrl.present ? data.avatarThumbUrl.value : this.avatarThumbUrl, + configJson: data.configJson.present ? data.configJson.value : this.configJson, sortOrder: data.sortOrder.present ? data.sortOrder.value : this.sortOrder, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, - lastUsedAt: data.lastUsedAt.present - ? data.lastUsedAt.value - : this.lastUsedAt, + lastUsedAt: data.lastUsedAt.present ? data.lastUsedAt.value : this.lastUsedAt, ); } @@ -4537,16 +3755,7 @@ class ProfileRow extends DataClass implements Insertable { } @override - int get hashCode => Object.hash( - id, - kind, - displayName, - avatarThumbUrl, - configJson, - sortOrder, - createdAt, - lastUsedAt, - ); + int get hashCode => Object.hash(id, kind, displayName, avatarThumbUrl, configJson, sortOrder, createdAt, lastUsedAt); @override bool operator ==(Object other) => identical(this, other) || @@ -4701,9 +3910,7 @@ class $ProfileConnectionsTable extends ProfileConnections final GeneratedDatabase attachedDatabase; final String? _alias; $ProfileConnectionsTable(this.attachedDatabase, [this._alias]); - static const VerificationMeta _profileIdMeta = const VerificationMeta( - 'profileId', - ); + static const VerificationMeta _profileIdMeta = const VerificationMeta('profileId'); @override late final GeneratedColumn profileId = GeneratedColumn( 'profile_id', @@ -4712,9 +3919,7 @@ class $ProfileConnectionsTable extends ProfileConnections type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _connectionIdMeta = const VerificationMeta( - 'connectionId', - ); + static const VerificationMeta _connectionIdMeta = const VerificationMeta('connectionId'); @override late final GeneratedColumn connectionId = GeneratedColumn( 'connection_id', @@ -4722,13 +3927,9 @@ class $ProfileConnectionsTable extends ProfileConnections false, type: DriftSqlType.string, requiredDuringInsert: true, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'REFERENCES connections (id) ON DELETE CASCADE', - ), - ); - static const VerificationMeta _userTokenMeta = const VerificationMeta( - 'userToken', + defaultConstraints: GeneratedColumn.constraintIsAlways('REFERENCES connections (id) ON DELETE CASCADE'), ); + static const VerificationMeta _userTokenMeta = const VerificationMeta('userToken'); @override late final GeneratedColumn userToken = GeneratedColumn( 'user_token', @@ -4738,9 +3939,7 @@ class $ProfileConnectionsTable extends ProfileConnections requiredDuringInsert: false, defaultValue: const Constant(''), ); - static const VerificationMeta _userIdentifierMeta = const VerificationMeta( - 'userIdentifier', - ); + static const VerificationMeta _userIdentifierMeta = const VerificationMeta('userIdentifier'); @override late final GeneratedColumn userIdentifier = GeneratedColumn( 'user_identifier', @@ -4749,9 +3948,7 @@ class $ProfileConnectionsTable extends ProfileConnections type: DriftSqlType.string, requiredDuringInsert: true, ); - static const VerificationMeta _isDefaultMeta = const VerificationMeta( - 'isDefault', - ); + static const VerificationMeta _isDefaultMeta = const VerificationMeta('isDefault'); @override late final GeneratedColumn isDefault = GeneratedColumn( 'is_default', @@ -4759,14 +3956,10 @@ class $ProfileConnectionsTable extends ProfileConnections false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("is_default" IN (0, 1))', - ), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("is_default" IN (0, 1))'), defaultValue: const Constant(false), ); - static const VerificationMeta _tokenAcquiredAtMeta = const VerificationMeta( - 'tokenAcquiredAt', - ); + static const VerificationMeta _tokenAcquiredAtMeta = const VerificationMeta('tokenAcquiredAt'); @override late final GeneratedColumn tokenAcquiredAt = GeneratedColumn( 'token_acquired_at', @@ -4775,9 +3968,7 @@ class $ProfileConnectionsTable extends ProfileConnections type: DriftSqlType.int, requiredDuringInsert: false, ); - static const VerificationMeta _lastUsedAtMeta = const VerificationMeta( - 'lastUsedAt', - ); + static const VerificationMeta _lastUsedAtMeta = const VerificationMeta('lastUsedAt'); @override late final GeneratedColumn lastUsedAt = GeneratedColumn( 'last_used_at', @@ -4802,71 +3993,41 @@ class $ProfileConnectionsTable extends ProfileConnections String get actualTableName => $name; static const String $name = 'profile_connections'; @override - VerificationContext validateIntegrity( - Insertable instance, { - bool isInserting = false, - }) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('profile_id')) { - context.handle( - _profileIdMeta, - profileId.isAcceptableOrUnknown(data['profile_id']!, _profileIdMeta), - ); + context.handle(_profileIdMeta, profileId.isAcceptableOrUnknown(data['profile_id']!, _profileIdMeta)); } else if (isInserting) { context.missing(_profileIdMeta); } if (data.containsKey('connection_id')) { - context.handle( - _connectionIdMeta, - connectionId.isAcceptableOrUnknown( - data['connection_id']!, - _connectionIdMeta, - ), - ); + context.handle(_connectionIdMeta, connectionId.isAcceptableOrUnknown(data['connection_id']!, _connectionIdMeta)); } else if (isInserting) { context.missing(_connectionIdMeta); } if (data.containsKey('user_token')) { - context.handle( - _userTokenMeta, - userToken.isAcceptableOrUnknown(data['user_token']!, _userTokenMeta), - ); + context.handle(_userTokenMeta, userToken.isAcceptableOrUnknown(data['user_token']!, _userTokenMeta)); } if (data.containsKey('user_identifier')) { context.handle( _userIdentifierMeta, - userIdentifier.isAcceptableOrUnknown( - data['user_identifier']!, - _userIdentifierMeta, - ), + userIdentifier.isAcceptableOrUnknown(data['user_identifier']!, _userIdentifierMeta), ); } else if (isInserting) { context.missing(_userIdentifierMeta); } if (data.containsKey('is_default')) { - context.handle( - _isDefaultMeta, - isDefault.isAcceptableOrUnknown(data['is_default']!, _isDefaultMeta), - ); + context.handle(_isDefaultMeta, isDefault.isAcceptableOrUnknown(data['is_default']!, _isDefaultMeta)); } if (data.containsKey('token_acquired_at')) { context.handle( _tokenAcquiredAtMeta, - tokenAcquiredAt.isAcceptableOrUnknown( - data['token_acquired_at']!, - _tokenAcquiredAtMeta, - ), + tokenAcquiredAt.isAcceptableOrUnknown(data['token_acquired_at']!, _tokenAcquiredAtMeta), ); } if (data.containsKey('last_used_at')) { - context.handle( - _lastUsedAtMeta, - lastUsedAt.isAcceptableOrUnknown( - data['last_used_at']!, - _lastUsedAtMeta, - ), - ); + context.handle(_lastUsedAtMeta, lastUsedAt.isAcceptableOrUnknown(data['last_used_at']!, _lastUsedAtMeta)); } return context; } @@ -4877,34 +4038,16 @@ class $ProfileConnectionsTable extends ProfileConnections ProfileConnectionRow map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return ProfileConnectionRow( - profileId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}profile_id'], - )!, - connectionId: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}connection_id'], - )!, - userToken: attachedDatabase.typeMapping.read( - DriftSqlType.string, - data['${effectivePrefix}user_token'], - )!, + profileId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}profile_id'])!, + connectionId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}connection_id'])!, + userToken: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}user_token'])!, userIdentifier: attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}user_identifier'], )!, - isDefault: attachedDatabase.typeMapping.read( - DriftSqlType.bool, - data['${effectivePrefix}is_default'], - )!, - tokenAcquiredAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}token_acquired_at'], - ), - lastUsedAt: attachedDatabase.typeMapping.read( - DriftSqlType.int, - data['${effectivePrefix}last_used_at'], - ), + isDefault: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}is_default'])!, + tokenAcquiredAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}token_acquired_at']), + lastUsedAt: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}last_used_at']), ); } @@ -4914,8 +4057,7 @@ class $ProfileConnectionsTable extends ProfileConnections } } -class ProfileConnectionRow extends DataClass - implements Insertable { +class ProfileConnectionRow extends DataClass implements Insertable { final String profileId; final String connectionId; final String userToken; @@ -4956,19 +4098,12 @@ class ProfileConnectionRow extends DataClass userToken: Value(userToken), userIdentifier: Value(userIdentifier), isDefault: Value(isDefault), - tokenAcquiredAt: tokenAcquiredAt == null && nullToAbsent - ? const Value.absent() - : Value(tokenAcquiredAt), - lastUsedAt: lastUsedAt == null && nullToAbsent - ? const Value.absent() - : Value(lastUsedAt), + tokenAcquiredAt: tokenAcquiredAt == null && nullToAbsent ? const Value.absent() : Value(tokenAcquiredAt), + lastUsedAt: lastUsedAt == null && nullToAbsent ? const Value.absent() : Value(lastUsedAt), ); } - factory ProfileConnectionRow.fromJson( - Map json, { - ValueSerializer? serializer, - }) { + factory ProfileConnectionRow.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return ProfileConnectionRow( profileId: serializer.fromJson(json['profileId']), @@ -5008,28 +4143,18 @@ class ProfileConnectionRow extends DataClass userToken: userToken ?? this.userToken, userIdentifier: userIdentifier ?? this.userIdentifier, isDefault: isDefault ?? this.isDefault, - tokenAcquiredAt: tokenAcquiredAt.present - ? tokenAcquiredAt.value - : this.tokenAcquiredAt, + tokenAcquiredAt: tokenAcquiredAt.present ? tokenAcquiredAt.value : this.tokenAcquiredAt, lastUsedAt: lastUsedAt.present ? lastUsedAt.value : this.lastUsedAt, ); ProfileConnectionRow copyWithCompanion(ProfileConnectionsCompanion data) { return ProfileConnectionRow( profileId: data.profileId.present ? data.profileId.value : this.profileId, - connectionId: data.connectionId.present - ? data.connectionId.value - : this.connectionId, + connectionId: data.connectionId.present ? data.connectionId.value : this.connectionId, userToken: data.userToken.present ? data.userToken.value : this.userToken, - userIdentifier: data.userIdentifier.present - ? data.userIdentifier.value - : this.userIdentifier, + userIdentifier: data.userIdentifier.present ? data.userIdentifier.value : this.userIdentifier, isDefault: data.isDefault.present ? data.isDefault.value : this.isDefault, - tokenAcquiredAt: data.tokenAcquiredAt.present - ? data.tokenAcquiredAt.value - : this.tokenAcquiredAt, - lastUsedAt: data.lastUsedAt.present - ? data.lastUsedAt.value - : this.lastUsedAt, + tokenAcquiredAt: data.tokenAcquiredAt.present ? data.tokenAcquiredAt.value : this.tokenAcquiredAt, + lastUsedAt: data.lastUsedAt.present ? data.lastUsedAt.value : this.lastUsedAt, ); } @@ -5048,15 +4173,8 @@ class ProfileConnectionRow extends DataClass } @override - int get hashCode => Object.hash( - profileId, - connectionId, - userToken, - userIdentifier, - isDefault, - tokenAcquiredAt, - lastUsedAt, - ); + int get hashCode => + Object.hash(profileId, connectionId, userToken, userIdentifier, isDefault, tokenAcquiredAt, lastUsedAt); @override bool operator ==(Object other) => identical(this, other) || @@ -5070,8 +4188,7 @@ class ProfileConnectionRow extends DataClass other.lastUsedAt == this.lastUsedAt); } -class ProfileConnectionsCompanion - extends UpdateCompanion { +class ProfileConnectionsCompanion extends UpdateCompanion { final Value profileId; final Value connectionId; final Value userToken; @@ -5195,19 +4312,15 @@ class ProfileConnectionsCompanion abstract class _$AppDatabase extends GeneratedDatabase { _$AppDatabase(QueryExecutor e) : super(e); $AppDatabaseManager get managers => $AppDatabaseManager(this); - late final $DownloadedMediaTable downloadedMedia = $DownloadedMediaTable( - this, - ); + late final $DownloadedMediaTable downloadedMedia = $DownloadedMediaTable(this); late final $DownloadOwnersTable downloadOwners = $DownloadOwnersTable(this); late final $DownloadQueueTable downloadQueue = $DownloadQueueTable(this); late final $ApiCacheTable apiCache = $ApiCacheTable(this); - late final $OfflineWatchProgressTable offlineWatchProgress = - $OfflineWatchProgressTable(this); + late final $OfflineWatchProgressTable offlineWatchProgress = $OfflineWatchProgressTable(this); late final $SyncRulesTable syncRules = $SyncRulesTable(this); late final $ConnectionsTable connections = $ConnectionsTable(this); late final $ProfilesTable profiles = $ProfilesTable(this); - late final $ProfileConnectionsTable profileConnections = - $ProfileConnectionsTable(this); + late final $ProfileConnectionsTable profileConnections = $ProfileConnectionsTable(this); late final Index idxDownloadedMediaStatus = Index( 'idx_downloaded_media_status', 'CREATE INDEX idx_downloaded_media_status ON downloaded_media (status)', @@ -5248,10 +4361,7 @@ abstract class _$AppDatabase extends GeneratedDatabase { 'idx_connections_kind', 'CREATE INDEX idx_connections_kind ON connections (kind)', ); - late final Index idxProfilesKind = Index( - 'idx_profiles_kind', - 'CREATE INDEX idx_profiles_kind ON profiles (kind)', - ); + late final Index idxProfilesKind = Index('idx_profiles_kind', 'CREATE INDEX idx_profiles_kind ON profiles (kind)'); late final Index idxProfileConnectionsConnectionId = Index( 'idx_profile_connections_connection_id', 'CREATE INDEX idx_profile_connections_connection_id ON profile_connections (connection_id)', @@ -5261,8 +4371,7 @@ abstract class _$AppDatabase extends GeneratedDatabase { 'CREATE INDEX idx_profile_connections_profile_id ON profile_connections (profile_id)', ); @override - Iterable> get allTables => - allSchemaEntities.whereType>(); + Iterable> get allTables => allSchemaEntities.whereType>(); @override List get allSchemaEntities => [ downloadedMedia, @@ -5291,10 +4400,7 @@ abstract class _$AppDatabase extends GeneratedDatabase { @override StreamQueryUpdateRules get streamUpdateRules => const StreamQueryUpdateRules([ WritePropagation( - on: TableUpdateQuery.onTableName( - 'connections', - limitUpdateKind: UpdateKind.delete, - ), + on: TableUpdateQuery.onTableName('connections', limitUpdateKind: UpdateKind.delete), result: [TableUpdate('profile_connections', kind: UpdateKind.delete)], ), ]); @@ -5345,8 +4451,7 @@ typedef $$DownloadedMediaTableUpdateCompanionBuilder = Value mediaIndex, }); -class $$DownloadedMediaTableFilterComposer - extends Composer<_$AppDatabase, $DownloadedMediaTable> { +class $$DownloadedMediaTableFilterComposer extends Composer<_$AppDatabase, $DownloadedMediaTable> { $$DownloadedMediaTableFilterComposer({ required super.$db, required super.$table, @@ -5354,104 +4459,63 @@ class $$DownloadedMediaTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get serverId => $composableBuilder( - column: $table.serverId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get serverId => + $composableBuilder(column: $table.serverId, builder: (column) => ColumnFilters(column)); - ColumnFilters get clientScopeId => $composableBuilder( - column: $table.clientScopeId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get clientScopeId => + $composableBuilder(column: $table.clientScopeId, builder: (column) => ColumnFilters(column)); - ColumnFilters get ratingKey => $composableBuilder( - column: $table.ratingKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get ratingKey => + $composableBuilder(column: $table.ratingKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get globalKey => $composableBuilder( - column: $table.globalKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get globalKey => + $composableBuilder(column: $table.globalKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get type => $composableBuilder( - column: $table.type, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get type => $composableBuilder(column: $table.type, builder: (column) => ColumnFilters(column)); - ColumnFilters get parentRatingKey => $composableBuilder( - column: $table.parentRatingKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get parentRatingKey => + $composableBuilder(column: $table.parentRatingKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get grandparentRatingKey => $composableBuilder( - column: $table.grandparentRatingKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get grandparentRatingKey => + $composableBuilder(column: $table.grandparentRatingKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get status => $composableBuilder( - column: $table.status, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get status => + $composableBuilder(column: $table.status, builder: (column) => ColumnFilters(column)); - ColumnFilters get progress => $composableBuilder( - column: $table.progress, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get progress => + $composableBuilder(column: $table.progress, builder: (column) => ColumnFilters(column)); - ColumnFilters get totalBytes => $composableBuilder( - column: $table.totalBytes, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get totalBytes => + $composableBuilder(column: $table.totalBytes, builder: (column) => ColumnFilters(column)); - ColumnFilters get downloadedBytes => $composableBuilder( - column: $table.downloadedBytes, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get downloadedBytes => + $composableBuilder(column: $table.downloadedBytes, builder: (column) => ColumnFilters(column)); - ColumnFilters get videoFilePath => $composableBuilder( - column: $table.videoFilePath, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get videoFilePath => + $composableBuilder(column: $table.videoFilePath, builder: (column) => ColumnFilters(column)); - ColumnFilters get thumbPath => $composableBuilder( - column: $table.thumbPath, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get thumbPath => + $composableBuilder(column: $table.thumbPath, builder: (column) => ColumnFilters(column)); - ColumnFilters get downloadedAt => $composableBuilder( - column: $table.downloadedAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get downloadedAt => + $composableBuilder(column: $table.downloadedAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get errorMessage => $composableBuilder( - column: $table.errorMessage, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get errorMessage => + $composableBuilder(column: $table.errorMessage, builder: (column) => ColumnFilters(column)); - ColumnFilters get retryCount => $composableBuilder( - column: $table.retryCount, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get retryCount => + $composableBuilder(column: $table.retryCount, builder: (column) => ColumnFilters(column)); - ColumnFilters get bgTaskId => $composableBuilder( - column: $table.bgTaskId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get bgTaskId => + $composableBuilder(column: $table.bgTaskId, builder: (column) => ColumnFilters(column)); - ColumnFilters get mediaIndex => $composableBuilder( - column: $table.mediaIndex, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get mediaIndex => + $composableBuilder(column: $table.mediaIndex, builder: (column) => ColumnFilters(column)); } -class $$DownloadedMediaTableOrderingComposer - extends Composer<_$AppDatabase, $DownloadedMediaTable> { +class $$DownloadedMediaTableOrderingComposer extends Composer<_$AppDatabase, $DownloadedMediaTable> { $$DownloadedMediaTableOrderingComposer({ required super.$db, required super.$table, @@ -5459,104 +4523,64 @@ class $$DownloadedMediaTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get serverId => $composableBuilder( - column: $table.serverId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get serverId => + $composableBuilder(column: $table.serverId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get clientScopeId => $composableBuilder( - column: $table.clientScopeId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get clientScopeId => + $composableBuilder(column: $table.clientScopeId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get ratingKey => $composableBuilder( - column: $table.ratingKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get ratingKey => + $composableBuilder(column: $table.ratingKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get globalKey => $composableBuilder( - column: $table.globalKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get globalKey => + $composableBuilder(column: $table.globalKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get type => $composableBuilder( - column: $table.type, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get type => + $composableBuilder(column: $table.type, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get parentRatingKey => $composableBuilder( - column: $table.parentRatingKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get parentRatingKey => + $composableBuilder(column: $table.parentRatingKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get grandparentRatingKey => $composableBuilder( - column: $table.grandparentRatingKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get grandparentRatingKey => + $composableBuilder(column: $table.grandparentRatingKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get status => $composableBuilder( - column: $table.status, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get status => + $composableBuilder(column: $table.status, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get progress => $composableBuilder( - column: $table.progress, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get progress => + $composableBuilder(column: $table.progress, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get totalBytes => $composableBuilder( - column: $table.totalBytes, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get totalBytes => + $composableBuilder(column: $table.totalBytes, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get downloadedBytes => $composableBuilder( - column: $table.downloadedBytes, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get downloadedBytes => + $composableBuilder(column: $table.downloadedBytes, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get videoFilePath => $composableBuilder( - column: $table.videoFilePath, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get videoFilePath => + $composableBuilder(column: $table.videoFilePath, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get thumbPath => $composableBuilder( - column: $table.thumbPath, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get thumbPath => + $composableBuilder(column: $table.thumbPath, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get downloadedAt => $composableBuilder( - column: $table.downloadedAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get downloadedAt => + $composableBuilder(column: $table.downloadedAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get errorMessage => $composableBuilder( - column: $table.errorMessage, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get errorMessage => + $composableBuilder(column: $table.errorMessage, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get retryCount => $composableBuilder( - column: $table.retryCount, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get retryCount => + $composableBuilder(column: $table.retryCount, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get bgTaskId => $composableBuilder( - column: $table.bgTaskId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get bgTaskId => + $composableBuilder(column: $table.bgTaskId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get mediaIndex => $composableBuilder( - column: $table.mediaIndex, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get mediaIndex => + $composableBuilder(column: $table.mediaIndex, builder: (column) => ColumnOrderings(column)); } -class $$DownloadedMediaTableAnnotationComposer - extends Composer<_$AppDatabase, $DownloadedMediaTable> { +class $$DownloadedMediaTableAnnotationComposer extends Composer<_$AppDatabase, $DownloadedMediaTable> { $$DownloadedMediaTableAnnotationComposer({ required super.$db, required super.$table, @@ -5564,82 +4588,49 @@ class $$DownloadedMediaTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get id => - $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get serverId => - $composableBuilder(column: $table.serverId, builder: (column) => column); + GeneratedColumn get serverId => $composableBuilder(column: $table.serverId, builder: (column) => column); - GeneratedColumn get clientScopeId => $composableBuilder( - column: $table.clientScopeId, - builder: (column) => column, - ); + GeneratedColumn get clientScopeId => + $composableBuilder(column: $table.clientScopeId, builder: (column) => column); - GeneratedColumn get ratingKey => - $composableBuilder(column: $table.ratingKey, builder: (column) => column); + GeneratedColumn get ratingKey => $composableBuilder(column: $table.ratingKey, builder: (column) => column); - GeneratedColumn get globalKey => - $composableBuilder(column: $table.globalKey, builder: (column) => column); + GeneratedColumn get globalKey => $composableBuilder(column: $table.globalKey, builder: (column) => column); - GeneratedColumn get type => - $composableBuilder(column: $table.type, builder: (column) => column); + GeneratedColumn get type => $composableBuilder(column: $table.type, builder: (column) => column); - GeneratedColumn get parentRatingKey => $composableBuilder( - column: $table.parentRatingKey, - builder: (column) => column, - ); + GeneratedColumn get parentRatingKey => + $composableBuilder(column: $table.parentRatingKey, builder: (column) => column); - GeneratedColumn get grandparentRatingKey => $composableBuilder( - column: $table.grandparentRatingKey, - builder: (column) => column, - ); + GeneratedColumn get grandparentRatingKey => + $composableBuilder(column: $table.grandparentRatingKey, builder: (column) => column); - GeneratedColumn get status => - $composableBuilder(column: $table.status, builder: (column) => column); + GeneratedColumn get status => $composableBuilder(column: $table.status, builder: (column) => column); - GeneratedColumn get progress => - $composableBuilder(column: $table.progress, builder: (column) => column); + GeneratedColumn get progress => $composableBuilder(column: $table.progress, builder: (column) => column); - GeneratedColumn get totalBytes => $composableBuilder( - column: $table.totalBytes, - builder: (column) => column, - ); + GeneratedColumn get totalBytes => $composableBuilder(column: $table.totalBytes, builder: (column) => column); - GeneratedColumn get downloadedBytes => $composableBuilder( - column: $table.downloadedBytes, - builder: (column) => column, - ); + GeneratedColumn get downloadedBytes => + $composableBuilder(column: $table.downloadedBytes, builder: (column) => column); - GeneratedColumn get videoFilePath => $composableBuilder( - column: $table.videoFilePath, - builder: (column) => column, - ); + GeneratedColumn get videoFilePath => + $composableBuilder(column: $table.videoFilePath, builder: (column) => column); - GeneratedColumn get thumbPath => - $composableBuilder(column: $table.thumbPath, builder: (column) => column); + GeneratedColumn get thumbPath => $composableBuilder(column: $table.thumbPath, builder: (column) => column); - GeneratedColumn get downloadedAt => $composableBuilder( - column: $table.downloadedAt, - builder: (column) => column, - ); + GeneratedColumn get downloadedAt => $composableBuilder(column: $table.downloadedAt, builder: (column) => column); - GeneratedColumn get errorMessage => $composableBuilder( - column: $table.errorMessage, - builder: (column) => column, - ); + GeneratedColumn get errorMessage => + $composableBuilder(column: $table.errorMessage, builder: (column) => column); - GeneratedColumn get retryCount => $composableBuilder( - column: $table.retryCount, - builder: (column) => column, - ); + GeneratedColumn get retryCount => $composableBuilder(column: $table.retryCount, builder: (column) => column); - GeneratedColumn get bgTaskId => - $composableBuilder(column: $table.bgTaskId, builder: (column) => column); + GeneratedColumn get bgTaskId => $composableBuilder(column: $table.bgTaskId, builder: (column) => column); - GeneratedColumn get mediaIndex => $composableBuilder( - column: $table.mediaIndex, - builder: (column) => column, - ); + GeneratedColumn get mediaIndex => $composableBuilder(column: $table.mediaIndex, builder: (column) => column); } class $$DownloadedMediaTableTableManager @@ -5653,30 +4644,18 @@ class $$DownloadedMediaTableTableManager $$DownloadedMediaTableAnnotationComposer, $$DownloadedMediaTableCreateCompanionBuilder, $$DownloadedMediaTableUpdateCompanionBuilder, - ( - DownloadedMediaItem, - BaseReferences< - _$AppDatabase, - $DownloadedMediaTable, - DownloadedMediaItem - >, - ), + (DownloadedMediaItem, BaseReferences<_$AppDatabase, $DownloadedMediaTable, DownloadedMediaItem>), DownloadedMediaItem, PrefetchHooks Function() > { - $$DownloadedMediaTableTableManager( - _$AppDatabase db, - $DownloadedMediaTable table, - ) : super( + $$DownloadedMediaTableTableManager(_$AppDatabase db, $DownloadedMediaTable table) + : super( TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$DownloadedMediaTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$DownloadedMediaTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$DownloadedMediaTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$DownloadedMediaTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$DownloadedMediaTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$DownloadedMediaTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), @@ -5761,9 +4740,7 @@ class $$DownloadedMediaTableTableManager bgTaskId: bgTaskId, mediaIndex: mediaIndex, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, ), ); @@ -5779,14 +4756,7 @@ typedef $$DownloadedMediaTableProcessedTableManager = $$DownloadedMediaTableAnnotationComposer, $$DownloadedMediaTableCreateCompanionBuilder, $$DownloadedMediaTableUpdateCompanionBuilder, - ( - DownloadedMediaItem, - BaseReferences< - _$AppDatabase, - $DownloadedMediaTable, - DownloadedMediaItem - >, - ), + (DownloadedMediaItem, BaseReferences<_$AppDatabase, $DownloadedMediaTable, DownloadedMediaItem>), DownloadedMediaItem, PrefetchHooks Function() >; @@ -5805,8 +4775,7 @@ typedef $$DownloadOwnersTableUpdateCompanionBuilder = Value rowid, }); -class $$DownloadOwnersTableFilterComposer - extends Composer<_$AppDatabase, $DownloadOwnersTable> { +class $$DownloadOwnersTableFilterComposer extends Composer<_$AppDatabase, $DownloadOwnersTable> { $$DownloadOwnersTableFilterComposer({ required super.$db, required super.$table, @@ -5814,24 +4783,17 @@ class $$DownloadOwnersTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get profileId => $composableBuilder( - column: $table.profileId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get profileId => + $composableBuilder(column: $table.profileId, builder: (column) => ColumnFilters(column)); - ColumnFilters get globalKey => $composableBuilder( - column: $table.globalKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get globalKey => + $composableBuilder(column: $table.globalKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnFilters(column)); } -class $$DownloadOwnersTableOrderingComposer - extends Composer<_$AppDatabase, $DownloadOwnersTable> { +class $$DownloadOwnersTableOrderingComposer extends Composer<_$AppDatabase, $DownloadOwnersTable> { $$DownloadOwnersTableOrderingComposer({ required super.$db, required super.$table, @@ -5839,24 +4801,17 @@ class $$DownloadOwnersTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get profileId => $composableBuilder( - column: $table.profileId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get profileId => + $composableBuilder(column: $table.profileId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get globalKey => $composableBuilder( - column: $table.globalKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get globalKey => + $composableBuilder(column: $table.globalKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnOrderings(column)); } -class $$DownloadOwnersTableAnnotationComposer - extends Composer<_$AppDatabase, $DownloadOwnersTable> { +class $$DownloadOwnersTableAnnotationComposer extends Composer<_$AppDatabase, $DownloadOwnersTable> { $$DownloadOwnersTableAnnotationComposer({ required super.$db, required super.$table, @@ -5864,14 +4819,11 @@ class $$DownloadOwnersTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get profileId => - $composableBuilder(column: $table.profileId, builder: (column) => column); + GeneratedColumn get profileId => $composableBuilder(column: $table.profileId, builder: (column) => column); - GeneratedColumn get globalKey => - $composableBuilder(column: $table.globalKey, builder: (column) => column); + GeneratedColumn get globalKey => $composableBuilder(column: $table.globalKey, builder: (column) => column); - GeneratedColumn get createdAt => - $composableBuilder(column: $table.createdAt, builder: (column) => column); + GeneratedColumn get createdAt => $composableBuilder(column: $table.createdAt, builder: (column) => column); } class $$DownloadOwnersTableTableManager @@ -5885,30 +4837,18 @@ class $$DownloadOwnersTableTableManager $$DownloadOwnersTableAnnotationComposer, $$DownloadOwnersTableCreateCompanionBuilder, $$DownloadOwnersTableUpdateCompanionBuilder, - ( - DownloadOwnerItem, - BaseReferences< - _$AppDatabase, - $DownloadOwnersTable, - DownloadOwnerItem - >, - ), + (DownloadOwnerItem, BaseReferences<_$AppDatabase, $DownloadOwnersTable, DownloadOwnerItem>), DownloadOwnerItem, PrefetchHooks Function() > { - $$DownloadOwnersTableTableManager( - _$AppDatabase db, - $DownloadOwnersTable table, - ) : super( + $$DownloadOwnersTableTableManager(_$AppDatabase db, $DownloadOwnersTable table) + : super( TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$DownloadOwnersTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$DownloadOwnersTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$DownloadOwnersTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$DownloadOwnersTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$DownloadOwnersTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$DownloadOwnersTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value profileId = const Value.absent(), @@ -5933,9 +4873,7 @@ class $$DownloadOwnersTableTableManager createdAt: createdAt, rowid: rowid, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, ), ); @@ -5951,10 +4889,7 @@ typedef $$DownloadOwnersTableProcessedTableManager = $$DownloadOwnersTableAnnotationComposer, $$DownloadOwnersTableCreateCompanionBuilder, $$DownloadOwnersTableUpdateCompanionBuilder, - ( - DownloadOwnerItem, - BaseReferences<_$AppDatabase, $DownloadOwnersTable, DownloadOwnerItem>, - ), + (DownloadOwnerItem, BaseReferences<_$AppDatabase, $DownloadOwnersTable, DownloadOwnerItem>), DownloadOwnerItem, PrefetchHooks Function() >; @@ -5977,8 +4912,7 @@ typedef $$DownloadQueueTableUpdateCompanionBuilder = Value downloadArtwork, }); -class $$DownloadQueueTableFilterComposer - extends Composer<_$AppDatabase, $DownloadQueueTable> { +class $$DownloadQueueTableFilterComposer extends Composer<_$AppDatabase, $DownloadQueueTable> { $$DownloadQueueTableFilterComposer({ required super.$db, required super.$table, @@ -5986,39 +4920,25 @@ class $$DownloadQueueTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get mediaGlobalKey => $composableBuilder( - column: $table.mediaGlobalKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get mediaGlobalKey => + $composableBuilder(column: $table.mediaGlobalKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get priority => $composableBuilder( - column: $table.priority, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get priority => + $composableBuilder(column: $table.priority, builder: (column) => ColumnFilters(column)); - ColumnFilters get addedAt => $composableBuilder( - column: $table.addedAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get addedAt => + $composableBuilder(column: $table.addedAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get downloadSubtitles => $composableBuilder( - column: $table.downloadSubtitles, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get downloadSubtitles => + $composableBuilder(column: $table.downloadSubtitles, builder: (column) => ColumnFilters(column)); - ColumnFilters get downloadArtwork => $composableBuilder( - column: $table.downloadArtwork, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get downloadArtwork => + $composableBuilder(column: $table.downloadArtwork, builder: (column) => ColumnFilters(column)); } -class $$DownloadQueueTableOrderingComposer - extends Composer<_$AppDatabase, $DownloadQueueTable> { +class $$DownloadQueueTableOrderingComposer extends Composer<_$AppDatabase, $DownloadQueueTable> { $$DownloadQueueTableOrderingComposer({ required super.$db, required super.$table, @@ -6026,39 +4946,25 @@ class $$DownloadQueueTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get mediaGlobalKey => $composableBuilder( - column: $table.mediaGlobalKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get mediaGlobalKey => + $composableBuilder(column: $table.mediaGlobalKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get priority => $composableBuilder( - column: $table.priority, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get priority => + $composableBuilder(column: $table.priority, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get addedAt => $composableBuilder( - column: $table.addedAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get addedAt => + $composableBuilder(column: $table.addedAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get downloadSubtitles => $composableBuilder( - column: $table.downloadSubtitles, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get downloadSubtitles => + $composableBuilder(column: $table.downloadSubtitles, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get downloadArtwork => $composableBuilder( - column: $table.downloadArtwork, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get downloadArtwork => + $composableBuilder(column: $table.downloadArtwork, builder: (column) => ColumnOrderings(column)); } -class $$DownloadQueueTableAnnotationComposer - extends Composer<_$AppDatabase, $DownloadQueueTable> { +class $$DownloadQueueTableAnnotationComposer extends Composer<_$AppDatabase, $DownloadQueueTable> { $$DownloadQueueTableAnnotationComposer({ required super.$db, required super.$table, @@ -6066,29 +4972,20 @@ class $$DownloadQueueTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get id => - $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get mediaGlobalKey => $composableBuilder( - column: $table.mediaGlobalKey, - builder: (column) => column, - ); + GeneratedColumn get mediaGlobalKey => + $composableBuilder(column: $table.mediaGlobalKey, builder: (column) => column); - GeneratedColumn get priority => - $composableBuilder(column: $table.priority, builder: (column) => column); + GeneratedColumn get priority => $composableBuilder(column: $table.priority, builder: (column) => column); - GeneratedColumn get addedAt => - $composableBuilder(column: $table.addedAt, builder: (column) => column); + GeneratedColumn get addedAt => $composableBuilder(column: $table.addedAt, builder: (column) => column); - GeneratedColumn get downloadSubtitles => $composableBuilder( - column: $table.downloadSubtitles, - builder: (column) => column, - ); + GeneratedColumn get downloadSubtitles => + $composableBuilder(column: $table.downloadSubtitles, builder: (column) => column); - GeneratedColumn get downloadArtwork => $composableBuilder( - column: $table.downloadArtwork, - builder: (column) => column, - ); + GeneratedColumn get downloadArtwork => + $composableBuilder(column: $table.downloadArtwork, builder: (column) => column); } class $$DownloadQueueTableTableManager @@ -6102,14 +4999,7 @@ class $$DownloadQueueTableTableManager $$DownloadQueueTableAnnotationComposer, $$DownloadQueueTableCreateCompanionBuilder, $$DownloadQueueTableUpdateCompanionBuilder, - ( - DownloadQueueItem, - BaseReferences< - _$AppDatabase, - $DownloadQueueTable, - DownloadQueueItem - >, - ), + (DownloadQueueItem, BaseReferences<_$AppDatabase, $DownloadQueueTable, DownloadQueueItem>), DownloadQueueItem, PrefetchHooks Function() > { @@ -6118,12 +5008,9 @@ class $$DownloadQueueTableTableManager TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$DownloadQueueTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$DownloadQueueTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$DownloadQueueTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$DownloadQueueTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$DownloadQueueTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$DownloadQueueTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), @@ -6156,9 +5043,7 @@ class $$DownloadQueueTableTableManager downloadSubtitles: downloadSubtitles, downloadArtwork: downloadArtwork, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, ), ); @@ -6174,10 +5059,7 @@ typedef $$DownloadQueueTableProcessedTableManager = $$DownloadQueueTableAnnotationComposer, $$DownloadQueueTableCreateCompanionBuilder, $$DownloadQueueTableUpdateCompanionBuilder, - ( - DownloadQueueItem, - BaseReferences<_$AppDatabase, $DownloadQueueTable, DownloadQueueItem>, - ), + (DownloadQueueItem, BaseReferences<_$AppDatabase, $DownloadQueueTable, DownloadQueueItem>), DownloadQueueItem, PrefetchHooks Function() >; @@ -6198,8 +5080,7 @@ typedef $$ApiCacheTableUpdateCompanionBuilder = Value rowid, }); -class $$ApiCacheTableFilterComposer - extends Composer<_$AppDatabase, $ApiCacheTable> { +class $$ApiCacheTableFilterComposer extends Composer<_$AppDatabase, $ApiCacheTable> { $$ApiCacheTableFilterComposer({ required super.$db, required super.$table, @@ -6207,29 +5088,19 @@ class $$ApiCacheTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get cacheKey => $composableBuilder( - column: $table.cacheKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get cacheKey => + $composableBuilder(column: $table.cacheKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get data => $composableBuilder( - column: $table.data, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get data => $composableBuilder(column: $table.data, builder: (column) => ColumnFilters(column)); - ColumnFilters get pinned => $composableBuilder( - column: $table.pinned, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get pinned => + $composableBuilder(column: $table.pinned, builder: (column) => ColumnFilters(column)); - ColumnFilters get cachedAt => $composableBuilder( - column: $table.cachedAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get cachedAt => + $composableBuilder(column: $table.cachedAt, builder: (column) => ColumnFilters(column)); } -class $$ApiCacheTableOrderingComposer - extends Composer<_$AppDatabase, $ApiCacheTable> { +class $$ApiCacheTableOrderingComposer extends Composer<_$AppDatabase, $ApiCacheTable> { $$ApiCacheTableOrderingComposer({ required super.$db, required super.$table, @@ -6237,29 +5108,20 @@ class $$ApiCacheTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get cacheKey => $composableBuilder( - column: $table.cacheKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get cacheKey => + $composableBuilder(column: $table.cacheKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get data => $composableBuilder( - column: $table.data, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get data => + $composableBuilder(column: $table.data, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get pinned => $composableBuilder( - column: $table.pinned, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get pinned => + $composableBuilder(column: $table.pinned, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get cachedAt => $composableBuilder( - column: $table.cachedAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get cachedAt => + $composableBuilder(column: $table.cachedAt, builder: (column) => ColumnOrderings(column)); } -class $$ApiCacheTableAnnotationComposer - extends Composer<_$AppDatabase, $ApiCacheTable> { +class $$ApiCacheTableAnnotationComposer extends Composer<_$AppDatabase, $ApiCacheTable> { $$ApiCacheTableAnnotationComposer({ required super.$db, required super.$table, @@ -6267,17 +5129,13 @@ class $$ApiCacheTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get cacheKey => - $composableBuilder(column: $table.cacheKey, builder: (column) => column); + GeneratedColumn get cacheKey => $composableBuilder(column: $table.cacheKey, builder: (column) => column); - GeneratedColumn get data => - $composableBuilder(column: $table.data, builder: (column) => column); + GeneratedColumn get data => $composableBuilder(column: $table.data, builder: (column) => column); - GeneratedColumn get pinned => - $composableBuilder(column: $table.pinned, builder: (column) => column); + GeneratedColumn get pinned => $composableBuilder(column: $table.pinned, builder: (column) => column); - GeneratedColumn get cachedAt => - $composableBuilder(column: $table.cachedAt, builder: (column) => column); + GeneratedColumn get cachedAt => $composableBuilder(column: $table.cachedAt, builder: (column) => column); } class $$ApiCacheTableTableManager @@ -6291,10 +5149,7 @@ class $$ApiCacheTableTableManager $$ApiCacheTableAnnotationComposer, $$ApiCacheTableCreateCompanionBuilder, $$ApiCacheTableUpdateCompanionBuilder, - ( - ApiCacheData, - BaseReferences<_$AppDatabase, $ApiCacheTable, ApiCacheData>, - ), + (ApiCacheData, BaseReferences<_$AppDatabase, $ApiCacheTable, ApiCacheData>), ApiCacheData, PrefetchHooks Function() > { @@ -6303,12 +5158,9 @@ class $$ApiCacheTableTableManager TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$ApiCacheTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$ApiCacheTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$ApiCacheTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$ApiCacheTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$ApiCacheTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$ApiCacheTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value cacheKey = const Value.absent(), @@ -6316,13 +5168,7 @@ class $$ApiCacheTableTableManager Value pinned = const Value.absent(), Value cachedAt = const Value.absent(), Value rowid = const Value.absent(), - }) => ApiCacheCompanion( - cacheKey: cacheKey, - data: data, - pinned: pinned, - cachedAt: cachedAt, - rowid: rowid, - ), + }) => ApiCacheCompanion(cacheKey: cacheKey, data: data, pinned: pinned, cachedAt: cachedAt, rowid: rowid), createCompanionCallback: ({ required String cacheKey, @@ -6337,9 +5183,7 @@ class $$ApiCacheTableTableManager cachedAt: cachedAt, rowid: rowid, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, ), ); @@ -6355,10 +5199,7 @@ typedef $$ApiCacheTableProcessedTableManager = $$ApiCacheTableAnnotationComposer, $$ApiCacheTableCreateCompanionBuilder, $$ApiCacheTableUpdateCompanionBuilder, - ( - ApiCacheData, - BaseReferences<_$AppDatabase, $ApiCacheTable, ApiCacheData>, - ), + (ApiCacheData, BaseReferences<_$AppDatabase, $ApiCacheTable, ApiCacheData>), ApiCacheData, PrefetchHooks Function() >; @@ -6397,8 +5238,7 @@ typedef $$OfflineWatchProgressTableUpdateCompanionBuilder = Value lastError, }); -class $$OfflineWatchProgressTableFilterComposer - extends Composer<_$AppDatabase, $OfflineWatchProgressTable> { +class $$OfflineWatchProgressTableFilterComposer extends Composer<_$AppDatabase, $OfflineWatchProgressTable> { $$OfflineWatchProgressTableFilterComposer({ required super.$db, required super.$table, @@ -6406,79 +5246,49 @@ class $$OfflineWatchProgressTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get profileId => $composableBuilder( - column: $table.profileId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get profileId => + $composableBuilder(column: $table.profileId, builder: (column) => ColumnFilters(column)); - ColumnFilters get serverId => $composableBuilder( - column: $table.serverId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get serverId => + $composableBuilder(column: $table.serverId, builder: (column) => ColumnFilters(column)); - ColumnFilters get clientScopeId => $composableBuilder( - column: $table.clientScopeId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get clientScopeId => + $composableBuilder(column: $table.clientScopeId, builder: (column) => ColumnFilters(column)); - ColumnFilters get ratingKey => $composableBuilder( - column: $table.ratingKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get ratingKey => + $composableBuilder(column: $table.ratingKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get globalKey => $composableBuilder( - column: $table.globalKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get globalKey => + $composableBuilder(column: $table.globalKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get actionType => $composableBuilder( - column: $table.actionType, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get actionType => + $composableBuilder(column: $table.actionType, builder: (column) => ColumnFilters(column)); - ColumnFilters get viewOffset => $composableBuilder( - column: $table.viewOffset, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get viewOffset => + $composableBuilder(column: $table.viewOffset, builder: (column) => ColumnFilters(column)); - ColumnFilters get duration => $composableBuilder( - column: $table.duration, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get duration => + $composableBuilder(column: $table.duration, builder: (column) => ColumnFilters(column)); - ColumnFilters get shouldMarkWatched => $composableBuilder( - column: $table.shouldMarkWatched, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get shouldMarkWatched => + $composableBuilder(column: $table.shouldMarkWatched, builder: (column) => ColumnFilters(column)); - ColumnFilters get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get updatedAt => $composableBuilder( - column: $table.updatedAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get updatedAt => + $composableBuilder(column: $table.updatedAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get syncAttempts => $composableBuilder( - column: $table.syncAttempts, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get syncAttempts => + $composableBuilder(column: $table.syncAttempts, builder: (column) => ColumnFilters(column)); - ColumnFilters get lastError => $composableBuilder( - column: $table.lastError, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get lastError => + $composableBuilder(column: $table.lastError, builder: (column) => ColumnFilters(column)); } -class $$OfflineWatchProgressTableOrderingComposer - extends Composer<_$AppDatabase, $OfflineWatchProgressTable> { +class $$OfflineWatchProgressTableOrderingComposer extends Composer<_$AppDatabase, $OfflineWatchProgressTable> { $$OfflineWatchProgressTableOrderingComposer({ required super.$db, required super.$table, @@ -6486,79 +5296,49 @@ class $$OfflineWatchProgressTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get profileId => $composableBuilder( - column: $table.profileId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get profileId => + $composableBuilder(column: $table.profileId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get serverId => $composableBuilder( - column: $table.serverId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get serverId => + $composableBuilder(column: $table.serverId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get clientScopeId => $composableBuilder( - column: $table.clientScopeId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get clientScopeId => + $composableBuilder(column: $table.clientScopeId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get ratingKey => $composableBuilder( - column: $table.ratingKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get ratingKey => + $composableBuilder(column: $table.ratingKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get globalKey => $composableBuilder( - column: $table.globalKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get globalKey => + $composableBuilder(column: $table.globalKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get actionType => $composableBuilder( - column: $table.actionType, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get actionType => + $composableBuilder(column: $table.actionType, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get viewOffset => $composableBuilder( - column: $table.viewOffset, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get viewOffset => + $composableBuilder(column: $table.viewOffset, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get duration => $composableBuilder( - column: $table.duration, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get duration => + $composableBuilder(column: $table.duration, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get shouldMarkWatched => $composableBuilder( - column: $table.shouldMarkWatched, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get shouldMarkWatched => + $composableBuilder(column: $table.shouldMarkWatched, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get updatedAt => $composableBuilder( - column: $table.updatedAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get updatedAt => + $composableBuilder(column: $table.updatedAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get syncAttempts => $composableBuilder( - column: $table.syncAttempts, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get syncAttempts => + $composableBuilder(column: $table.syncAttempts, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get lastError => $composableBuilder( - column: $table.lastError, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get lastError => + $composableBuilder(column: $table.lastError, builder: (column) => ColumnOrderings(column)); } -class $$OfflineWatchProgressTableAnnotationComposer - extends Composer<_$AppDatabase, $OfflineWatchProgressTable> { +class $$OfflineWatchProgressTableAnnotationComposer extends Composer<_$AppDatabase, $OfflineWatchProgressTable> { $$OfflineWatchProgressTableAnnotationComposer({ required super.$db, required super.$table, @@ -6566,57 +5346,35 @@ class $$OfflineWatchProgressTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get id => - $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get profileId => - $composableBuilder(column: $table.profileId, builder: (column) => column); + GeneratedColumn get profileId => $composableBuilder(column: $table.profileId, builder: (column) => column); - GeneratedColumn get serverId => - $composableBuilder(column: $table.serverId, builder: (column) => column); + GeneratedColumn get serverId => $composableBuilder(column: $table.serverId, builder: (column) => column); - GeneratedColumn get clientScopeId => $composableBuilder( - column: $table.clientScopeId, - builder: (column) => column, - ); + GeneratedColumn get clientScopeId => + $composableBuilder(column: $table.clientScopeId, builder: (column) => column); - GeneratedColumn get ratingKey => - $composableBuilder(column: $table.ratingKey, builder: (column) => column); + GeneratedColumn get ratingKey => $composableBuilder(column: $table.ratingKey, builder: (column) => column); - GeneratedColumn get globalKey => - $composableBuilder(column: $table.globalKey, builder: (column) => column); + GeneratedColumn get globalKey => $composableBuilder(column: $table.globalKey, builder: (column) => column); - GeneratedColumn get actionType => $composableBuilder( - column: $table.actionType, - builder: (column) => column, - ); + GeneratedColumn get actionType => $composableBuilder(column: $table.actionType, builder: (column) => column); - GeneratedColumn get viewOffset => $composableBuilder( - column: $table.viewOffset, - builder: (column) => column, - ); + GeneratedColumn get viewOffset => $composableBuilder(column: $table.viewOffset, builder: (column) => column); - GeneratedColumn get duration => - $composableBuilder(column: $table.duration, builder: (column) => column); + GeneratedColumn get duration => $composableBuilder(column: $table.duration, builder: (column) => column); - GeneratedColumn get shouldMarkWatched => $composableBuilder( - column: $table.shouldMarkWatched, - builder: (column) => column, - ); + GeneratedColumn get shouldMarkWatched => + $composableBuilder(column: $table.shouldMarkWatched, builder: (column) => column); - GeneratedColumn get createdAt => - $composableBuilder(column: $table.createdAt, builder: (column) => column); + GeneratedColumn get createdAt => $composableBuilder(column: $table.createdAt, builder: (column) => column); - GeneratedColumn get updatedAt => - $composableBuilder(column: $table.updatedAt, builder: (column) => column); + GeneratedColumn get updatedAt => $composableBuilder(column: $table.updatedAt, builder: (column) => column); - GeneratedColumn get syncAttempts => $composableBuilder( - column: $table.syncAttempts, - builder: (column) => column, - ); + GeneratedColumn get syncAttempts => $composableBuilder(column: $table.syncAttempts, builder: (column) => column); - GeneratedColumn get lastError => - $composableBuilder(column: $table.lastError, builder: (column) => column); + GeneratedColumn get lastError => $composableBuilder(column: $table.lastError, builder: (column) => column); } class $$OfflineWatchProgressTableTableManager @@ -6632,34 +5390,19 @@ class $$OfflineWatchProgressTableTableManager $$OfflineWatchProgressTableUpdateCompanionBuilder, ( OfflineWatchProgressItem, - BaseReferences< - _$AppDatabase, - $OfflineWatchProgressTable, - OfflineWatchProgressItem - >, + BaseReferences<_$AppDatabase, $OfflineWatchProgressTable, OfflineWatchProgressItem>, ), OfflineWatchProgressItem, PrefetchHooks Function() > { - $$OfflineWatchProgressTableTableManager( - _$AppDatabase db, - $OfflineWatchProgressTable table, - ) : super( + $$OfflineWatchProgressTableTableManager(_$AppDatabase db, $OfflineWatchProgressTable table) + : super( TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$OfflineWatchProgressTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$OfflineWatchProgressTableOrderingComposer( - $db: db, - $table: table, - ), - createComputedFieldComposer: () => - $$OfflineWatchProgressTableAnnotationComposer( - $db: db, - $table: table, - ), + createFilteringComposer: () => $$OfflineWatchProgressTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$OfflineWatchProgressTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$OfflineWatchProgressTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), @@ -6724,9 +5467,7 @@ class $$OfflineWatchProgressTableTableManager syncAttempts: syncAttempts, lastError: lastError, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, ), ); @@ -6742,14 +5483,7 @@ typedef $$OfflineWatchProgressTableProcessedTableManager = $$OfflineWatchProgressTableAnnotationComposer, $$OfflineWatchProgressTableCreateCompanionBuilder, $$OfflineWatchProgressTableUpdateCompanionBuilder, - ( - OfflineWatchProgressItem, - BaseReferences< - _$AppDatabase, - $OfflineWatchProgressTable, - OfflineWatchProgressItem - >, - ), + (OfflineWatchProgressItem, BaseReferences<_$AppDatabase, $OfflineWatchProgressTable, OfflineWatchProgressItem>), OfflineWatchProgressItem, PrefetchHooks Function() >; @@ -6784,8 +5518,7 @@ typedef $$SyncRulesTableUpdateCompanionBuilder = Value downloadFilter, }); -class $$SyncRulesTableFilterComposer - extends Composer<_$AppDatabase, $SyncRulesTable> { +class $$SyncRulesTableFilterComposer extends Composer<_$AppDatabase, $SyncRulesTable> { $$SyncRulesTableFilterComposer({ required super.$db, required super.$table, @@ -6793,69 +5526,43 @@ class $$SyncRulesTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get profileId => $composableBuilder( - column: $table.profileId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get profileId => + $composableBuilder(column: $table.profileId, builder: (column) => ColumnFilters(column)); - ColumnFilters get serverId => $composableBuilder( - column: $table.serverId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get serverId => + $composableBuilder(column: $table.serverId, builder: (column) => ColumnFilters(column)); - ColumnFilters get ratingKey => $composableBuilder( - column: $table.ratingKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get ratingKey => + $composableBuilder(column: $table.ratingKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get globalKey => $composableBuilder( - column: $table.globalKey, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get globalKey => + $composableBuilder(column: $table.globalKey, builder: (column) => ColumnFilters(column)); - ColumnFilters get targetType => $composableBuilder( - column: $table.targetType, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get targetType => + $composableBuilder(column: $table.targetType, builder: (column) => ColumnFilters(column)); - ColumnFilters get episodeCount => $composableBuilder( - column: $table.episodeCount, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get episodeCount => + $composableBuilder(column: $table.episodeCount, builder: (column) => ColumnFilters(column)); - ColumnFilters get enabled => $composableBuilder( - column: $table.enabled, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get enabled => + $composableBuilder(column: $table.enabled, builder: (column) => ColumnFilters(column)); - ColumnFilters get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get lastExecutedAt => $composableBuilder( - column: $table.lastExecutedAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get lastExecutedAt => + $composableBuilder(column: $table.lastExecutedAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get mediaIndex => $composableBuilder( - column: $table.mediaIndex, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get mediaIndex => + $composableBuilder(column: $table.mediaIndex, builder: (column) => ColumnFilters(column)); - ColumnFilters get downloadFilter => $composableBuilder( - column: $table.downloadFilter, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get downloadFilter => + $composableBuilder(column: $table.downloadFilter, builder: (column) => ColumnFilters(column)); } -class $$SyncRulesTableOrderingComposer - extends Composer<_$AppDatabase, $SyncRulesTable> { +class $$SyncRulesTableOrderingComposer extends Composer<_$AppDatabase, $SyncRulesTable> { $$SyncRulesTableOrderingComposer({ required super.$db, required super.$table, @@ -6863,69 +5570,43 @@ class $$SyncRulesTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get profileId => $composableBuilder( - column: $table.profileId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get profileId => + $composableBuilder(column: $table.profileId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get serverId => $composableBuilder( - column: $table.serverId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get serverId => + $composableBuilder(column: $table.serverId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get ratingKey => $composableBuilder( - column: $table.ratingKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get ratingKey => + $composableBuilder(column: $table.ratingKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get globalKey => $composableBuilder( - column: $table.globalKey, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get globalKey => + $composableBuilder(column: $table.globalKey, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get targetType => $composableBuilder( - column: $table.targetType, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get targetType => + $composableBuilder(column: $table.targetType, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get episodeCount => $composableBuilder( - column: $table.episodeCount, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get episodeCount => + $composableBuilder(column: $table.episodeCount, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get enabled => $composableBuilder( - column: $table.enabled, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get enabled => + $composableBuilder(column: $table.enabled, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get lastExecutedAt => $composableBuilder( - column: $table.lastExecutedAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get lastExecutedAt => + $composableBuilder(column: $table.lastExecutedAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get mediaIndex => $composableBuilder( - column: $table.mediaIndex, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get mediaIndex => + $composableBuilder(column: $table.mediaIndex, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get downloadFilter => $composableBuilder( - column: $table.downloadFilter, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get downloadFilter => + $composableBuilder(column: $table.downloadFilter, builder: (column) => ColumnOrderings(column)); } -class $$SyncRulesTableAnnotationComposer - extends Composer<_$AppDatabase, $SyncRulesTable> { +class $$SyncRulesTableAnnotationComposer extends Composer<_$AppDatabase, $SyncRulesTable> { $$SyncRulesTableAnnotationComposer({ required super.$db, required super.$table, @@ -6933,51 +5614,31 @@ class $$SyncRulesTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get id => - $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get profileId => - $composableBuilder(column: $table.profileId, builder: (column) => column); + GeneratedColumn get profileId => $composableBuilder(column: $table.profileId, builder: (column) => column); - GeneratedColumn get serverId => - $composableBuilder(column: $table.serverId, builder: (column) => column); + GeneratedColumn get serverId => $composableBuilder(column: $table.serverId, builder: (column) => column); - GeneratedColumn get ratingKey => - $composableBuilder(column: $table.ratingKey, builder: (column) => column); + GeneratedColumn get ratingKey => $composableBuilder(column: $table.ratingKey, builder: (column) => column); - GeneratedColumn get globalKey => - $composableBuilder(column: $table.globalKey, builder: (column) => column); + GeneratedColumn get globalKey => $composableBuilder(column: $table.globalKey, builder: (column) => column); - GeneratedColumn get targetType => $composableBuilder( - column: $table.targetType, - builder: (column) => column, - ); + GeneratedColumn get targetType => $composableBuilder(column: $table.targetType, builder: (column) => column); - GeneratedColumn get episodeCount => $composableBuilder( - column: $table.episodeCount, - builder: (column) => column, - ); + GeneratedColumn get episodeCount => $composableBuilder(column: $table.episodeCount, builder: (column) => column); - GeneratedColumn get enabled => - $composableBuilder(column: $table.enabled, builder: (column) => column); + GeneratedColumn get enabled => $composableBuilder(column: $table.enabled, builder: (column) => column); - GeneratedColumn get createdAt => - $composableBuilder(column: $table.createdAt, builder: (column) => column); + GeneratedColumn get createdAt => $composableBuilder(column: $table.createdAt, builder: (column) => column); - GeneratedColumn get lastExecutedAt => $composableBuilder( - column: $table.lastExecutedAt, - builder: (column) => column, - ); + GeneratedColumn get lastExecutedAt => + $composableBuilder(column: $table.lastExecutedAt, builder: (column) => column); - GeneratedColumn get mediaIndex => $composableBuilder( - column: $table.mediaIndex, - builder: (column) => column, - ); + GeneratedColumn get mediaIndex => $composableBuilder(column: $table.mediaIndex, builder: (column) => column); - GeneratedColumn get downloadFilter => $composableBuilder( - column: $table.downloadFilter, - builder: (column) => column, - ); + GeneratedColumn get downloadFilter => + $composableBuilder(column: $table.downloadFilter, builder: (column) => column); } class $$SyncRulesTableTableManager @@ -6991,10 +5652,7 @@ class $$SyncRulesTableTableManager $$SyncRulesTableAnnotationComposer, $$SyncRulesTableCreateCompanionBuilder, $$SyncRulesTableUpdateCompanionBuilder, - ( - SyncRuleItem, - BaseReferences<_$AppDatabase, $SyncRulesTable, SyncRuleItem>, - ), + (SyncRuleItem, BaseReferences<_$AppDatabase, $SyncRulesTable, SyncRuleItem>), SyncRuleItem, PrefetchHooks Function() > { @@ -7003,12 +5661,9 @@ class $$SyncRulesTableTableManager TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$SyncRulesTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$SyncRulesTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$SyncRulesTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$SyncRulesTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$SyncRulesTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$SyncRulesTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), @@ -7065,9 +5720,7 @@ class $$SyncRulesTableTableManager mediaIndex: mediaIndex, downloadFilter: downloadFilter, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, ), ); @@ -7083,10 +5736,7 @@ typedef $$SyncRulesTableProcessedTableManager = $$SyncRulesTableAnnotationComposer, $$SyncRulesTableCreateCompanionBuilder, $$SyncRulesTableUpdateCompanionBuilder, - ( - SyncRuleItem, - BaseReferences<_$AppDatabase, $SyncRulesTable, SyncRuleItem>, - ), + (SyncRuleItem, BaseReferences<_$AppDatabase, $SyncRulesTable, SyncRuleItem>), SyncRuleItem, PrefetchHooks Function() >; @@ -7113,22 +5763,15 @@ typedef $$ConnectionsTableUpdateCompanionBuilder = Value rowid, }); -final class $$ConnectionsTableReferences - extends BaseReferences<_$AppDatabase, $ConnectionsTable, ConnectionRow> { +final class $$ConnectionsTableReferences extends BaseReferences<_$AppDatabase, $ConnectionsTable, ConnectionRow> { $$ConnectionsTableReferences(super.$_db, super.$_table, super.$_typedResult); - static MultiTypedResultKey< - $ProfileConnectionsTable, - List - > - _profileConnectionsRefsTable(_$AppDatabase db) => - MultiTypedResultKey.fromTable( - db.profileConnections, - aliasName: $_aliasNameGenerator( - db.connections.id, - db.profileConnections.connectionId, - ), - ); + static MultiTypedResultKey<$ProfileConnectionsTable, List> _profileConnectionsRefsTable( + _$AppDatabase db, + ) => MultiTypedResultKey.fromTable( + db.profileConnections, + aliasName: $_aliasNameGenerator(db.connections.id, db.profileConnections.connectionId), + ); $$ProfileConnectionsTableProcessedTableManager get profileConnectionsRefs { final manager = $$ProfileConnectionsTableTableManager( @@ -7136,17 +5779,12 @@ final class $$ConnectionsTableReferences $_db.profileConnections, ).filter((f) => f.connectionId.id.sqlEquals($_itemColumn('id')!)); - final cache = $_typedResult.readTableOrNull( - _profileConnectionsRefsTable($_db), - ); - return ProcessedTableManager( - manager.$state.copyWith(prefetchedData: cache), - ); + final cache = $_typedResult.readTableOrNull(_profileConnectionsRefsTable($_db)); + return ProcessedTableManager(manager.$state.copyWith(prefetchedData: cache)); } } -class $$ConnectionsTableFilterComposer - extends Composer<_$AppDatabase, $ConnectionsTable> { +class $$ConnectionsTableFilterComposer extends Composer<_$AppDatabase, $ConnectionsTable> { $$ConnectionsTableFilterComposer({ required super.$db, required super.$table, @@ -7154,69 +5792,45 @@ class $$ConnectionsTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get kind => $composableBuilder( - column: $table.kind, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get kind => $composableBuilder(column: $table.kind, builder: (column) => ColumnFilters(column)); - ColumnFilters get displayName => $composableBuilder( - column: $table.displayName, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get displayName => + $composableBuilder(column: $table.displayName, builder: (column) => ColumnFilters(column)); - ColumnFilters get configJson => $composableBuilder( - column: $table.configJson, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get configJson => + $composableBuilder(column: $table.configJson, builder: (column) => ColumnFilters(column)); - ColumnFilters get isDefault => $composableBuilder( - column: $table.isDefault, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get isDefault => + $composableBuilder(column: $table.isDefault, builder: (column) => ColumnFilters(column)); - ColumnFilters get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get lastAuthenticatedAt => $composableBuilder( - column: $table.lastAuthenticatedAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get lastAuthenticatedAt => + $composableBuilder(column: $table.lastAuthenticatedAt, builder: (column) => ColumnFilters(column)); - Expression profileConnectionsRefs( - Expression Function($$ProfileConnectionsTableFilterComposer f) f, - ) { + Expression profileConnectionsRefs(Expression Function($$ProfileConnectionsTableFilterComposer f) f) { final $$ProfileConnectionsTableFilterComposer composer = $composerBuilder( composer: this, getCurrentColumn: (t) => t.id, referencedTable: $db.profileConnections, getReferencedColumn: (t) => t.connectionId, - builder: - ( - joinBuilder, { - $addJoinBuilderToRootComposer, - $removeJoinBuilderFromRootComposer, - }) => $$ProfileConnectionsTableFilterComposer( + builder: (joinBuilder, {$addJoinBuilderToRootComposer, $removeJoinBuilderFromRootComposer}) => + $$ProfileConnectionsTableFilterComposer( $db: $db, $table: $db.profileConnections, $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, joinBuilder: joinBuilder, - $removeJoinBuilderFromRootComposer: - $removeJoinBuilderFromRootComposer, + $removeJoinBuilderFromRootComposer: $removeJoinBuilderFromRootComposer, ), ); return f(composer); } } -class $$ConnectionsTableOrderingComposer - extends Composer<_$AppDatabase, $ConnectionsTable> { +class $$ConnectionsTableOrderingComposer extends Composer<_$AppDatabase, $ConnectionsTable> { $$ConnectionsTableOrderingComposer({ required super.$db, required super.$table, @@ -7224,44 +5838,28 @@ class $$ConnectionsTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get kind => $composableBuilder( - column: $table.kind, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get kind => + $composableBuilder(column: $table.kind, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get displayName => $composableBuilder( - column: $table.displayName, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get displayName => + $composableBuilder(column: $table.displayName, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get configJson => $composableBuilder( - column: $table.configJson, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get configJson => + $composableBuilder(column: $table.configJson, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get isDefault => $composableBuilder( - column: $table.isDefault, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get isDefault => + $composableBuilder(column: $table.isDefault, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get lastAuthenticatedAt => $composableBuilder( - column: $table.lastAuthenticatedAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get lastAuthenticatedAt => + $composableBuilder(column: $table.lastAuthenticatedAt, builder: (column) => ColumnOrderings(column)); } -class $$ConnectionsTableAnnotationComposer - extends Composer<_$AppDatabase, $ConnectionsTable> { +class $$ConnectionsTableAnnotationComposer extends Composer<_$AppDatabase, $ConnectionsTable> { $$ConnectionsTableAnnotationComposer({ required super.$db, required super.$table, @@ -7269,56 +5867,39 @@ class $$ConnectionsTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get id => - $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get kind => - $composableBuilder(column: $table.kind, builder: (column) => column); + GeneratedColumn get kind => $composableBuilder(column: $table.kind, builder: (column) => column); - GeneratedColumn get displayName => $composableBuilder( - column: $table.displayName, - builder: (column) => column, - ); + GeneratedColumn get displayName => + $composableBuilder(column: $table.displayName, builder: (column) => column); - GeneratedColumn get configJson => $composableBuilder( - column: $table.configJson, - builder: (column) => column, - ); + GeneratedColumn get configJson => $composableBuilder(column: $table.configJson, builder: (column) => column); - GeneratedColumn get isDefault => - $composableBuilder(column: $table.isDefault, builder: (column) => column); + GeneratedColumn get isDefault => $composableBuilder(column: $table.isDefault, builder: (column) => column); - GeneratedColumn get createdAt => - $composableBuilder(column: $table.createdAt, builder: (column) => column); + GeneratedColumn get createdAt => $composableBuilder(column: $table.createdAt, builder: (column) => column); - GeneratedColumn get lastAuthenticatedAt => $composableBuilder( - column: $table.lastAuthenticatedAt, - builder: (column) => column, - ); + GeneratedColumn get lastAuthenticatedAt => + $composableBuilder(column: $table.lastAuthenticatedAt, builder: (column) => column); Expression profileConnectionsRefs( Expression Function($$ProfileConnectionsTableAnnotationComposer a) f, ) { - final $$ProfileConnectionsTableAnnotationComposer composer = - $composerBuilder( - composer: this, - getCurrentColumn: (t) => t.id, - referencedTable: $db.profileConnections, - getReferencedColumn: (t) => t.connectionId, - builder: - ( - joinBuilder, { - $addJoinBuilderToRootComposer, - $removeJoinBuilderFromRootComposer, - }) => $$ProfileConnectionsTableAnnotationComposer( - $db: $db, - $table: $db.profileConnections, - $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, - joinBuilder: joinBuilder, - $removeJoinBuilderFromRootComposer: - $removeJoinBuilderFromRootComposer, - ), - ); + final $$ProfileConnectionsTableAnnotationComposer composer = $composerBuilder( + composer: this, + getCurrentColumn: (t) => t.id, + referencedTable: $db.profileConnections, + getReferencedColumn: (t) => t.connectionId, + builder: (joinBuilder, {$addJoinBuilderToRootComposer, $removeJoinBuilderFromRootComposer}) => + $$ProfileConnectionsTableAnnotationComposer( + $db: $db, + $table: $db.profileConnections, + $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, + joinBuilder: joinBuilder, + $removeJoinBuilderFromRootComposer: $removeJoinBuilderFromRootComposer, + ), + ); return f(composer); } } @@ -7343,12 +5924,9 @@ class $$ConnectionsTableTableManager TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$ConnectionsTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$ConnectionsTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$ConnectionsTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$ConnectionsTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$ConnectionsTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$ConnectionsTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), @@ -7389,42 +5967,23 @@ class $$ConnectionsTableTableManager lastAuthenticatedAt: lastAuthenticatedAt, rowid: rowid, ), - withReferenceMapper: (p0) => p0 - .map( - (e) => ( - e.readTable(table), - $$ConnectionsTableReferences(db, table, e), - ), - ) - .toList(), + withReferenceMapper: (p0) => + p0.map((e) => (e.readTable(table), $$ConnectionsTableReferences(db, table, e))).toList(), prefetchHooksCallback: ({profileConnectionsRefs = false}) { return PrefetchHooks( db: db, - explicitlyWatchedTables: [ - if (profileConnectionsRefs) db.profileConnections, - ], + explicitlyWatchedTables: [if (profileConnectionsRefs) db.profileConnections], addJoins: null, getPrefetchedDataCallback: (items) async { return [ if (profileConnectionsRefs) - await $_getPrefetchedData< - ConnectionRow, - $ConnectionsTable, - ProfileConnectionRow - >( + await $_getPrefetchedData( currentTable: table, - referencedTable: $$ConnectionsTableReferences - ._profileConnectionsRefsTable(db), + referencedTable: $$ConnectionsTableReferences._profileConnectionsRefsTable(db), managerFromTypedResult: (p0) => - $$ConnectionsTableReferences( - db, - table, - p0, - ).profileConnectionsRefs, + $$ConnectionsTableReferences(db, table, p0).profileConnectionsRefs, referencedItemsForCurrentItem: (item, referencedItems) => - referencedItems.where( - (e) => e.connectionId == item.id, - ), + referencedItems.where((e) => e.connectionId == item.id), typedResults: items, ), ]; @@ -7474,8 +6033,7 @@ typedef $$ProfilesTableUpdateCompanionBuilder = Value rowid, }); -class $$ProfilesTableFilterComposer - extends Composer<_$AppDatabase, $ProfilesTable> { +class $$ProfilesTableFilterComposer extends Composer<_$AppDatabase, $ProfilesTable> { $$ProfilesTableFilterComposer({ required super.$db, required super.$table, @@ -7483,49 +6041,30 @@ class $$ProfilesTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get kind => $composableBuilder( - column: $table.kind, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get kind => $composableBuilder(column: $table.kind, builder: (column) => ColumnFilters(column)); - ColumnFilters get displayName => $composableBuilder( - column: $table.displayName, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get displayName => + $composableBuilder(column: $table.displayName, builder: (column) => ColumnFilters(column)); - ColumnFilters get avatarThumbUrl => $composableBuilder( - column: $table.avatarThumbUrl, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get avatarThumbUrl => + $composableBuilder(column: $table.avatarThumbUrl, builder: (column) => ColumnFilters(column)); - ColumnFilters get configJson => $composableBuilder( - column: $table.configJson, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get configJson => + $composableBuilder(column: $table.configJson, builder: (column) => ColumnFilters(column)); - ColumnFilters get sortOrder => $composableBuilder( - column: $table.sortOrder, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get sortOrder => + $composableBuilder(column: $table.sortOrder, builder: (column) => ColumnFilters(column)); - ColumnFilters get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get lastUsedAt => $composableBuilder( - column: $table.lastUsedAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get lastUsedAt => + $composableBuilder(column: $table.lastUsedAt, builder: (column) => ColumnFilters(column)); } -class $$ProfilesTableOrderingComposer - extends Composer<_$AppDatabase, $ProfilesTable> { +class $$ProfilesTableOrderingComposer extends Composer<_$AppDatabase, $ProfilesTable> { $$ProfilesTableOrderingComposer({ required super.$db, required super.$table, @@ -7533,49 +6072,31 @@ class $$ProfilesTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get id => $composableBuilder( - column: $table.id, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get kind => $composableBuilder( - column: $table.kind, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get kind => + $composableBuilder(column: $table.kind, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get displayName => $composableBuilder( - column: $table.displayName, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get displayName => + $composableBuilder(column: $table.displayName, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get avatarThumbUrl => $composableBuilder( - column: $table.avatarThumbUrl, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get avatarThumbUrl => + $composableBuilder(column: $table.avatarThumbUrl, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get configJson => $composableBuilder( - column: $table.configJson, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get configJson => + $composableBuilder(column: $table.configJson, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get sortOrder => $composableBuilder( - column: $table.sortOrder, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get sortOrder => + $composableBuilder(column: $table.sortOrder, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get createdAt => + $composableBuilder(column: $table.createdAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get lastUsedAt => $composableBuilder( - column: $table.lastUsedAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get lastUsedAt => + $composableBuilder(column: $table.lastUsedAt, builder: (column) => ColumnOrderings(column)); } -class $$ProfilesTableAnnotationComposer - extends Composer<_$AppDatabase, $ProfilesTable> { +class $$ProfilesTableAnnotationComposer extends Composer<_$AppDatabase, $ProfilesTable> { $$ProfilesTableAnnotationComposer({ required super.$db, required super.$table, @@ -7583,37 +6104,23 @@ class $$ProfilesTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get id => - $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get kind => - $composableBuilder(column: $table.kind, builder: (column) => column); + GeneratedColumn get kind => $composableBuilder(column: $table.kind, builder: (column) => column); - GeneratedColumn get displayName => $composableBuilder( - column: $table.displayName, - builder: (column) => column, - ); + GeneratedColumn get displayName => + $composableBuilder(column: $table.displayName, builder: (column) => column); - GeneratedColumn get avatarThumbUrl => $composableBuilder( - column: $table.avatarThumbUrl, - builder: (column) => column, - ); + GeneratedColumn get avatarThumbUrl => + $composableBuilder(column: $table.avatarThumbUrl, builder: (column) => column); - GeneratedColumn get configJson => $composableBuilder( - column: $table.configJson, - builder: (column) => column, - ); + GeneratedColumn get configJson => $composableBuilder(column: $table.configJson, builder: (column) => column); - GeneratedColumn get sortOrder => - $composableBuilder(column: $table.sortOrder, builder: (column) => column); + GeneratedColumn get sortOrder => $composableBuilder(column: $table.sortOrder, builder: (column) => column); - GeneratedColumn get createdAt => - $composableBuilder(column: $table.createdAt, builder: (column) => column); + GeneratedColumn get createdAt => $composableBuilder(column: $table.createdAt, builder: (column) => column); - GeneratedColumn get lastUsedAt => $composableBuilder( - column: $table.lastUsedAt, - builder: (column) => column, - ); + GeneratedColumn get lastUsedAt => $composableBuilder(column: $table.lastUsedAt, builder: (column) => column); } class $$ProfilesTableTableManager @@ -7627,10 +6134,7 @@ class $$ProfilesTableTableManager $$ProfilesTableAnnotationComposer, $$ProfilesTableCreateCompanionBuilder, $$ProfilesTableUpdateCompanionBuilder, - ( - ProfileRow, - BaseReferences<_$AppDatabase, $ProfilesTable, ProfileRow>, - ), + (ProfileRow, BaseReferences<_$AppDatabase, $ProfilesTable, ProfileRow>), ProfileRow, PrefetchHooks Function() > { @@ -7639,12 +6143,9 @@ class $$ProfilesTableTableManager TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$ProfilesTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$ProfilesTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$ProfilesTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$ProfilesTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$ProfilesTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$ProfilesTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), @@ -7689,9 +6190,7 @@ class $$ProfilesTableTableManager lastUsedAt: lastUsedAt, rowid: rowid, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, ), ); @@ -7735,43 +6234,23 @@ typedef $$ProfileConnectionsTableUpdateCompanionBuilder = }); final class $$ProfileConnectionsTableReferences - extends - BaseReferences< - _$AppDatabase, - $ProfileConnectionsTable, - ProfileConnectionRow - > { - $$ProfileConnectionsTableReferences( - super.$_db, - super.$_table, - super.$_typedResult, - ); + extends BaseReferences<_$AppDatabase, $ProfileConnectionsTable, ProfileConnectionRow> { + $$ProfileConnectionsTableReferences(super.$_db, super.$_table, super.$_typedResult); static $ConnectionsTable _connectionIdTable(_$AppDatabase db) => - db.connections.createAlias( - $_aliasNameGenerator( - db.profileConnections.connectionId, - db.connections.id, - ), - ); + db.connections.createAlias($_aliasNameGenerator(db.profileConnections.connectionId, db.connections.id)); $$ConnectionsTableProcessedTableManager get connectionId { final $_column = $_itemColumn('connection_id')!; - final manager = $$ConnectionsTableTableManager( - $_db, - $_db.connections, - ).filter((f) => f.id.sqlEquals($_column)); + final manager = $$ConnectionsTableTableManager($_db, $_db.connections).filter((f) => f.id.sqlEquals($_column)); final item = $_typedResult.readTableOrNull(_connectionIdTable($_db)); if (item == null) return manager; - return ProcessedTableManager( - manager.$state.copyWith(prefetchedData: [item]), - ); + return ProcessedTableManager(manager.$state.copyWith(prefetchedData: [item])); } } -class $$ProfileConnectionsTableFilterComposer - extends Composer<_$AppDatabase, $ProfileConnectionsTable> { +class $$ProfileConnectionsTableFilterComposer extends Composer<_$AppDatabase, $ProfileConnectionsTable> { $$ProfileConnectionsTableFilterComposer({ required super.$db, required super.$table, @@ -7779,35 +6258,23 @@ class $$ProfileConnectionsTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get profileId => $composableBuilder( - column: $table.profileId, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get profileId => + $composableBuilder(column: $table.profileId, builder: (column) => ColumnFilters(column)); - ColumnFilters get userToken => $composableBuilder( - column: $table.userToken, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get userToken => + $composableBuilder(column: $table.userToken, builder: (column) => ColumnFilters(column)); - ColumnFilters get userIdentifier => $composableBuilder( - column: $table.userIdentifier, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get userIdentifier => + $composableBuilder(column: $table.userIdentifier, builder: (column) => ColumnFilters(column)); - ColumnFilters get isDefault => $composableBuilder( - column: $table.isDefault, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get isDefault => + $composableBuilder(column: $table.isDefault, builder: (column) => ColumnFilters(column)); - ColumnFilters get tokenAcquiredAt => $composableBuilder( - column: $table.tokenAcquiredAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get tokenAcquiredAt => + $composableBuilder(column: $table.tokenAcquiredAt, builder: (column) => ColumnFilters(column)); - ColumnFilters get lastUsedAt => $composableBuilder( - column: $table.lastUsedAt, - builder: (column) => ColumnFilters(column), - ); + ColumnFilters get lastUsedAt => + $composableBuilder(column: $table.lastUsedAt, builder: (column) => ColumnFilters(column)); $$ConnectionsTableFilterComposer get connectionId { final $$ConnectionsTableFilterComposer composer = $composerBuilder( @@ -7815,26 +6282,20 @@ class $$ProfileConnectionsTableFilterComposer getCurrentColumn: (t) => t.connectionId, referencedTable: $db.connections, getReferencedColumn: (t) => t.id, - builder: - ( - joinBuilder, { - $addJoinBuilderToRootComposer, - $removeJoinBuilderFromRootComposer, - }) => $$ConnectionsTableFilterComposer( + builder: (joinBuilder, {$addJoinBuilderToRootComposer, $removeJoinBuilderFromRootComposer}) => + $$ConnectionsTableFilterComposer( $db: $db, $table: $db.connections, $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, joinBuilder: joinBuilder, - $removeJoinBuilderFromRootComposer: - $removeJoinBuilderFromRootComposer, + $removeJoinBuilderFromRootComposer: $removeJoinBuilderFromRootComposer, ), ); return composer; } } -class $$ProfileConnectionsTableOrderingComposer - extends Composer<_$AppDatabase, $ProfileConnectionsTable> { +class $$ProfileConnectionsTableOrderingComposer extends Composer<_$AppDatabase, $ProfileConnectionsTable> { $$ProfileConnectionsTableOrderingComposer({ required super.$db, required super.$table, @@ -7842,35 +6303,23 @@ class $$ProfileConnectionsTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get profileId => $composableBuilder( - column: $table.profileId, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get profileId => + $composableBuilder(column: $table.profileId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get userToken => $composableBuilder( - column: $table.userToken, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get userToken => + $composableBuilder(column: $table.userToken, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get userIdentifier => $composableBuilder( - column: $table.userIdentifier, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get userIdentifier => + $composableBuilder(column: $table.userIdentifier, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get isDefault => $composableBuilder( - column: $table.isDefault, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get isDefault => + $composableBuilder(column: $table.isDefault, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get tokenAcquiredAt => $composableBuilder( - column: $table.tokenAcquiredAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get tokenAcquiredAt => + $composableBuilder(column: $table.tokenAcquiredAt, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get lastUsedAt => $composableBuilder( - column: $table.lastUsedAt, - builder: (column) => ColumnOrderings(column), - ); + ColumnOrderings get lastUsedAt => + $composableBuilder(column: $table.lastUsedAt, builder: (column) => ColumnOrderings(column)); $$ConnectionsTableOrderingComposer get connectionId { final $$ConnectionsTableOrderingComposer composer = $composerBuilder( @@ -7878,26 +6327,20 @@ class $$ProfileConnectionsTableOrderingComposer getCurrentColumn: (t) => t.connectionId, referencedTable: $db.connections, getReferencedColumn: (t) => t.id, - builder: - ( - joinBuilder, { - $addJoinBuilderToRootComposer, - $removeJoinBuilderFromRootComposer, - }) => $$ConnectionsTableOrderingComposer( + builder: (joinBuilder, {$addJoinBuilderToRootComposer, $removeJoinBuilderFromRootComposer}) => + $$ConnectionsTableOrderingComposer( $db: $db, $table: $db.connections, $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, joinBuilder: joinBuilder, - $removeJoinBuilderFromRootComposer: - $removeJoinBuilderFromRootComposer, + $removeJoinBuilderFromRootComposer: $removeJoinBuilderFromRootComposer, ), ); return composer; } } -class $$ProfileConnectionsTableAnnotationComposer - extends Composer<_$AppDatabase, $ProfileConnectionsTable> { +class $$ProfileConnectionsTableAnnotationComposer extends Composer<_$AppDatabase, $ProfileConnectionsTable> { $$ProfileConnectionsTableAnnotationComposer({ required super.$db, required super.$table, @@ -7905,29 +6348,19 @@ class $$ProfileConnectionsTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get profileId => - $composableBuilder(column: $table.profileId, builder: (column) => column); + GeneratedColumn get profileId => $composableBuilder(column: $table.profileId, builder: (column) => column); - GeneratedColumn get userToken => - $composableBuilder(column: $table.userToken, builder: (column) => column); + GeneratedColumn get userToken => $composableBuilder(column: $table.userToken, builder: (column) => column); - GeneratedColumn get userIdentifier => $composableBuilder( - column: $table.userIdentifier, - builder: (column) => column, - ); + GeneratedColumn get userIdentifier => + $composableBuilder(column: $table.userIdentifier, builder: (column) => column); - GeneratedColumn get isDefault => - $composableBuilder(column: $table.isDefault, builder: (column) => column); + GeneratedColumn get isDefault => $composableBuilder(column: $table.isDefault, builder: (column) => column); - GeneratedColumn get tokenAcquiredAt => $composableBuilder( - column: $table.tokenAcquiredAt, - builder: (column) => column, - ); + GeneratedColumn get tokenAcquiredAt => + $composableBuilder(column: $table.tokenAcquiredAt, builder: (column) => column); - GeneratedColumn get lastUsedAt => $composableBuilder( - column: $table.lastUsedAt, - builder: (column) => column, - ); + GeneratedColumn get lastUsedAt => $composableBuilder(column: $table.lastUsedAt, builder: (column) => column); $$ConnectionsTableAnnotationComposer get connectionId { final $$ConnectionsTableAnnotationComposer composer = $composerBuilder( @@ -7935,18 +6368,13 @@ class $$ProfileConnectionsTableAnnotationComposer getCurrentColumn: (t) => t.connectionId, referencedTable: $db.connections, getReferencedColumn: (t) => t.id, - builder: - ( - joinBuilder, { - $addJoinBuilderToRootComposer, - $removeJoinBuilderFromRootComposer, - }) => $$ConnectionsTableAnnotationComposer( + builder: (joinBuilder, {$addJoinBuilderToRootComposer, $removeJoinBuilderFromRootComposer}) => + $$ConnectionsTableAnnotationComposer( $db: $db, $table: $db.connections, $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, joinBuilder: joinBuilder, - $removeJoinBuilderFromRootComposer: - $removeJoinBuilderFromRootComposer, + $removeJoinBuilderFromRootComposer: $removeJoinBuilderFromRootComposer, ), ); return composer; @@ -7968,22 +6396,14 @@ class $$ProfileConnectionsTableTableManager ProfileConnectionRow, PrefetchHooks Function({bool connectionId}) > { - $$ProfileConnectionsTableTableManager( - _$AppDatabase db, - $ProfileConnectionsTable table, - ) : super( + $$ProfileConnectionsTableTableManager(_$AppDatabase db, $ProfileConnectionsTable table) + : super( TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$ProfileConnectionsTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$ProfileConnectionsTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$ProfileConnectionsTableAnnotationComposer( - $db: db, - $table: table, - ), + createFilteringComposer: () => $$ProfileConnectionsTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$ProfileConnectionsTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$ProfileConnectionsTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value profileId = const Value.absent(), @@ -8024,14 +6444,8 @@ class $$ProfileConnectionsTableTableManager lastUsedAt: lastUsedAt, rowid: rowid, ), - withReferenceMapper: (p0) => p0 - .map( - (e) => ( - e.readTable(table), - $$ProfileConnectionsTableReferences(db, table, e), - ), - ) - .toList(), + withReferenceMapper: (p0) => + p0.map((e) => (e.readTable(table), $$ProfileConnectionsTableReferences(db, table, e))).toList(), prefetchHooksCallback: ({connectionId = false}) { return PrefetchHooks( db: db, @@ -8057,13 +6471,8 @@ class $$ProfileConnectionsTableTableManager state.withJoin( currentTable: table, currentColumn: table.connectionId, - referencedTable: - $$ProfileConnectionsTableReferences - ._connectionIdTable(db), - referencedColumn: - $$ProfileConnectionsTableReferences - ._connectionIdTable(db) - .id, + referencedTable: $$ProfileConnectionsTableReferences._connectionIdTable(db), + referencedColumn: $$ProfileConnectionsTableReferences._connectionIdTable(db).id, ) as T; } @@ -8099,20 +6508,14 @@ class $AppDatabaseManager { $AppDatabaseManager(this._db); $$DownloadedMediaTableTableManager get downloadedMedia => $$DownloadedMediaTableTableManager(_db, _db.downloadedMedia); - $$DownloadOwnersTableTableManager get downloadOwners => - $$DownloadOwnersTableTableManager(_db, _db.downloadOwners); - $$DownloadQueueTableTableManager get downloadQueue => - $$DownloadQueueTableTableManager(_db, _db.downloadQueue); - $$ApiCacheTableTableManager get apiCache => - $$ApiCacheTableTableManager(_db, _db.apiCache); + $$DownloadOwnersTableTableManager get downloadOwners => $$DownloadOwnersTableTableManager(_db, _db.downloadOwners); + $$DownloadQueueTableTableManager get downloadQueue => $$DownloadQueueTableTableManager(_db, _db.downloadQueue); + $$ApiCacheTableTableManager get apiCache => $$ApiCacheTableTableManager(_db, _db.apiCache); $$OfflineWatchProgressTableTableManager get offlineWatchProgress => $$OfflineWatchProgressTableTableManager(_db, _db.offlineWatchProgress); - $$SyncRulesTableTableManager get syncRules => - $$SyncRulesTableTableManager(_db, _db.syncRules); - $$ConnectionsTableTableManager get connections => - $$ConnectionsTableTableManager(_db, _db.connections); - $$ProfilesTableTableManager get profiles => - $$ProfilesTableTableManager(_db, _db.profiles); + $$SyncRulesTableTableManager get syncRules => $$SyncRulesTableTableManager(_db, _db.syncRules); + $$ConnectionsTableTableManager get connections => $$ConnectionsTableTableManager(_db, _db.connections); + $$ProfilesTableTableManager get profiles => $$ProfilesTableTableManager(_db, _db.profiles); $$ProfileConnectionsTableTableManager get profileConnections => $$ProfileConnectionsTableTableManager(_db, _db.profileConnections); }