// GENERATED CODE - DO NOT MODIFY BY HAND part of 'database.dart'; // ignore_for_file: type=lint class $AuthenticationTableTable extends AuthenticationTable with TableInfo<$AuthenticationTableTable, AuthenticationTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $AuthenticationTableTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _cookieMeta = const VerificationMeta('cookie'); @override late final GeneratedColumnWithTypeConverter cookie = GeneratedColumn('cookie', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter( $AuthenticationTableTable.$convertercookie); static const VerificationMeta _accessTokenMeta = const VerificationMeta('accessToken'); @override late final GeneratedColumnWithTypeConverter accessToken = GeneratedColumn('access_token', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter( $AuthenticationTableTable.$converteraccessToken); static const VerificationMeta _expirationMeta = const VerificationMeta('expiration'); @override late final GeneratedColumn expiration = GeneratedColumn( 'expiration', aliasedName, false, type: DriftSqlType.dateTime, requiredDuringInsert: true); @override List get $columns => [id, cookie, accessToken, expiration]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'authentication_table'; @override 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)); } context.handle(_cookieMeta, const VerificationResult.success()); context.handle(_accessTokenMeta, const VerificationResult.success()); if (data.containsKey('expiration')) { context.handle( _expirationMeta, expiration.isAcceptableOrUnknown( data['expiration']!, _expirationMeta)); } else if (isInserting) { context.missing(_expirationMeta); } return context; } @override Set get $primaryKey => {id}; @override AuthenticationTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return AuthenticationTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, cookie: $AuthenticationTableTable.$convertercookie.fromSql( attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}cookie'])!), accessToken: $AuthenticationTableTable.$converteraccessToken.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}access_token'])!), expiration: attachedDatabase.typeMapping .read(DriftSqlType.dateTime, data['${effectivePrefix}expiration'])!, ); } @override $AuthenticationTableTable createAlias(String alias) { return $AuthenticationTableTable(attachedDatabase, alias); } static TypeConverter $convertercookie = EncryptedTextConverter(); static TypeConverter $converteraccessToken = EncryptedTextConverter(); } class AuthenticationTableData extends DataClass implements Insertable { final int id; final DecryptedText cookie; final DecryptedText accessToken; final DateTime expiration; const AuthenticationTableData( {required this.id, required this.cookie, required this.accessToken, required this.expiration}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); { map['cookie'] = Variable( $AuthenticationTableTable.$convertercookie.toSql(cookie)); } { map['access_token'] = Variable( $AuthenticationTableTable.$converteraccessToken.toSql(accessToken)); } map['expiration'] = Variable(expiration); return map; } AuthenticationTableCompanion toCompanion(bool nullToAbsent) { return AuthenticationTableCompanion( id: Value(id), cookie: Value(cookie), accessToken: Value(accessToken), expiration: Value(expiration), ); } factory AuthenticationTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return AuthenticationTableData( id: serializer.fromJson(json['id']), cookie: serializer.fromJson(json['cookie']), accessToken: serializer.fromJson(json['accessToken']), expiration: serializer.fromJson(json['expiration']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'cookie': serializer.toJson(cookie), 'accessToken': serializer.toJson(accessToken), 'expiration': serializer.toJson(expiration), }; } AuthenticationTableData copyWith( {int? id, DecryptedText? cookie, DecryptedText? accessToken, DateTime? expiration}) => AuthenticationTableData( id: id ?? this.id, cookie: cookie ?? this.cookie, accessToken: accessToken ?? this.accessToken, expiration: expiration ?? this.expiration, ); AuthenticationTableData copyWithCompanion(AuthenticationTableCompanion data) { return AuthenticationTableData( id: data.id.present ? data.id.value : this.id, cookie: data.cookie.present ? data.cookie.value : this.cookie, accessToken: data.accessToken.present ? data.accessToken.value : this.accessToken, expiration: data.expiration.present ? data.expiration.value : this.expiration, ); } @override String toString() { return (StringBuffer('AuthenticationTableData(') ..write('id: $id, ') ..write('cookie: $cookie, ') ..write('accessToken: $accessToken, ') ..write('expiration: $expiration') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, cookie, accessToken, expiration); @override bool operator ==(Object other) => identical(this, other) || (other is AuthenticationTableData && other.id == this.id && other.cookie == this.cookie && other.accessToken == this.accessToken && other.expiration == this.expiration); } class AuthenticationTableCompanion extends UpdateCompanion { final Value id; final Value cookie; final Value accessToken; final Value expiration; const AuthenticationTableCompanion({ this.id = const Value.absent(), this.cookie = const Value.absent(), this.accessToken = const Value.absent(), this.expiration = const Value.absent(), }); AuthenticationTableCompanion.insert({ this.id = const Value.absent(), required DecryptedText cookie, required DecryptedText accessToken, required DateTime expiration, }) : cookie = Value(cookie), accessToken = Value(accessToken), expiration = Value(expiration); static Insertable custom({ Expression? id, Expression? cookie, Expression? accessToken, Expression? expiration, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (cookie != null) 'cookie': cookie, if (accessToken != null) 'access_token': accessToken, if (expiration != null) 'expiration': expiration, }); } AuthenticationTableCompanion copyWith( {Value? id, Value? cookie, Value? accessToken, Value? expiration}) { return AuthenticationTableCompanion( id: id ?? this.id, cookie: cookie ?? this.cookie, accessToken: accessToken ?? this.accessToken, expiration: expiration ?? this.expiration, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (cookie.present) { map['cookie'] = Variable( $AuthenticationTableTable.$convertercookie.toSql(cookie.value)); } if (accessToken.present) { map['access_token'] = Variable($AuthenticationTableTable .$converteraccessToken .toSql(accessToken.value)); } if (expiration.present) { map['expiration'] = Variable(expiration.value); } return map; } @override String toString() { return (StringBuffer('AuthenticationTableCompanion(') ..write('id: $id, ') ..write('cookie: $cookie, ') ..write('accessToken: $accessToken, ') ..write('expiration: $expiration') ..write(')')) .toString(); } } class $BlacklistTableTable extends BlacklistTable with TableInfo<$BlacklistTableTable, BlacklistTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $BlacklistTableTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _nameMeta = const VerificationMeta('name'); @override late final GeneratedColumn name = GeneratedColumn( 'name', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _elementTypeMeta = const VerificationMeta('elementType'); @override late final GeneratedColumnWithTypeConverter elementType = GeneratedColumn('element_type', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter( $BlacklistTableTable.$converterelementType); static const VerificationMeta _elementIdMeta = const VerificationMeta('elementId'); @override late final GeneratedColumn elementId = GeneratedColumn( 'element_id', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); @override List get $columns => [id, name, elementType, elementId]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'blacklist_table'; @override 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('name')) { context.handle( _nameMeta, name.isAcceptableOrUnknown(data['name']!, _nameMeta)); } else if (isInserting) { context.missing(_nameMeta); } context.handle(_elementTypeMeta, const VerificationResult.success()); if (data.containsKey('element_id')) { context.handle(_elementIdMeta, elementId.isAcceptableOrUnknown(data['element_id']!, _elementIdMeta)); } else if (isInserting) { context.missing(_elementIdMeta); } return context; } @override Set get $primaryKey => {id}; @override BlacklistTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return BlacklistTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, name: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}name'])!, elementType: $BlacklistTableTable.$converterelementType.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}element_type'])!), elementId: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}element_id'])!, ); } @override $BlacklistTableTable createAlias(String alias) { return $BlacklistTableTable(attachedDatabase, alias); } static JsonTypeConverter2 $converterelementType = const EnumNameConverter(BlacklistedType.values); } class BlacklistTableData extends DataClass implements Insertable { final int id; final String name; final BlacklistedType elementType; final String elementId; const BlacklistTableData( {required this.id, required this.name, required this.elementType, required this.elementId}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['name'] = Variable(name); { map['element_type'] = Variable( $BlacklistTableTable.$converterelementType.toSql(elementType)); } map['element_id'] = Variable(elementId); return map; } BlacklistTableCompanion toCompanion(bool nullToAbsent) { return BlacklistTableCompanion( id: Value(id), name: Value(name), elementType: Value(elementType), elementId: Value(elementId), ); } factory BlacklistTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return BlacklistTableData( id: serializer.fromJson(json['id']), name: serializer.fromJson(json['name']), elementType: $BlacklistTableTable.$converterelementType .fromJson(serializer.fromJson(json['elementType'])), elementId: serializer.fromJson(json['elementId']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'name': serializer.toJson(name), 'elementType': serializer.toJson( $BlacklistTableTable.$converterelementType.toJson(elementType)), 'elementId': serializer.toJson(elementId), }; } BlacklistTableData copyWith( {int? id, String? name, BlacklistedType? elementType, String? elementId}) => BlacklistTableData( id: id ?? this.id, name: name ?? this.name, elementType: elementType ?? this.elementType, elementId: elementId ?? this.elementId, ); BlacklistTableData copyWithCompanion(BlacklistTableCompanion data) { return BlacklistTableData( id: data.id.present ? data.id.value : this.id, name: data.name.present ? data.name.value : this.name, elementType: data.elementType.present ? data.elementType.value : this.elementType, elementId: data.elementId.present ? data.elementId.value : this.elementId, ); } @override String toString() { return (StringBuffer('BlacklistTableData(') ..write('id: $id, ') ..write('name: $name, ') ..write('elementType: $elementType, ') ..write('elementId: $elementId') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, name, elementType, elementId); @override bool operator ==(Object other) => identical(this, other) || (other is BlacklistTableData && other.id == this.id && other.name == this.name && other.elementType == this.elementType && other.elementId == this.elementId); } class BlacklistTableCompanion extends UpdateCompanion { final Value id; final Value name; final Value elementType; final Value elementId; const BlacklistTableCompanion({ this.id = const Value.absent(), this.name = const Value.absent(), this.elementType = const Value.absent(), this.elementId = const Value.absent(), }); BlacklistTableCompanion.insert({ this.id = const Value.absent(), required String name, required BlacklistedType elementType, required String elementId, }) : name = Value(name), elementType = Value(elementType), elementId = Value(elementId); static Insertable custom({ Expression? id, Expression? name, Expression? elementType, Expression? elementId, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (name != null) 'name': name, if (elementType != null) 'element_type': elementType, if (elementId != null) 'element_id': elementId, }); } BlacklistTableCompanion copyWith( {Value? id, Value? name, Value? elementType, Value? elementId}) { return BlacklistTableCompanion( id: id ?? this.id, name: name ?? this.name, elementType: elementType ?? this.elementType, elementId: elementId ?? this.elementId, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (name.present) { map['name'] = Variable(name.value); } if (elementType.present) { map['element_type'] = Variable( $BlacklistTableTable.$converterelementType.toSql(elementType.value)); } if (elementId.present) { map['element_id'] = Variable(elementId.value); } return map; } @override String toString() { return (StringBuffer('BlacklistTableCompanion(') ..write('id: $id, ') ..write('name: $name, ') ..write('elementType: $elementType, ') ..write('elementId: $elementId') ..write(')')) .toString(); } } class $PreferencesTableTable extends PreferencesTable with TableInfo<$PreferencesTableTable, PreferencesTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $PreferencesTableTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _audioQualityMeta = const VerificationMeta('audioQuality'); @override late final GeneratedColumnWithTypeConverter audioQuality = GeneratedColumn( 'audio_quality', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(SourceQualities.high.name)) .withConverter( $PreferencesTableTable.$converteraudioQuality); static const VerificationMeta _albumColorSyncMeta = const VerificationMeta('albumColorSync'); @override late final GeneratedColumn albumColorSync = GeneratedColumn( 'album_color_sync', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("album_color_sync" IN (0, 1))'), defaultValue: const Constant(true)); static const VerificationMeta _amoledDarkThemeMeta = const VerificationMeta('amoledDarkTheme'); @override late final GeneratedColumn amoledDarkTheme = GeneratedColumn( 'amoled_dark_theme', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("amoled_dark_theme" IN (0, 1))'), defaultValue: const Constant(false)); static const VerificationMeta _checkUpdateMeta = const VerificationMeta('checkUpdate'); @override late final GeneratedColumn checkUpdate = GeneratedColumn( 'check_update', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("check_update" IN (0, 1))'), defaultValue: const Constant(true)); static const VerificationMeta _normalizeAudioMeta = const VerificationMeta('normalizeAudio'); @override late final GeneratedColumn normalizeAudio = GeneratedColumn( 'normalize_audio', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("normalize_audio" IN (0, 1))'), defaultValue: const Constant(false)); static const VerificationMeta _showSystemTrayIconMeta = const VerificationMeta('showSystemTrayIcon'); @override late final GeneratedColumn showSystemTrayIcon = GeneratedColumn( 'show_system_tray_icon', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("show_system_tray_icon" IN (0, 1))'), defaultValue: const Constant(false)); static const VerificationMeta _systemTitleBarMeta = const VerificationMeta('systemTitleBar'); @override late final GeneratedColumn systemTitleBar = GeneratedColumn( 'system_title_bar', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("system_title_bar" IN (0, 1))'), defaultValue: const Constant(false)); static const VerificationMeta _skipNonMusicMeta = const VerificationMeta('skipNonMusic'); @override late final GeneratedColumn skipNonMusic = GeneratedColumn( 'skip_non_music', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("skip_non_music" IN (0, 1))'), defaultValue: const Constant(false)); static const VerificationMeta _closeBehaviorMeta = const VerificationMeta('closeBehavior'); @override late final GeneratedColumnWithTypeConverter closeBehavior = GeneratedColumn( 'close_behavior', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(CloseBehavior.close.name)) .withConverter( $PreferencesTableTable.$convertercloseBehavior); static const VerificationMeta _accentColorSchemeMeta = const VerificationMeta('accentColorScheme'); @override late final GeneratedColumnWithTypeConverter accentColorScheme = GeneratedColumn( 'accent_color_scheme', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: const Constant('Blue:0xFF2196F3')) .withConverter( $PreferencesTableTable.$converteraccentColorScheme); static const VerificationMeta _layoutModeMeta = const VerificationMeta('layoutMode'); @override late final GeneratedColumnWithTypeConverter layoutMode = GeneratedColumn('layout_mode', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(LayoutMode.adaptive.name)) .withConverter( $PreferencesTableTable.$converterlayoutMode); static const VerificationMeta _localeMeta = const VerificationMeta('locale'); @override late final GeneratedColumnWithTypeConverter locale = GeneratedColumn('locale', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: const Constant( '{"languageCode":"system","countryCode":"system"}')) .withConverter($PreferencesTableTable.$converterlocale); static const VerificationMeta _marketMeta = const VerificationMeta('market'); @override late final GeneratedColumnWithTypeConverter market = GeneratedColumn('market', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(Market.US.name)) .withConverter($PreferencesTableTable.$convertermarket); static const VerificationMeta _searchModeMeta = const VerificationMeta('searchMode'); @override late final GeneratedColumnWithTypeConverter searchMode = GeneratedColumn('search_mode', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(SearchMode.youtube.name)) .withConverter( $PreferencesTableTable.$convertersearchMode); static const VerificationMeta _downloadLocationMeta = const VerificationMeta('downloadLocation'); @override late final GeneratedColumn downloadLocation = GeneratedColumn( 'download_location', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: const Constant('')); static const VerificationMeta _localLibraryLocationMeta = const VerificationMeta('localLibraryLocation'); @override late final GeneratedColumnWithTypeConverter, String> localLibraryLocation = GeneratedColumn( 'local_library_location', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: const Constant('')) .withConverter>( $PreferencesTableTable.$converterlocalLibraryLocation); static const VerificationMeta _pipedInstanceMeta = const VerificationMeta('pipedInstance'); @override late final GeneratedColumn pipedInstance = GeneratedColumn( 'piped_instance', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: const Constant('https://pipedapi.kavin.rocks')); static const VerificationMeta _themeModeMeta = const VerificationMeta('themeMode'); @override late final GeneratedColumnWithTypeConverter themeMode = GeneratedColumn('theme_mode', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(ThemeMode.system.name)) .withConverter($PreferencesTableTable.$converterthemeMode); static const VerificationMeta _audioSourceMeta = const VerificationMeta('audioSource'); @override late final GeneratedColumnWithTypeConverter audioSource = GeneratedColumn('audio_source', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(AudioSource.youtube.name)) .withConverter( $PreferencesTableTable.$converteraudioSource); static const VerificationMeta _streamMusicCodecMeta = const VerificationMeta('streamMusicCodec'); @override late final GeneratedColumnWithTypeConverter streamMusicCodec = GeneratedColumn( 'stream_music_codec', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(SourceCodecs.weba.name)) .withConverter( $PreferencesTableTable.$converterstreamMusicCodec); static const VerificationMeta _downloadMusicCodecMeta = const VerificationMeta('downloadMusicCodec'); @override late final GeneratedColumnWithTypeConverter downloadMusicCodec = GeneratedColumn( 'download_music_codec', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(SourceCodecs.m4a.name)) .withConverter( $PreferencesTableTable.$converterdownloadMusicCodec); static const VerificationMeta _discordPresenceMeta = const VerificationMeta('discordPresence'); @override late final GeneratedColumn discordPresence = GeneratedColumn( 'discord_presence', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("discord_presence" IN (0, 1))'), defaultValue: const Constant(true)); static const VerificationMeta _endlessPlaybackMeta = const VerificationMeta('endlessPlayback'); @override late final GeneratedColumn endlessPlayback = GeneratedColumn( 'endless_playback', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("endless_playback" IN (0, 1))'), defaultValue: const Constant(true)); static const VerificationMeta _enableConnectMeta = const VerificationMeta('enableConnect'); @override late final GeneratedColumn enableConnect = GeneratedColumn( 'enable_connect', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways( 'CHECK ("enable_connect" IN (0, 1))'), defaultValue: const Constant(false)); @override List get $columns => [ id, audioQuality, albumColorSync, amoledDarkTheme, checkUpdate, normalizeAudio, showSystemTrayIcon, systemTitleBar, skipNonMusic, closeBehavior, accentColorScheme, layoutMode, locale, market, searchMode, downloadLocation, localLibraryLocation, pipedInstance, themeMode, audioSource, streamMusicCodec, downloadMusicCodec, discordPresence, endlessPlayback, enableConnect ]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'preferences_table'; @override 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)); } context.handle(_audioQualityMeta, const VerificationResult.success()); if (data.containsKey('album_color_sync')) { context.handle( _albumColorSyncMeta, albumColorSync.isAcceptableOrUnknown( data['album_color_sync']!, _albumColorSyncMeta)); } if (data.containsKey('amoled_dark_theme')) { context.handle( _amoledDarkThemeMeta, amoledDarkTheme.isAcceptableOrUnknown( data['amoled_dark_theme']!, _amoledDarkThemeMeta)); } if (data.containsKey('check_update')) { context.handle( _checkUpdateMeta, checkUpdate.isAcceptableOrUnknown( data['check_update']!, _checkUpdateMeta)); } if (data.containsKey('normalize_audio')) { context.handle( _normalizeAudioMeta, normalizeAudio.isAcceptableOrUnknown( data['normalize_audio']!, _normalizeAudioMeta)); } if (data.containsKey('show_system_tray_icon')) { context.handle( _showSystemTrayIconMeta, showSystemTrayIcon.isAcceptableOrUnknown( data['show_system_tray_icon']!, _showSystemTrayIconMeta)); } if (data.containsKey('system_title_bar')) { context.handle( _systemTitleBarMeta, systemTitleBar.isAcceptableOrUnknown( data['system_title_bar']!, _systemTitleBarMeta)); } if (data.containsKey('skip_non_music')) { context.handle( _skipNonMusicMeta, skipNonMusic.isAcceptableOrUnknown( data['skip_non_music']!, _skipNonMusicMeta)); } context.handle(_closeBehaviorMeta, const VerificationResult.success()); context.handle(_accentColorSchemeMeta, const VerificationResult.success()); context.handle(_layoutModeMeta, const VerificationResult.success()); context.handle(_localeMeta, const VerificationResult.success()); context.handle(_marketMeta, const VerificationResult.success()); context.handle(_searchModeMeta, const VerificationResult.success()); if (data.containsKey('download_location')) { context.handle( _downloadLocationMeta, downloadLocation.isAcceptableOrUnknown( data['download_location']!, _downloadLocationMeta)); } context.handle( _localLibraryLocationMeta, const VerificationResult.success()); if (data.containsKey('piped_instance')) { context.handle( _pipedInstanceMeta, pipedInstance.isAcceptableOrUnknown( data['piped_instance']!, _pipedInstanceMeta)); } context.handle(_themeModeMeta, const VerificationResult.success()); context.handle(_audioSourceMeta, const VerificationResult.success()); context.handle(_streamMusicCodecMeta, const VerificationResult.success()); context.handle(_downloadMusicCodecMeta, const VerificationResult.success()); if (data.containsKey('discord_presence')) { context.handle( _discordPresenceMeta, discordPresence.isAcceptableOrUnknown( data['discord_presence']!, _discordPresenceMeta)); } if (data.containsKey('endless_playback')) { context.handle( _endlessPlaybackMeta, endlessPlayback.isAcceptableOrUnknown( data['endless_playback']!, _endlessPlaybackMeta)); } if (data.containsKey('enable_connect')) { context.handle( _enableConnectMeta, enableConnect.isAcceptableOrUnknown( data['enable_connect']!, _enableConnectMeta)); } return context; } @override Set get $primaryKey => {id}; @override PreferencesTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return PreferencesTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, audioQuality: $PreferencesTableTable.$converteraudioQuality.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}audio_quality'])!), albumColorSync: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}album_color_sync'])!, amoledDarkTheme: attachedDatabase.typeMapping.read( DriftSqlType.bool, data['${effectivePrefix}amoled_dark_theme'])!, checkUpdate: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}check_update'])!, normalizeAudio: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}normalize_audio'])!, showSystemTrayIcon: attachedDatabase.typeMapping.read( DriftSqlType.bool, data['${effectivePrefix}show_system_tray_icon'])!, systemTitleBar: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}system_title_bar'])!, skipNonMusic: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}skip_non_music'])!, closeBehavior: $PreferencesTableTable.$convertercloseBehavior.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}close_behavior'])!), accentColorScheme: $PreferencesTableTable.$converteraccentColorScheme .fromSql(attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}accent_color_scheme'])!), layoutMode: $PreferencesTableTable.$converterlayoutMode.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}layout_mode'])!), locale: $PreferencesTableTable.$converterlocale.fromSql(attachedDatabase .typeMapping .read(DriftSqlType.string, data['${effectivePrefix}locale'])!), market: $PreferencesTableTable.$convertermarket.fromSql(attachedDatabase .typeMapping .read(DriftSqlType.string, data['${effectivePrefix}market'])!), searchMode: $PreferencesTableTable.$convertersearchMode.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}search_mode'])!), downloadLocation: attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}download_location'])!, localLibraryLocation: $PreferencesTableTable .$converterlocalLibraryLocation .fromSql(attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}local_library_location'])!), pipedInstance: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}piped_instance'])!, themeMode: $PreferencesTableTable.$converterthemeMode.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}theme_mode'])!), audioSource: $PreferencesTableTable.$converteraudioSource.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}audio_source'])!), streamMusicCodec: $PreferencesTableTable.$converterstreamMusicCodec .fromSql(attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}stream_music_codec'])!), downloadMusicCodec: $PreferencesTableTable.$converterdownloadMusicCodec .fromSql(attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}download_music_codec'])!), discordPresence: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}discord_presence'])!, endlessPlayback: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}endless_playback'])!, enableConnect: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}enable_connect'])!, ); } @override $PreferencesTableTable createAlias(String alias) { return $PreferencesTableTable(attachedDatabase, alias); } static JsonTypeConverter2 $converteraudioQuality = const EnumNameConverter(SourceQualities.values); static JsonTypeConverter2 $convertercloseBehavior = const EnumNameConverter(CloseBehavior.values); static TypeConverter $converteraccentColorScheme = const RhythmColorConverter(); static JsonTypeConverter2 $converterlayoutMode = const EnumNameConverter(LayoutMode.values); static TypeConverter $converterlocale = const LocaleConverter(); static JsonTypeConverter2 $convertermarket = const EnumNameConverter(Market.values); static JsonTypeConverter2 $convertersearchMode = const EnumNameConverter(SearchMode.values); static TypeConverter, String> $converterlocalLibraryLocation = const StringListConverter(); static JsonTypeConverter2 $converterthemeMode = const EnumNameConverter(ThemeMode.values); static JsonTypeConverter2 $converteraudioSource = const EnumNameConverter(AudioSource.values); static JsonTypeConverter2 $converterstreamMusicCodec = const EnumNameConverter(SourceCodecs.values); static JsonTypeConverter2 $converterdownloadMusicCodec = const EnumNameConverter(SourceCodecs.values); } class PreferencesTableData extends DataClass implements Insertable { final int id; final SourceQualities audioQuality; final bool albumColorSync; final bool amoledDarkTheme; final bool checkUpdate; final bool normalizeAudio; final bool showSystemTrayIcon; final bool systemTitleBar; final bool skipNonMusic; final CloseBehavior closeBehavior; final RhythmColor accentColorScheme; final LayoutMode layoutMode; final Locale locale; final Market market; final SearchMode searchMode; final String downloadLocation; final List localLibraryLocation; final String pipedInstance; final ThemeMode themeMode; final AudioSource audioSource; final SourceCodecs streamMusicCodec; final SourceCodecs downloadMusicCodec; final bool discordPresence; final bool endlessPlayback; final bool enableConnect; const PreferencesTableData( {required this.id, required this.audioQuality, required this.albumColorSync, required this.amoledDarkTheme, required this.checkUpdate, required this.normalizeAudio, required this.showSystemTrayIcon, required this.systemTitleBar, required this.skipNonMusic, required this.closeBehavior, required this.accentColorScheme, required this.layoutMode, required this.locale, required this.market, required this.searchMode, required this.downloadLocation, required this.localLibraryLocation, required this.pipedInstance, required this.themeMode, required this.audioSource, required this.streamMusicCodec, required this.downloadMusicCodec, required this.discordPresence, required this.endlessPlayback, required this.enableConnect}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); { map['audio_quality'] = Variable( $PreferencesTableTable.$converteraudioQuality.toSql(audioQuality)); } map['album_color_sync'] = Variable(albumColorSync); map['amoled_dark_theme'] = Variable(amoledDarkTheme); map['check_update'] = Variable(checkUpdate); map['normalize_audio'] = Variable(normalizeAudio); map['show_system_tray_icon'] = Variable(showSystemTrayIcon); map['system_title_bar'] = Variable(systemTitleBar); map['skip_non_music'] = Variable(skipNonMusic); { map['close_behavior'] = Variable( $PreferencesTableTable.$convertercloseBehavior.toSql(closeBehavior)); } { map['accent_color_scheme'] = Variable($PreferencesTableTable .$converteraccentColorScheme .toSql(accentColorScheme)); } { map['layout_mode'] = Variable( $PreferencesTableTable.$converterlayoutMode.toSql(layoutMode)); } { map['locale'] = Variable( $PreferencesTableTable.$converterlocale.toSql(locale)); } { map['market'] = Variable( $PreferencesTableTable.$convertermarket.toSql(market)); } { map['search_mode'] = Variable( $PreferencesTableTable.$convertersearchMode.toSql(searchMode)); } map['download_location'] = Variable(downloadLocation); { map['local_library_location'] = Variable($PreferencesTableTable .$converterlocalLibraryLocation .toSql(localLibraryLocation)); } map['piped_instance'] = Variable(pipedInstance); { map['theme_mode'] = Variable( $PreferencesTableTable.$converterthemeMode.toSql(themeMode)); } { map['audio_source'] = Variable( $PreferencesTableTable.$converteraudioSource.toSql(audioSource)); } { map['stream_music_codec'] = Variable($PreferencesTableTable .$converterstreamMusicCodec .toSql(streamMusicCodec)); } { map['download_music_codec'] = Variable($PreferencesTableTable .$converterdownloadMusicCodec .toSql(downloadMusicCodec)); } map['discord_presence'] = Variable(discordPresence); map['endless_playback'] = Variable(endlessPlayback); map['enable_connect'] = Variable(enableConnect); return map; } PreferencesTableCompanion toCompanion(bool nullToAbsent) { return PreferencesTableCompanion( id: Value(id), audioQuality: Value(audioQuality), albumColorSync: Value(albumColorSync), amoledDarkTheme: Value(amoledDarkTheme), checkUpdate: Value(checkUpdate), normalizeAudio: Value(normalizeAudio), showSystemTrayIcon: Value(showSystemTrayIcon), systemTitleBar: Value(systemTitleBar), skipNonMusic: Value(skipNonMusic), closeBehavior: Value(closeBehavior), accentColorScheme: Value(accentColorScheme), layoutMode: Value(layoutMode), locale: Value(locale), market: Value(market), searchMode: Value(searchMode), downloadLocation: Value(downloadLocation), localLibraryLocation: Value(localLibraryLocation), pipedInstance: Value(pipedInstance), themeMode: Value(themeMode), audioSource: Value(audioSource), streamMusicCodec: Value(streamMusicCodec), downloadMusicCodec: Value(downloadMusicCodec), discordPresence: Value(discordPresence), endlessPlayback: Value(endlessPlayback), enableConnect: Value(enableConnect), ); } factory PreferencesTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return PreferencesTableData( id: serializer.fromJson(json['id']), audioQuality: $PreferencesTableTable.$converteraudioQuality .fromJson(serializer.fromJson(json['audioQuality'])), albumColorSync: serializer.fromJson(json['albumColorSync']), amoledDarkTheme: serializer.fromJson(json['amoledDarkTheme']), checkUpdate: serializer.fromJson(json['checkUpdate']), normalizeAudio: serializer.fromJson(json['normalizeAudio']), showSystemTrayIcon: serializer.fromJson(json['showSystemTrayIcon']), systemTitleBar: serializer.fromJson(json['systemTitleBar']), skipNonMusic: serializer.fromJson(json['skipNonMusic']), closeBehavior: $PreferencesTableTable.$convertercloseBehavior .fromJson(serializer.fromJson(json['closeBehavior'])), accentColorScheme: serializer.fromJson(json['accentColorScheme']), layoutMode: $PreferencesTableTable.$converterlayoutMode .fromJson(serializer.fromJson(json['layoutMode'])), locale: serializer.fromJson(json['locale']), market: $PreferencesTableTable.$convertermarket .fromJson(serializer.fromJson(json['market'])), searchMode: $PreferencesTableTable.$convertersearchMode .fromJson(serializer.fromJson(json['searchMode'])), downloadLocation: serializer.fromJson(json['downloadLocation']), localLibraryLocation: serializer.fromJson>(json['localLibraryLocation']), pipedInstance: serializer.fromJson(json['pipedInstance']), themeMode: $PreferencesTableTable.$converterthemeMode .fromJson(serializer.fromJson(json['themeMode'])), audioSource: $PreferencesTableTable.$converteraudioSource .fromJson(serializer.fromJson(json['audioSource'])), streamMusicCodec: $PreferencesTableTable.$converterstreamMusicCodec .fromJson(serializer.fromJson(json['streamMusicCodec'])), downloadMusicCodec: $PreferencesTableTable.$converterdownloadMusicCodec .fromJson(serializer.fromJson(json['downloadMusicCodec'])), discordPresence: serializer.fromJson(json['discordPresence']), endlessPlayback: serializer.fromJson(json['endlessPlayback']), enableConnect: serializer.fromJson(json['enableConnect']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'audioQuality': serializer.toJson( $PreferencesTableTable.$converteraudioQuality.toJson(audioQuality)), 'albumColorSync': serializer.toJson(albumColorSync), 'amoledDarkTheme': serializer.toJson(amoledDarkTheme), 'checkUpdate': serializer.toJson(checkUpdate), 'normalizeAudio': serializer.toJson(normalizeAudio), 'showSystemTrayIcon': serializer.toJson(showSystemTrayIcon), 'systemTitleBar': serializer.toJson(systemTitleBar), 'skipNonMusic': serializer.toJson(skipNonMusic), 'closeBehavior': serializer.toJson( $PreferencesTableTable.$convertercloseBehavior.toJson(closeBehavior)), 'accentColorScheme': serializer.toJson(accentColorScheme), 'layoutMode': serializer.toJson( $PreferencesTableTable.$converterlayoutMode.toJson(layoutMode)), 'locale': serializer.toJson(locale), 'market': serializer.toJson( $PreferencesTableTable.$convertermarket.toJson(market)), 'searchMode': serializer.toJson( $PreferencesTableTable.$convertersearchMode.toJson(searchMode)), 'downloadLocation': serializer.toJson(downloadLocation), 'localLibraryLocation': serializer.toJson>(localLibraryLocation), 'pipedInstance': serializer.toJson(pipedInstance), 'themeMode': serializer.toJson( $PreferencesTableTable.$converterthemeMode.toJson(themeMode)), 'audioSource': serializer.toJson( $PreferencesTableTable.$converteraudioSource.toJson(audioSource)), 'streamMusicCodec': serializer.toJson($PreferencesTableTable .$converterstreamMusicCodec .toJson(streamMusicCodec)), 'downloadMusicCodec': serializer.toJson($PreferencesTableTable .$converterdownloadMusicCodec .toJson(downloadMusicCodec)), 'discordPresence': serializer.toJson(discordPresence), 'endlessPlayback': serializer.toJson(endlessPlayback), 'enableConnect': serializer.toJson(enableConnect), }; } PreferencesTableData copyWith( {int? id, SourceQualities? audioQuality, bool? albumColorSync, bool? amoledDarkTheme, bool? checkUpdate, bool? normalizeAudio, bool? showSystemTrayIcon, bool? systemTitleBar, bool? skipNonMusic, CloseBehavior? closeBehavior, RhythmColor? accentColorScheme, LayoutMode? layoutMode, Locale? locale, Market? market, SearchMode? searchMode, String? downloadLocation, List? localLibraryLocation, String? pipedInstance, ThemeMode? themeMode, AudioSource? audioSource, SourceCodecs? streamMusicCodec, SourceCodecs? downloadMusicCodec, bool? discordPresence, bool? endlessPlayback, bool? enableConnect}) => PreferencesTableData( id: id ?? this.id, audioQuality: audioQuality ?? this.audioQuality, albumColorSync: albumColorSync ?? this.albumColorSync, amoledDarkTheme: amoledDarkTheme ?? this.amoledDarkTheme, checkUpdate: checkUpdate ?? this.checkUpdate, normalizeAudio: normalizeAudio ?? this.normalizeAudio, showSystemTrayIcon: showSystemTrayIcon ?? this.showSystemTrayIcon, systemTitleBar: systemTitleBar ?? this.systemTitleBar, skipNonMusic: skipNonMusic ?? this.skipNonMusic, closeBehavior: closeBehavior ?? this.closeBehavior, accentColorScheme: accentColorScheme ?? this.accentColorScheme, layoutMode: layoutMode ?? this.layoutMode, locale: locale ?? this.locale, market: market ?? this.market, searchMode: searchMode ?? this.searchMode, downloadLocation: downloadLocation ?? this.downloadLocation, localLibraryLocation: localLibraryLocation ?? this.localLibraryLocation, pipedInstance: pipedInstance ?? this.pipedInstance, themeMode: themeMode ?? this.themeMode, audioSource: audioSource ?? this.audioSource, streamMusicCodec: streamMusicCodec ?? this.streamMusicCodec, downloadMusicCodec: downloadMusicCodec ?? this.downloadMusicCodec, discordPresence: discordPresence ?? this.discordPresence, endlessPlayback: endlessPlayback ?? this.endlessPlayback, enableConnect: enableConnect ?? this.enableConnect, ); PreferencesTableData copyWithCompanion(PreferencesTableCompanion data) { return PreferencesTableData( id: data.id.present ? data.id.value : this.id, audioQuality: data.audioQuality.present ? data.audioQuality.value : this.audioQuality, albumColorSync: data.albumColorSync.present ? data.albumColorSync.value : this.albumColorSync, amoledDarkTheme: data.amoledDarkTheme.present ? data.amoledDarkTheme.value : this.amoledDarkTheme, checkUpdate: data.checkUpdate.present ? data.checkUpdate.value : this.checkUpdate, normalizeAudio: data.normalizeAudio.present ? data.normalizeAudio.value : this.normalizeAudio, showSystemTrayIcon: data.showSystemTrayIcon.present ? data.showSystemTrayIcon.value : this.showSystemTrayIcon, systemTitleBar: data.systemTitleBar.present ? data.systemTitleBar.value : this.systemTitleBar, skipNonMusic: data.skipNonMusic.present ? data.skipNonMusic.value : this.skipNonMusic, closeBehavior: data.closeBehavior.present ? data.closeBehavior.value : this.closeBehavior, accentColorScheme: data.accentColorScheme.present ? data.accentColorScheme.value : this.accentColorScheme, layoutMode: data.layoutMode.present ? data.layoutMode.value : this.layoutMode, locale: data.locale.present ? data.locale.value : this.locale, market: data.market.present ? data.market.value : this.market, searchMode: data.searchMode.present ? data.searchMode.value : this.searchMode, downloadLocation: data.downloadLocation.present ? data.downloadLocation.value : this.downloadLocation, localLibraryLocation: data.localLibraryLocation.present ? data.localLibraryLocation.value : this.localLibraryLocation, pipedInstance: data.pipedInstance.present ? data.pipedInstance.value : this.pipedInstance, themeMode: data.themeMode.present ? data.themeMode.value : this.themeMode, audioSource: data.audioSource.present ? data.audioSource.value : this.audioSource, streamMusicCodec: data.streamMusicCodec.present ? data.streamMusicCodec.value : this.streamMusicCodec, downloadMusicCodec: data.downloadMusicCodec.present ? data.downloadMusicCodec.value : this.downloadMusicCodec, discordPresence: data.discordPresence.present ? data.discordPresence.value : this.discordPresence, endlessPlayback: data.endlessPlayback.present ? data.endlessPlayback.value : this.endlessPlayback, enableConnect: data.enableConnect.present ? data.enableConnect.value : this.enableConnect, ); } @override String toString() { return (StringBuffer('PreferencesTableData(') ..write('id: $id, ') ..write('audioQuality: $audioQuality, ') ..write('albumColorSync: $albumColorSync, ') ..write('amoledDarkTheme: $amoledDarkTheme, ') ..write('checkUpdate: $checkUpdate, ') ..write('normalizeAudio: $normalizeAudio, ') ..write('showSystemTrayIcon: $showSystemTrayIcon, ') ..write('systemTitleBar: $systemTitleBar, ') ..write('skipNonMusic: $skipNonMusic, ') ..write('closeBehavior: $closeBehavior, ') ..write('accentColorScheme: $accentColorScheme, ') ..write('layoutMode: $layoutMode, ') ..write('locale: $locale, ') ..write('market: $market, ') ..write('searchMode: $searchMode, ') ..write('downloadLocation: $downloadLocation, ') ..write('localLibraryLocation: $localLibraryLocation, ') ..write('pipedInstance: $pipedInstance, ') ..write('themeMode: $themeMode, ') ..write('audioSource: $audioSource, ') ..write('streamMusicCodec: $streamMusicCodec, ') ..write('downloadMusicCodec: $downloadMusicCodec, ') ..write('discordPresence: $discordPresence, ') ..write('endlessPlayback: $endlessPlayback, ') ..write('enableConnect: $enableConnect') ..write(')')) .toString(); } @override int get hashCode => Object.hashAll([ id, audioQuality, albumColorSync, amoledDarkTheme, checkUpdate, normalizeAudio, showSystemTrayIcon, systemTitleBar, skipNonMusic, closeBehavior, accentColorScheme, layoutMode, locale, market, searchMode, downloadLocation, localLibraryLocation, pipedInstance, themeMode, audioSource, streamMusicCodec, downloadMusicCodec, discordPresence, endlessPlayback, enableConnect ]); @override bool operator ==(Object other) => identical(this, other) || (other is PreferencesTableData && other.id == this.id && other.audioQuality == this.audioQuality && other.albumColorSync == this.albumColorSync && other.amoledDarkTheme == this.amoledDarkTheme && other.checkUpdate == this.checkUpdate && other.normalizeAudio == this.normalizeAudio && other.showSystemTrayIcon == this.showSystemTrayIcon && other.systemTitleBar == this.systemTitleBar && other.skipNonMusic == this.skipNonMusic && other.closeBehavior == this.closeBehavior && other.accentColorScheme == this.accentColorScheme && other.layoutMode == this.layoutMode && other.locale == this.locale && other.market == this.market && other.searchMode == this.searchMode && other.downloadLocation == this.downloadLocation && other.localLibraryLocation == this.localLibraryLocation && other.pipedInstance == this.pipedInstance && other.themeMode == this.themeMode && other.audioSource == this.audioSource && other.streamMusicCodec == this.streamMusicCodec && other.downloadMusicCodec == this.downloadMusicCodec && other.discordPresence == this.discordPresence && other.endlessPlayback == this.endlessPlayback && other.enableConnect == this.enableConnect); } class PreferencesTableCompanion extends UpdateCompanion { final Value id; final Value audioQuality; final Value albumColorSync; final Value amoledDarkTheme; final Value checkUpdate; final Value normalizeAudio; final Value showSystemTrayIcon; final Value systemTitleBar; final Value skipNonMusic; final Value closeBehavior; final Value accentColorScheme; final Value layoutMode; final Value locale; final Value market; final Value searchMode; final Value downloadLocation; final Value> localLibraryLocation; final Value pipedInstance; final Value themeMode; final Value audioSource; final Value streamMusicCodec; final Value downloadMusicCodec; final Value discordPresence; final Value endlessPlayback; final Value enableConnect; const PreferencesTableCompanion({ this.id = const Value.absent(), this.audioQuality = const Value.absent(), this.albumColorSync = const Value.absent(), this.amoledDarkTheme = const Value.absent(), this.checkUpdate = const Value.absent(), this.normalizeAudio = const Value.absent(), this.showSystemTrayIcon = const Value.absent(), this.systemTitleBar = const Value.absent(), this.skipNonMusic = const Value.absent(), this.closeBehavior = const Value.absent(), this.accentColorScheme = const Value.absent(), this.layoutMode = const Value.absent(), this.locale = const Value.absent(), this.market = const Value.absent(), this.searchMode = const Value.absent(), this.downloadLocation = const Value.absent(), this.localLibraryLocation = const Value.absent(), this.pipedInstance = const Value.absent(), this.themeMode = const Value.absent(), this.audioSource = const Value.absent(), this.streamMusicCodec = const Value.absent(), this.downloadMusicCodec = const Value.absent(), this.discordPresence = const Value.absent(), this.endlessPlayback = const Value.absent(), this.enableConnect = const Value.absent(), }); PreferencesTableCompanion.insert({ this.id = const Value.absent(), this.audioQuality = const Value.absent(), this.albumColorSync = const Value.absent(), this.amoledDarkTheme = const Value.absent(), this.checkUpdate = const Value.absent(), this.normalizeAudio = const Value.absent(), this.showSystemTrayIcon = const Value.absent(), this.systemTitleBar = const Value.absent(), this.skipNonMusic = const Value.absent(), this.closeBehavior = const Value.absent(), this.accentColorScheme = const Value.absent(), this.layoutMode = const Value.absent(), this.locale = const Value.absent(), this.market = const Value.absent(), this.searchMode = const Value.absent(), this.downloadLocation = const Value.absent(), this.localLibraryLocation = const Value.absent(), this.pipedInstance = const Value.absent(), this.themeMode = const Value.absent(), this.audioSource = const Value.absent(), this.streamMusicCodec = const Value.absent(), this.downloadMusicCodec = const Value.absent(), this.discordPresence = const Value.absent(), this.endlessPlayback = const Value.absent(), this.enableConnect = const Value.absent(), }); static Insertable custom({ Expression? id, Expression? audioQuality, Expression? albumColorSync, Expression? amoledDarkTheme, Expression? checkUpdate, Expression? normalizeAudio, Expression? showSystemTrayIcon, Expression? systemTitleBar, Expression? skipNonMusic, Expression? closeBehavior, Expression? accentColorScheme, Expression? layoutMode, Expression? locale, Expression? market, Expression? searchMode, Expression? downloadLocation, Expression? localLibraryLocation, Expression? pipedInstance, Expression? themeMode, Expression? audioSource, Expression? streamMusicCodec, Expression? downloadMusicCodec, Expression? discordPresence, Expression? endlessPlayback, Expression? enableConnect, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (audioQuality != null) 'audio_quality': audioQuality, if (albumColorSync != null) 'album_color_sync': albumColorSync, if (amoledDarkTheme != null) 'amoled_dark_theme': amoledDarkTheme, if (checkUpdate != null) 'check_update': checkUpdate, if (normalizeAudio != null) 'normalize_audio': normalizeAudio, if (showSystemTrayIcon != null) 'show_system_tray_icon': showSystemTrayIcon, if (systemTitleBar != null) 'system_title_bar': systemTitleBar, if (skipNonMusic != null) 'skip_non_music': skipNonMusic, if (closeBehavior != null) 'close_behavior': closeBehavior, if (accentColorScheme != null) 'accent_color_scheme': accentColorScheme, if (layoutMode != null) 'layout_mode': layoutMode, if (locale != null) 'locale': locale, if (market != null) 'market': market, if (searchMode != null) 'search_mode': searchMode, if (downloadLocation != null) 'download_location': downloadLocation, if (localLibraryLocation != null) 'local_library_location': localLibraryLocation, if (pipedInstance != null) 'piped_instance': pipedInstance, if (themeMode != null) 'theme_mode': themeMode, if (audioSource != null) 'audio_source': audioSource, if (streamMusicCodec != null) 'stream_music_codec': streamMusicCodec, if (downloadMusicCodec != null) 'download_music_codec': downloadMusicCodec, if (discordPresence != null) 'discord_presence': discordPresence, if (endlessPlayback != null) 'endless_playback': endlessPlayback, if (enableConnect != null) 'enable_connect': enableConnect, }); } PreferencesTableCompanion copyWith( {Value? id, Value? audioQuality, Value? albumColorSync, Value? amoledDarkTheme, Value? checkUpdate, Value? normalizeAudio, Value? showSystemTrayIcon, Value? systemTitleBar, Value? skipNonMusic, Value? closeBehavior, Value? accentColorScheme, Value? layoutMode, Value? locale, Value? market, Value? searchMode, Value? downloadLocation, Value>? localLibraryLocation, Value? pipedInstance, Value? themeMode, Value? audioSource, Value? streamMusicCodec, Value? downloadMusicCodec, Value? discordPresence, Value? endlessPlayback, Value? enableConnect}) { return PreferencesTableCompanion( id: id ?? this.id, audioQuality: audioQuality ?? this.audioQuality, albumColorSync: albumColorSync ?? this.albumColorSync, amoledDarkTheme: amoledDarkTheme ?? this.amoledDarkTheme, checkUpdate: checkUpdate ?? this.checkUpdate, normalizeAudio: normalizeAudio ?? this.normalizeAudio, showSystemTrayIcon: showSystemTrayIcon ?? this.showSystemTrayIcon, systemTitleBar: systemTitleBar ?? this.systemTitleBar, skipNonMusic: skipNonMusic ?? this.skipNonMusic, closeBehavior: closeBehavior ?? this.closeBehavior, accentColorScheme: accentColorScheme ?? this.accentColorScheme, layoutMode: layoutMode ?? this.layoutMode, locale: locale ?? this.locale, market: market ?? this.market, searchMode: searchMode ?? this.searchMode, downloadLocation: downloadLocation ?? this.downloadLocation, localLibraryLocation: localLibraryLocation ?? this.localLibraryLocation, pipedInstance: pipedInstance ?? this.pipedInstance, themeMode: themeMode ?? this.themeMode, audioSource: audioSource ?? this.audioSource, streamMusicCodec: streamMusicCodec ?? this.streamMusicCodec, downloadMusicCodec: downloadMusicCodec ?? this.downloadMusicCodec, discordPresence: discordPresence ?? this.discordPresence, endlessPlayback: endlessPlayback ?? this.endlessPlayback, enableConnect: enableConnect ?? this.enableConnect, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (audioQuality.present) { map['audio_quality'] = Variable($PreferencesTableTable .$converteraudioQuality .toSql(audioQuality.value)); } if (albumColorSync.present) { map['album_color_sync'] = Variable(albumColorSync.value); } if (amoledDarkTheme.present) { map['amoled_dark_theme'] = Variable(amoledDarkTheme.value); } if (checkUpdate.present) { map['check_update'] = Variable(checkUpdate.value); } if (normalizeAudio.present) { map['normalize_audio'] = Variable(normalizeAudio.value); } if (showSystemTrayIcon.present) { map['show_system_tray_icon'] = Variable(showSystemTrayIcon.value); } if (systemTitleBar.present) { map['system_title_bar'] = Variable(systemTitleBar.value); } if (skipNonMusic.present) { map['skip_non_music'] = Variable(skipNonMusic.value); } if (closeBehavior.present) { map['close_behavior'] = Variable($PreferencesTableTable .$convertercloseBehavior .toSql(closeBehavior.value)); } if (accentColorScheme.present) { map['accent_color_scheme'] = Variable($PreferencesTableTable .$converteraccentColorScheme .toSql(accentColorScheme.value)); } if (layoutMode.present) { map['layout_mode'] = Variable( $PreferencesTableTable.$converterlayoutMode.toSql(layoutMode.value)); } if (locale.present) { map['locale'] = Variable( $PreferencesTableTable.$converterlocale.toSql(locale.value)); } if (market.present) { map['market'] = Variable( $PreferencesTableTable.$convertermarket.toSql(market.value)); } if (searchMode.present) { map['search_mode'] = Variable( $PreferencesTableTable.$convertersearchMode.toSql(searchMode.value)); } if (downloadLocation.present) { map['download_location'] = Variable(downloadLocation.value); } if (localLibraryLocation.present) { map['local_library_location'] = Variable($PreferencesTableTable .$converterlocalLibraryLocation .toSql(localLibraryLocation.value)); } if (pipedInstance.present) { map['piped_instance'] = Variable(pipedInstance.value); } if (themeMode.present) { map['theme_mode'] = Variable( $PreferencesTableTable.$converterthemeMode.toSql(themeMode.value)); } if (audioSource.present) { map['audio_source'] = Variable($PreferencesTableTable .$converteraudioSource .toSql(audioSource.value)); } if (streamMusicCodec.present) { map['stream_music_codec'] = Variable($PreferencesTableTable .$converterstreamMusicCodec .toSql(streamMusicCodec.value)); } if (downloadMusicCodec.present) { map['download_music_codec'] = Variable($PreferencesTableTable .$converterdownloadMusicCodec .toSql(downloadMusicCodec.value)); } if (discordPresence.present) { map['discord_presence'] = Variable(discordPresence.value); } if (endlessPlayback.present) { map['endless_playback'] = Variable(endlessPlayback.value); } if (enableConnect.present) { map['enable_connect'] = Variable(enableConnect.value); } return map; } @override String toString() { return (StringBuffer('PreferencesTableCompanion(') ..write('id: $id, ') ..write('audioQuality: $audioQuality, ') ..write('albumColorSync: $albumColorSync, ') ..write('amoledDarkTheme: $amoledDarkTheme, ') ..write('checkUpdate: $checkUpdate, ') ..write('normalizeAudio: $normalizeAudio, ') ..write('showSystemTrayIcon: $showSystemTrayIcon, ') ..write('systemTitleBar: $systemTitleBar, ') ..write('skipNonMusic: $skipNonMusic, ') ..write('closeBehavior: $closeBehavior, ') ..write('accentColorScheme: $accentColorScheme, ') ..write('layoutMode: $layoutMode, ') ..write('locale: $locale, ') ..write('market: $market, ') ..write('searchMode: $searchMode, ') ..write('downloadLocation: $downloadLocation, ') ..write('localLibraryLocation: $localLibraryLocation, ') ..write('pipedInstance: $pipedInstance, ') ..write('themeMode: $themeMode, ') ..write('audioSource: $audioSource, ') ..write('streamMusicCodec: $streamMusicCodec, ') ..write('downloadMusicCodec: $downloadMusicCodec, ') ..write('discordPresence: $discordPresence, ') ..write('endlessPlayback: $endlessPlayback, ') ..write('enableConnect: $enableConnect') ..write(')')) .toString(); } } class $ScrobblerTableTable extends ScrobblerTable with TableInfo<$ScrobblerTableTable, ScrobblerTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $ScrobblerTableTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', aliasedName, false, type: DriftSqlType.dateTime, requiredDuringInsert: false, defaultValue: currentDateAndTime); static const VerificationMeta _usernameMeta = const VerificationMeta('username'); @override late final GeneratedColumn username = GeneratedColumn( 'username', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _passwordHashMeta = const VerificationMeta('passwordHash'); @override late final GeneratedColumnWithTypeConverter passwordHash = GeneratedColumn( 'password_hash', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter( $ScrobblerTableTable.$converterpasswordHash); @override List get $columns => [id, createdAt, username, passwordHash]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'scrobbler_table'; @override 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('created_at')) { context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } if (data.containsKey('username')) { context.handle(_usernameMeta, username.isAcceptableOrUnknown(data['username']!, _usernameMeta)); } else if (isInserting) { context.missing(_usernameMeta); } context.handle(_passwordHashMeta, const VerificationResult.success()); return context; } @override Set get $primaryKey => {id}; @override ScrobblerTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return ScrobblerTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, createdAt: attachedDatabase.typeMapping .read(DriftSqlType.dateTime, data['${effectivePrefix}created_at'])!, username: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}username'])!, passwordHash: $ScrobblerTableTable.$converterpasswordHash.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}password_hash'])!), ); } @override $ScrobblerTableTable createAlias(String alias) { return $ScrobblerTableTable(attachedDatabase, alias); } static TypeConverter $converterpasswordHash = EncryptedTextConverter(); } class ScrobblerTableData extends DataClass implements Insertable { final int id; final DateTime createdAt; final String username; final DecryptedText passwordHash; const ScrobblerTableData( {required this.id, required this.createdAt, required this.username, required this.passwordHash}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['created_at'] = Variable(createdAt); map['username'] = Variable(username); { map['password_hash'] = Variable( $ScrobblerTableTable.$converterpasswordHash.toSql(passwordHash)); } return map; } ScrobblerTableCompanion toCompanion(bool nullToAbsent) { return ScrobblerTableCompanion( id: Value(id), createdAt: Value(createdAt), username: Value(username), passwordHash: Value(passwordHash), ); } factory ScrobblerTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return ScrobblerTableData( id: serializer.fromJson(json['id']), createdAt: serializer.fromJson(json['createdAt']), username: serializer.fromJson(json['username']), passwordHash: serializer.fromJson(json['passwordHash']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'createdAt': serializer.toJson(createdAt), 'username': serializer.toJson(username), 'passwordHash': serializer.toJson(passwordHash), }; } ScrobblerTableData copyWith( {int? id, DateTime? createdAt, String? username, DecryptedText? passwordHash}) => ScrobblerTableData( id: id ?? this.id, createdAt: createdAt ?? this.createdAt, username: username ?? this.username, passwordHash: passwordHash ?? this.passwordHash, ); ScrobblerTableData copyWithCompanion(ScrobblerTableCompanion data) { return ScrobblerTableData( id: data.id.present ? data.id.value : this.id, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, username: data.username.present ? data.username.value : this.username, passwordHash: data.passwordHash.present ? data.passwordHash.value : this.passwordHash, ); } @override String toString() { return (StringBuffer('ScrobblerTableData(') ..write('id: $id, ') ..write('createdAt: $createdAt, ') ..write('username: $username, ') ..write('passwordHash: $passwordHash') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, createdAt, username, passwordHash); @override bool operator ==(Object other) => identical(this, other) || (other is ScrobblerTableData && other.id == this.id && other.createdAt == this.createdAt && other.username == this.username && other.passwordHash == this.passwordHash); } class ScrobblerTableCompanion extends UpdateCompanion { final Value id; final Value createdAt; final Value username; final Value passwordHash; const ScrobblerTableCompanion({ this.id = const Value.absent(), this.createdAt = const Value.absent(), this.username = const Value.absent(), this.passwordHash = const Value.absent(), }); ScrobblerTableCompanion.insert({ this.id = const Value.absent(), this.createdAt = const Value.absent(), required String username, required DecryptedText passwordHash, }) : username = Value(username), passwordHash = Value(passwordHash); static Insertable custom({ Expression? id, Expression? createdAt, Expression? username, Expression? passwordHash, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (createdAt != null) 'created_at': createdAt, if (username != null) 'username': username, if (passwordHash != null) 'password_hash': passwordHash, }); } ScrobblerTableCompanion copyWith( {Value? id, Value? createdAt, Value? username, Value? passwordHash}) { return ScrobblerTableCompanion( id: id ?? this.id, createdAt: createdAt ?? this.createdAt, username: username ?? this.username, passwordHash: passwordHash ?? this.passwordHash, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (createdAt.present) { map['created_at'] = Variable(createdAt.value); } if (username.present) { map['username'] = Variable(username.value); } if (passwordHash.present) { map['password_hash'] = Variable($ScrobblerTableTable .$converterpasswordHash .toSql(passwordHash.value)); } return map; } @override String toString() { return (StringBuffer('ScrobblerTableCompanion(') ..write('id: $id, ') ..write('createdAt: $createdAt, ') ..write('username: $username, ') ..write('passwordHash: $passwordHash') ..write(')')) .toString(); } } class $SkipSegmentTableTable extends SkipSegmentTable with TableInfo<$SkipSegmentTableTable, SkipSegmentTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $SkipSegmentTableTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _startMeta = const VerificationMeta('start'); @override late final GeneratedColumn start = GeneratedColumn( 'start', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true); static const VerificationMeta _endMeta = const VerificationMeta('end'); @override late final GeneratedColumn end = GeneratedColumn( 'end', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true); static const VerificationMeta _trackIdMeta = const VerificationMeta('trackId'); @override late final GeneratedColumn trackId = GeneratedColumn( 'track_id', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', aliasedName, false, type: DriftSqlType.dateTime, requiredDuringInsert: false, defaultValue: currentDateAndTime); @override List get $columns => [id, start, end, trackId, createdAt]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'skip_segment_table'; @override 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('start')) { context.handle( _startMeta, start.isAcceptableOrUnknown(data['start']!, _startMeta)); } else if (isInserting) { context.missing(_startMeta); } if (data.containsKey('end')) { context.handle( _endMeta, end.isAcceptableOrUnknown(data['end']!, _endMeta)); } else if (isInserting) { context.missing(_endMeta); } if (data.containsKey('track_id')) { context.handle(_trackIdMeta, trackId.isAcceptableOrUnknown(data['track_id']!, _trackIdMeta)); } else if (isInserting) { context.missing(_trackIdMeta); } if (data.containsKey('created_at')) { context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } return context; } @override Set get $primaryKey => {id}; @override SkipSegmentTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return SkipSegmentTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, start: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}start'])!, end: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}end'])!, trackId: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}track_id'])!, createdAt: attachedDatabase.typeMapping .read(DriftSqlType.dateTime, data['${effectivePrefix}created_at'])!, ); } @override $SkipSegmentTableTable createAlias(String alias) { return $SkipSegmentTableTable(attachedDatabase, alias); } } class SkipSegmentTableData extends DataClass implements Insertable { final int id; final int start; final int end; final String trackId; final DateTime createdAt; const SkipSegmentTableData( {required this.id, required this.start, required this.end, required this.trackId, required this.createdAt}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['start'] = Variable(start); map['end'] = Variable(end); map['track_id'] = Variable(trackId); map['created_at'] = Variable(createdAt); return map; } SkipSegmentTableCompanion toCompanion(bool nullToAbsent) { return SkipSegmentTableCompanion( id: Value(id), start: Value(start), end: Value(end), trackId: Value(trackId), createdAt: Value(createdAt), ); } factory SkipSegmentTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return SkipSegmentTableData( id: serializer.fromJson(json['id']), start: serializer.fromJson(json['start']), end: serializer.fromJson(json['end']), trackId: serializer.fromJson(json['trackId']), createdAt: serializer.fromJson(json['createdAt']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'start': serializer.toJson(start), 'end': serializer.toJson(end), 'trackId': serializer.toJson(trackId), 'createdAt': serializer.toJson(createdAt), }; } SkipSegmentTableData copyWith( {int? id, int? start, int? end, String? trackId, DateTime? createdAt}) => SkipSegmentTableData( id: id ?? this.id, start: start ?? this.start, end: end ?? this.end, trackId: trackId ?? this.trackId, createdAt: createdAt ?? this.createdAt, ); SkipSegmentTableData copyWithCompanion(SkipSegmentTableCompanion data) { return SkipSegmentTableData( id: data.id.present ? data.id.value : this.id, start: data.start.present ? data.start.value : this.start, end: data.end.present ? data.end.value : this.end, trackId: data.trackId.present ? data.trackId.value : this.trackId, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, ); } @override String toString() { return (StringBuffer('SkipSegmentTableData(') ..write('id: $id, ') ..write('start: $start, ') ..write('end: $end, ') ..write('trackId: $trackId, ') ..write('createdAt: $createdAt') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, start, end, trackId, createdAt); @override bool operator ==(Object other) => identical(this, other) || (other is SkipSegmentTableData && other.id == this.id && other.start == this.start && other.end == this.end && other.trackId == this.trackId && other.createdAt == this.createdAt); } class SkipSegmentTableCompanion extends UpdateCompanion { final Value id; final Value start; final Value end; final Value trackId; final Value createdAt; const SkipSegmentTableCompanion({ this.id = const Value.absent(), this.start = const Value.absent(), this.end = const Value.absent(), this.trackId = const Value.absent(), this.createdAt = const Value.absent(), }); SkipSegmentTableCompanion.insert({ this.id = const Value.absent(), required int start, required int end, required String trackId, this.createdAt = const Value.absent(), }) : start = Value(start), end = Value(end), trackId = Value(trackId); static Insertable custom({ Expression? id, Expression? start, Expression? end, Expression? trackId, Expression? createdAt, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (start != null) 'start': start, if (end != null) 'end': end, if (trackId != null) 'track_id': trackId, if (createdAt != null) 'created_at': createdAt, }); } SkipSegmentTableCompanion copyWith( {Value? id, Value? start, Value? end, Value? trackId, Value? createdAt}) { return SkipSegmentTableCompanion( id: id ?? this.id, start: start ?? this.start, end: end ?? this.end, trackId: trackId ?? this.trackId, createdAt: createdAt ?? this.createdAt, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (start.present) { map['start'] = Variable(start.value); } if (end.present) { map['end'] = Variable(end.value); } if (trackId.present) { map['track_id'] = Variable(trackId.value); } if (createdAt.present) { map['created_at'] = Variable(createdAt.value); } return map; } @override String toString() { return (StringBuffer('SkipSegmentTableCompanion(') ..write('id: $id, ') ..write('start: $start, ') ..write('end: $end, ') ..write('trackId: $trackId, ') ..write('createdAt: $createdAt') ..write(')')) .toString(); } } class $SourceMatchTableTable extends SourceMatchTable with TableInfo<$SourceMatchTableTable, SourceMatchTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $SourceMatchTableTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _trackIdMeta = const VerificationMeta('trackId'); @override late final GeneratedColumn trackId = GeneratedColumn( 'track_id', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _sourceIdMeta = const VerificationMeta('sourceId'); @override late final GeneratedColumn sourceId = GeneratedColumn( 'source_id', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _sourceTypeMeta = const VerificationMeta('sourceType'); @override late final GeneratedColumnWithTypeConverter sourceType = GeneratedColumn('source_type', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: false, defaultValue: Constant(SourceType.youtube.name)) .withConverter( $SourceMatchTableTable.$convertersourceType); static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', aliasedName, false, type: DriftSqlType.dateTime, requiredDuringInsert: false, defaultValue: currentDateAndTime); @override List get $columns => [id, trackId, sourceId, sourceType, createdAt]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'source_match_table'; @override 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('track_id')) { context.handle(_trackIdMeta, trackId.isAcceptableOrUnknown(data['track_id']!, _trackIdMeta)); } else if (isInserting) { context.missing(_trackIdMeta); } if (data.containsKey('source_id')) { context.handle(_sourceIdMeta, sourceId.isAcceptableOrUnknown(data['source_id']!, _sourceIdMeta)); } else if (isInserting) { context.missing(_sourceIdMeta); } context.handle(_sourceTypeMeta, const VerificationResult.success()); if (data.containsKey('created_at')) { context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } return context; } @override Set get $primaryKey => {id}; @override SourceMatchTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return SourceMatchTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, trackId: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}track_id'])!, sourceId: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}source_id'])!, sourceType: $SourceMatchTableTable.$convertersourceType.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}source_type'])!), createdAt: attachedDatabase.typeMapping .read(DriftSqlType.dateTime, data['${effectivePrefix}created_at'])!, ); } @override $SourceMatchTableTable createAlias(String alias) { return $SourceMatchTableTable(attachedDatabase, alias); } static JsonTypeConverter2 $convertersourceType = const EnumNameConverter(SourceType.values); } class SourceMatchTableData extends DataClass implements Insertable { final int id; final String trackId; final String sourceId; final SourceType sourceType; final DateTime createdAt; const SourceMatchTableData( {required this.id, required this.trackId, required this.sourceId, required this.sourceType, required this.createdAt}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['track_id'] = Variable(trackId); map['source_id'] = Variable(sourceId); { map['source_type'] = Variable( $SourceMatchTableTable.$convertersourceType.toSql(sourceType)); } map['created_at'] = Variable(createdAt); return map; } SourceMatchTableCompanion toCompanion(bool nullToAbsent) { return SourceMatchTableCompanion( id: Value(id), trackId: Value(trackId), sourceId: Value(sourceId), sourceType: Value(sourceType), createdAt: Value(createdAt), ); } factory SourceMatchTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return SourceMatchTableData( id: serializer.fromJson(json['id']), trackId: serializer.fromJson(json['trackId']), sourceId: serializer.fromJson(json['sourceId']), sourceType: $SourceMatchTableTable.$convertersourceType .fromJson(serializer.fromJson(json['sourceType'])), createdAt: serializer.fromJson(json['createdAt']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'trackId': serializer.toJson(trackId), 'sourceId': serializer.toJson(sourceId), 'sourceType': serializer.toJson( $SourceMatchTableTable.$convertersourceType.toJson(sourceType)), 'createdAt': serializer.toJson(createdAt), }; } SourceMatchTableData copyWith( {int? id, String? trackId, String? sourceId, SourceType? sourceType, DateTime? createdAt}) => SourceMatchTableData( id: id ?? this.id, trackId: trackId ?? this.trackId, sourceId: sourceId ?? this.sourceId, sourceType: sourceType ?? this.sourceType, createdAt: createdAt ?? this.createdAt, ); SourceMatchTableData copyWithCompanion(SourceMatchTableCompanion data) { return SourceMatchTableData( id: data.id.present ? data.id.value : this.id, trackId: data.trackId.present ? data.trackId.value : this.trackId, sourceId: data.sourceId.present ? data.sourceId.value : this.sourceId, sourceType: data.sourceType.present ? data.sourceType.value : this.sourceType, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, ); } @override String toString() { return (StringBuffer('SourceMatchTableData(') ..write('id: $id, ') ..write('trackId: $trackId, ') ..write('sourceId: $sourceId, ') ..write('sourceType: $sourceType, ') ..write('createdAt: $createdAt') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, trackId, sourceId, sourceType, createdAt); @override bool operator ==(Object other) => identical(this, other) || (other is SourceMatchTableData && other.id == this.id && other.trackId == this.trackId && other.sourceId == this.sourceId && other.sourceType == this.sourceType && other.createdAt == this.createdAt); } class SourceMatchTableCompanion extends UpdateCompanion { final Value id; final Value trackId; final Value sourceId; final Value sourceType; final Value createdAt; const SourceMatchTableCompanion({ this.id = const Value.absent(), this.trackId = const Value.absent(), this.sourceId = const Value.absent(), this.sourceType = const Value.absent(), this.createdAt = const Value.absent(), }); SourceMatchTableCompanion.insert({ this.id = const Value.absent(), required String trackId, required String sourceId, this.sourceType = const Value.absent(), this.createdAt = const Value.absent(), }) : trackId = Value(trackId), sourceId = Value(sourceId); static Insertable custom({ Expression? id, Expression? trackId, Expression? sourceId, Expression? sourceType, Expression? createdAt, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (trackId != null) 'track_id': trackId, if (sourceId != null) 'source_id': sourceId, if (sourceType != null) 'source_type': sourceType, if (createdAt != null) 'created_at': createdAt, }); } SourceMatchTableCompanion copyWith( {Value? id, Value? trackId, Value? sourceId, Value? sourceType, Value? createdAt}) { return SourceMatchTableCompanion( id: id ?? this.id, trackId: trackId ?? this.trackId, sourceId: sourceId ?? this.sourceId, sourceType: sourceType ?? this.sourceType, createdAt: createdAt ?? this.createdAt, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (trackId.present) { map['track_id'] = Variable(trackId.value); } if (sourceId.present) { map['source_id'] = Variable(sourceId.value); } if (sourceType.present) { map['source_type'] = Variable( $SourceMatchTableTable.$convertersourceType.toSql(sourceType.value)); } if (createdAt.present) { map['created_at'] = Variable(createdAt.value); } return map; } @override String toString() { return (StringBuffer('SourceMatchTableCompanion(') ..write('id: $id, ') ..write('trackId: $trackId, ') ..write('sourceId: $sourceId, ') ..write('sourceType: $sourceType, ') ..write('createdAt: $createdAt') ..write(')')) .toString(); } } class $HistoryTableTable extends HistoryTable with TableInfo<$HistoryTableTable, HistoryTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $HistoryTableTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', aliasedName, false, type: DriftSqlType.dateTime, requiredDuringInsert: false, defaultValue: currentDateAndTime); static const VerificationMeta _typeMeta = const VerificationMeta('type'); @override late final GeneratedColumnWithTypeConverter type = GeneratedColumn('type', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter($HistoryTableTable.$convertertype); static const VerificationMeta _itemIdMeta = const VerificationMeta('itemId'); @override late final GeneratedColumn itemId = GeneratedColumn( 'item_id', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _dataMeta = const VerificationMeta('data'); @override late final GeneratedColumnWithTypeConverter, String> data = GeneratedColumn('data', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter>( $HistoryTableTable.$converterdata); @override List get $columns => [id, createdAt, type, itemId, data]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'history_table'; @override 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('created_at')) { context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } context.handle(_typeMeta, const VerificationResult.success()); if (data.containsKey('item_id')) { context.handle(_itemIdMeta, itemId.isAcceptableOrUnknown(data['item_id']!, _itemIdMeta)); } else if (isInserting) { context.missing(_itemIdMeta); } context.handle(_dataMeta, const VerificationResult.success()); return context; } @override Set get $primaryKey => {id}; @override HistoryTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return HistoryTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, createdAt: attachedDatabase.typeMapping .read(DriftSqlType.dateTime, data['${effectivePrefix}created_at'])!, type: $HistoryTableTable.$convertertype.fromSql(attachedDatabase .typeMapping .read(DriftSqlType.string, data['${effectivePrefix}type'])!), itemId: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}item_id'])!, data: $HistoryTableTable.$converterdata.fromSql(attachedDatabase .typeMapping .read(DriftSqlType.string, data['${effectivePrefix}data'])!), ); } @override $HistoryTableTable createAlias(String alias) { return $HistoryTableTable(attachedDatabase, alias); } static JsonTypeConverter2 $convertertype = const EnumNameConverter(HistoryEntryType.values); static TypeConverter, String> $converterdata = const MapTypeConverter(); } class HistoryTableData extends DataClass implements Insertable { final int id; final DateTime createdAt; final HistoryEntryType type; final String itemId; final Map data; const HistoryTableData( {required this.id, required this.createdAt, required this.type, required this.itemId, required this.data}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['created_at'] = Variable(createdAt); { map['type'] = Variable($HistoryTableTable.$convertertype.toSql(type)); } map['item_id'] = Variable(itemId); { map['data'] = Variable($HistoryTableTable.$converterdata.toSql(data)); } return map; } HistoryTableCompanion toCompanion(bool nullToAbsent) { return HistoryTableCompanion( id: Value(id), createdAt: Value(createdAt), type: Value(type), itemId: Value(itemId), data: Value(data), ); } factory HistoryTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return HistoryTableData( id: serializer.fromJson(json['id']), createdAt: serializer.fromJson(json['createdAt']), type: $HistoryTableTable.$convertertype .fromJson(serializer.fromJson(json['type'])), itemId: serializer.fromJson(json['itemId']), data: serializer.fromJson>(json['data']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'createdAt': serializer.toJson(createdAt), 'type': serializer .toJson($HistoryTableTable.$convertertype.toJson(type)), 'itemId': serializer.toJson(itemId), 'data': serializer.toJson>(data), }; } HistoryTableData copyWith( {int? id, DateTime? createdAt, HistoryEntryType? type, String? itemId, Map? data}) => HistoryTableData( id: id ?? this.id, createdAt: createdAt ?? this.createdAt, type: type ?? this.type, itemId: itemId ?? this.itemId, data: data ?? this.data, ); HistoryTableData copyWithCompanion(HistoryTableCompanion data) { return HistoryTableData( id: data.id.present ? data.id.value : this.id, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, type: data.type.present ? data.type.value : this.type, itemId: data.itemId.present ? data.itemId.value : this.itemId, data: data.data.present ? data.data.value : this.data, ); } @override String toString() { return (StringBuffer('HistoryTableData(') ..write('id: $id, ') ..write('createdAt: $createdAt, ') ..write('type: $type, ') ..write('itemId: $itemId, ') ..write('data: $data') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, createdAt, type, itemId, data); @override bool operator ==(Object other) => identical(this, other) || (other is HistoryTableData && other.id == this.id && other.createdAt == this.createdAt && other.type == this.type && other.itemId == this.itemId && other.data == this.data); } class HistoryTableCompanion extends UpdateCompanion { final Value id; final Value createdAt; final Value type; final Value itemId; final Value> data; const HistoryTableCompanion({ this.id = const Value.absent(), this.createdAt = const Value.absent(), this.type = const Value.absent(), this.itemId = const Value.absent(), this.data = const Value.absent(), }); HistoryTableCompanion.insert({ this.id = const Value.absent(), this.createdAt = const Value.absent(), required HistoryEntryType type, required String itemId, required Map data, }) : type = Value(type), itemId = Value(itemId), data = Value(data); static Insertable custom({ Expression? id, Expression? createdAt, Expression? type, Expression? itemId, Expression? data, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (createdAt != null) 'created_at': createdAt, if (type != null) 'type': type, if (itemId != null) 'item_id': itemId, if (data != null) 'data': data, }); } HistoryTableCompanion copyWith( {Value? id, Value? createdAt, Value? type, Value? itemId, Value>? data}) { return HistoryTableCompanion( id: id ?? this.id, createdAt: createdAt ?? this.createdAt, type: type ?? this.type, itemId: itemId ?? this.itemId, data: data ?? this.data, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (createdAt.present) { map['created_at'] = Variable(createdAt.value); } if (type.present) { map['type'] = Variable($HistoryTableTable.$convertertype.toSql(type.value)); } if (itemId.present) { map['item_id'] = Variable(itemId.value); } if (data.present) { map['data'] = Variable($HistoryTableTable.$converterdata.toSql(data.value)); } return map; } @override String toString() { return (StringBuffer('HistoryTableCompanion(') ..write('id: $id, ') ..write('createdAt: $createdAt, ') ..write('type: $type, ') ..write('itemId: $itemId, ') ..write('data: $data') ..write(')')) .toString(); } } class $LyricsTableTable extends LyricsTable with TableInfo<$LyricsTableTable, LyricsTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $LyricsTableTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _trackIdMeta = const VerificationMeta('trackId'); @override late final GeneratedColumn trackId = GeneratedColumn( 'track_id', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _dataMeta = const VerificationMeta('data'); @override late final GeneratedColumnWithTypeConverter data = GeneratedColumn('data', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter($LyricsTableTable.$converterdata); @override List get $columns => [id, trackId, data]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'lyrics_table'; @override 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('track_id')) { context.handle(_trackIdMeta, trackId.isAcceptableOrUnknown(data['track_id']!, _trackIdMeta)); } else if (isInserting) { context.missing(_trackIdMeta); } context.handle(_dataMeta, const VerificationResult.success()); return context; } @override Set get $primaryKey => {id}; @override LyricsTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return LyricsTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, trackId: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}track_id'])!, data: $LyricsTableTable.$converterdata.fromSql(attachedDatabase .typeMapping .read(DriftSqlType.string, data['${effectivePrefix}data'])!), ); } @override $LyricsTableTable createAlias(String alias) { return $LyricsTableTable(attachedDatabase, alias); } static TypeConverter $converterdata = SubtitleTypeConverter(); } class LyricsTableData extends DataClass implements Insertable { final int id; final String trackId; final SubtitleSimple data; const LyricsTableData( {required this.id, required this.trackId, required this.data}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['track_id'] = Variable(trackId); { map['data'] = Variable($LyricsTableTable.$converterdata.toSql(data)); } return map; } LyricsTableCompanion toCompanion(bool nullToAbsent) { return LyricsTableCompanion( id: Value(id), trackId: Value(trackId), data: Value(data), ); } factory LyricsTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return LyricsTableData( id: serializer.fromJson(json['id']), trackId: serializer.fromJson(json['trackId']), data: serializer.fromJson(json['data']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'trackId': serializer.toJson(trackId), 'data': serializer.toJson(data), }; } LyricsTableData copyWith({int? id, String? trackId, SubtitleSimple? data}) => LyricsTableData( id: id ?? this.id, trackId: trackId ?? this.trackId, data: data ?? this.data, ); LyricsTableData copyWithCompanion(LyricsTableCompanion data) { return LyricsTableData( id: data.id.present ? data.id.value : this.id, trackId: data.trackId.present ? data.trackId.value : this.trackId, data: data.data.present ? data.data.value : this.data, ); } @override String toString() { return (StringBuffer('LyricsTableData(') ..write('id: $id, ') ..write('trackId: $trackId, ') ..write('data: $data') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, trackId, data); @override bool operator ==(Object other) => identical(this, other) || (other is LyricsTableData && other.id == this.id && other.trackId == this.trackId && other.data == this.data); } class LyricsTableCompanion extends UpdateCompanion { final Value id; final Value trackId; final Value data; const LyricsTableCompanion({ this.id = const Value.absent(), this.trackId = const Value.absent(), this.data = const Value.absent(), }); LyricsTableCompanion.insert({ this.id = const Value.absent(), required String trackId, required SubtitleSimple data, }) : trackId = Value(trackId), data = Value(data); static Insertable custom({ Expression? id, Expression? trackId, Expression? data, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (trackId != null) 'track_id': trackId, if (data != null) 'data': data, }); } LyricsTableCompanion copyWith( {Value? id, Value? trackId, Value? data}) { return LyricsTableCompanion( id: id ?? this.id, trackId: trackId ?? this.trackId, data: data ?? this.data, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (trackId.present) { map['track_id'] = Variable(trackId.value); } if (data.present) { map['data'] = Variable($LyricsTableTable.$converterdata.toSql(data.value)); } return map; } @override String toString() { return (StringBuffer('LyricsTableCompanion(') ..write('id: $id, ') ..write('trackId: $trackId, ') ..write('data: $data') ..write(')')) .toString(); } } abstract class _$AppDatabase extends GeneratedDatabase { _$AppDatabase(QueryExecutor e) : super(e); $AppDatabaseManager get managers => $AppDatabaseManager(this); late final $AuthenticationTableTable authenticationTable = $AuthenticationTableTable(this); late final $BlacklistTableTable blacklistTable = $BlacklistTableTable(this); late final $PreferencesTableTable preferencesTable = $PreferencesTableTable(this); late final $ScrobblerTableTable scrobblerTable = $ScrobblerTableTable(this); late final $SkipSegmentTableTable skipSegmentTable = $SkipSegmentTableTable(this); late final $SourceMatchTableTable sourceMatchTable = $SourceMatchTableTable(this); late final $HistoryTableTable historyTable = $HistoryTableTable(this); late final $LyricsTableTable lyricsTable = $LyricsTableTable(this); late final Index uniqueBlacklist = Index('unique_blacklist', 'CREATE UNIQUE INDEX unique_blacklist ON blacklist_table (element_type, element_id)'); late final Index uniqTrackMatch = Index('uniq_track_match', 'CREATE UNIQUE INDEX uniq_track_match ON source_match_table (track_id, source_id, source_type)'); @override Iterable> get allTables => allSchemaEntities.whereType>(); @override List get allSchemaEntities => [ authenticationTable, blacklistTable, preferencesTable, scrobblerTable, skipSegmentTable, sourceMatchTable, historyTable, lyricsTable, uniqueBlacklist, uniqTrackMatch ]; } typedef $$AuthenticationTableTableCreateCompanionBuilder = AuthenticationTableCompanion Function({ Value id, required DecryptedText cookie, required DecryptedText accessToken, required DateTime expiration, }); typedef $$AuthenticationTableTableUpdateCompanionBuilder = AuthenticationTableCompanion Function({ Value id, Value cookie, Value accessToken, Value expiration, }); class $$AuthenticationTableTableFilterComposer extends FilterComposer<_$AppDatabase, $AuthenticationTableTable> { $$AuthenticationTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get cookie => $state.composableBuilder( column: $state.table.cookie, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get accessToken => $state.composableBuilder( column: $state.table.accessToken, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get expiration => $state.composableBuilder( column: $state.table.expiration, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); } class $$AuthenticationTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $AuthenticationTableTable> { $$AuthenticationTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get cookie => $state.composableBuilder( column: $state.table.cookie, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get accessToken => $state.composableBuilder( column: $state.table.accessToken, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get expiration => $state.composableBuilder( column: $state.table.expiration, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$AuthenticationTableTableTableManager extends RootTableManager< _$AppDatabase, $AuthenticationTableTable, AuthenticationTableData, $$AuthenticationTableTableFilterComposer, $$AuthenticationTableTableOrderingComposer, $$AuthenticationTableTableCreateCompanionBuilder, $$AuthenticationTableTableUpdateCompanionBuilder, ( AuthenticationTableData, BaseReferences<_$AppDatabase, $AuthenticationTableTable, AuthenticationTableData> ), AuthenticationTableData, PrefetchHooks Function()> { $$AuthenticationTableTableTableManager( _$AppDatabase db, $AuthenticationTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$AuthenticationTableTableFilterComposer( ComposerState(db, table)), orderingComposer: $$AuthenticationTableTableOrderingComposer( ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value cookie = const Value.absent(), Value accessToken = const Value.absent(), Value expiration = const Value.absent(), }) => AuthenticationTableCompanion( id: id, cookie: cookie, accessToken: accessToken, expiration: expiration, ), createCompanionCallback: ({ Value id = const Value.absent(), required DecryptedText cookie, required DecryptedText accessToken, required DateTime expiration, }) => AuthenticationTableCompanion.insert( id: id, cookie: cookie, accessToken: accessToken, expiration: expiration, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$AuthenticationTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $AuthenticationTableTable, AuthenticationTableData, $$AuthenticationTableTableFilterComposer, $$AuthenticationTableTableOrderingComposer, $$AuthenticationTableTableCreateCompanionBuilder, $$AuthenticationTableTableUpdateCompanionBuilder, ( AuthenticationTableData, BaseReferences<_$AppDatabase, $AuthenticationTableTable, AuthenticationTableData> ), AuthenticationTableData, PrefetchHooks Function()>; typedef $$BlacklistTableTableCreateCompanionBuilder = BlacklistTableCompanion Function({ Value id, required String name, required BlacklistedType elementType, required String elementId, }); typedef $$BlacklistTableTableUpdateCompanionBuilder = BlacklistTableCompanion Function({ Value id, Value name, Value elementType, Value elementId, }); class $$BlacklistTableTableFilterComposer extends FilterComposer<_$AppDatabase, $BlacklistTableTable> { $$BlacklistTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get name => $state.composableBuilder( column: $state.table.name, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get elementType => $state.composableBuilder( column: $state.table.elementType, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get elementId => $state.composableBuilder( column: $state.table.elementId, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); } class $$BlacklistTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $BlacklistTableTable> { $$BlacklistTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get name => $state.composableBuilder( column: $state.table.name, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get elementType => $state.composableBuilder( column: $state.table.elementType, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get elementId => $state.composableBuilder( column: $state.table.elementId, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$BlacklistTableTableTableManager extends RootTableManager< _$AppDatabase, $BlacklistTableTable, BlacklistTableData, $$BlacklistTableTableFilterComposer, $$BlacklistTableTableOrderingComposer, $$BlacklistTableTableCreateCompanionBuilder, $$BlacklistTableTableUpdateCompanionBuilder, ( BlacklistTableData, BaseReferences<_$AppDatabase, $BlacklistTableTable, BlacklistTableData> ), BlacklistTableData, PrefetchHooks Function()> { $$BlacklistTableTableTableManager( _$AppDatabase db, $BlacklistTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$BlacklistTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$BlacklistTableTableOrderingComposer(ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value name = const Value.absent(), Value elementType = const Value.absent(), Value elementId = const Value.absent(), }) => BlacklistTableCompanion( id: id, name: name, elementType: elementType, elementId: elementId, ), createCompanionCallback: ({ Value id = const Value.absent(), required String name, required BlacklistedType elementType, required String elementId, }) => BlacklistTableCompanion.insert( id: id, name: name, elementType: elementType, elementId: elementId, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$BlacklistTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $BlacklistTableTable, BlacklistTableData, $$BlacklistTableTableFilterComposer, $$BlacklistTableTableOrderingComposer, $$BlacklistTableTableCreateCompanionBuilder, $$BlacklistTableTableUpdateCompanionBuilder, ( BlacklistTableData, BaseReferences<_$AppDatabase, $BlacklistTableTable, BlacklistTableData> ), BlacklistTableData, PrefetchHooks Function()>; typedef $$PreferencesTableTableCreateCompanionBuilder = PreferencesTableCompanion Function({ Value id, Value audioQuality, Value albumColorSync, Value amoledDarkTheme, Value checkUpdate, Value normalizeAudio, Value showSystemTrayIcon, Value systemTitleBar, Value skipNonMusic, Value closeBehavior, Value accentColorScheme, Value layoutMode, Value locale, Value market, Value searchMode, Value downloadLocation, Value> localLibraryLocation, Value pipedInstance, Value themeMode, Value audioSource, Value streamMusicCodec, Value downloadMusicCodec, Value discordPresence, Value endlessPlayback, Value enableConnect, }); typedef $$PreferencesTableTableUpdateCompanionBuilder = PreferencesTableCompanion Function({ Value id, Value audioQuality, Value albumColorSync, Value amoledDarkTheme, Value checkUpdate, Value normalizeAudio, Value showSystemTrayIcon, Value systemTitleBar, Value skipNonMusic, Value closeBehavior, Value accentColorScheme, Value layoutMode, Value locale, Value market, Value searchMode, Value downloadLocation, Value> localLibraryLocation, Value pipedInstance, Value themeMode, Value audioSource, Value streamMusicCodec, Value downloadMusicCodec, Value discordPresence, Value endlessPlayback, Value enableConnect, }); class $$PreferencesTableTableFilterComposer extends FilterComposer<_$AppDatabase, $PreferencesTableTable> { $$PreferencesTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get audioQuality => $state.composableBuilder( column: $state.table.audioQuality, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get albumColorSync => $state.composableBuilder( column: $state.table.albumColorSync, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get amoledDarkTheme => $state.composableBuilder( column: $state.table.amoledDarkTheme, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get checkUpdate => $state.composableBuilder( column: $state.table.checkUpdate, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get normalizeAudio => $state.composableBuilder( column: $state.table.normalizeAudio, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get showSystemTrayIcon => $state.composableBuilder( column: $state.table.showSystemTrayIcon, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get systemTitleBar => $state.composableBuilder( column: $state.table.systemTitleBar, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get skipNonMusic => $state.composableBuilder( column: $state.table.skipNonMusic, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get closeBehavior => $state.composableBuilder( column: $state.table.closeBehavior, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get accentColorScheme => $state.composableBuilder( column: $state.table.accentColorScheme, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get layoutMode => $state.composableBuilder( column: $state.table.layoutMode, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get locale => $state.composableBuilder( column: $state.table.locale, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get market => $state.composableBuilder( column: $state.table.market, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get searchMode => $state.composableBuilder( column: $state.table.searchMode, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get downloadLocation => $state.composableBuilder( column: $state.table.downloadLocation, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters, List, String> get localLibraryLocation => $state.composableBuilder( column: $state.table.localLibraryLocation, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get pipedInstance => $state.composableBuilder( column: $state.table.pipedInstance, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get themeMode => $state.composableBuilder( column: $state.table.themeMode, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get audioSource => $state.composableBuilder( column: $state.table.audioSource, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get streamMusicCodec => $state.composableBuilder( column: $state.table.streamMusicCodec, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get downloadMusicCodec => $state.composableBuilder( column: $state.table.downloadMusicCodec, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get discordPresence => $state.composableBuilder( column: $state.table.discordPresence, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get endlessPlayback => $state.composableBuilder( column: $state.table.endlessPlayback, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get enableConnect => $state.composableBuilder( column: $state.table.enableConnect, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); } class $$PreferencesTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $PreferencesTableTable> { $$PreferencesTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get audioQuality => $state.composableBuilder( column: $state.table.audioQuality, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get albumColorSync => $state.composableBuilder( column: $state.table.albumColorSync, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get amoledDarkTheme => $state.composableBuilder( column: $state.table.amoledDarkTheme, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get checkUpdate => $state.composableBuilder( column: $state.table.checkUpdate, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get normalizeAudio => $state.composableBuilder( column: $state.table.normalizeAudio, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get showSystemTrayIcon => $state.composableBuilder( column: $state.table.showSystemTrayIcon, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get systemTitleBar => $state.composableBuilder( column: $state.table.systemTitleBar, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get skipNonMusic => $state.composableBuilder( column: $state.table.skipNonMusic, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get closeBehavior => $state.composableBuilder( column: $state.table.closeBehavior, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get accentColorScheme => $state.composableBuilder( column: $state.table.accentColorScheme, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get layoutMode => $state.composableBuilder( column: $state.table.layoutMode, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get locale => $state.composableBuilder( column: $state.table.locale, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get market => $state.composableBuilder( column: $state.table.market, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get searchMode => $state.composableBuilder( column: $state.table.searchMode, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get downloadLocation => $state.composableBuilder( column: $state.table.downloadLocation, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get localLibraryLocation => $state.composableBuilder( column: $state.table.localLibraryLocation, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get pipedInstance => $state.composableBuilder( column: $state.table.pipedInstance, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get themeMode => $state.composableBuilder( column: $state.table.themeMode, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get audioSource => $state.composableBuilder( column: $state.table.audioSource, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get streamMusicCodec => $state.composableBuilder( column: $state.table.streamMusicCodec, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get downloadMusicCodec => $state.composableBuilder( column: $state.table.downloadMusicCodec, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get discordPresence => $state.composableBuilder( column: $state.table.discordPresence, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get endlessPlayback => $state.composableBuilder( column: $state.table.endlessPlayback, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get enableConnect => $state.composableBuilder( column: $state.table.enableConnect, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$PreferencesTableTableTableManager extends RootTableManager< _$AppDatabase, $PreferencesTableTable, PreferencesTableData, $$PreferencesTableTableFilterComposer, $$PreferencesTableTableOrderingComposer, $$PreferencesTableTableCreateCompanionBuilder, $$PreferencesTableTableUpdateCompanionBuilder, ( PreferencesTableData, BaseReferences<_$AppDatabase, $PreferencesTableTable, PreferencesTableData> ), PreferencesTableData, PrefetchHooks Function()> { $$PreferencesTableTableTableManager( _$AppDatabase db, $PreferencesTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$PreferencesTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$PreferencesTableTableOrderingComposer(ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value audioQuality = const Value.absent(), Value albumColorSync = const Value.absent(), Value amoledDarkTheme = const Value.absent(), Value checkUpdate = const Value.absent(), Value normalizeAudio = const Value.absent(), Value showSystemTrayIcon = const Value.absent(), Value systemTitleBar = const Value.absent(), Value skipNonMusic = const Value.absent(), Value closeBehavior = const Value.absent(), Value accentColorScheme = const Value.absent(), Value layoutMode = const Value.absent(), Value locale = const Value.absent(), Value market = const Value.absent(), Value searchMode = const Value.absent(), Value downloadLocation = const Value.absent(), Value> localLibraryLocation = const Value.absent(), Value pipedInstance = const Value.absent(), Value themeMode = const Value.absent(), Value audioSource = const Value.absent(), Value streamMusicCodec = const Value.absent(), Value downloadMusicCodec = const Value.absent(), Value discordPresence = const Value.absent(), Value endlessPlayback = const Value.absent(), Value enableConnect = const Value.absent(), }) => PreferencesTableCompanion( id: id, audioQuality: audioQuality, albumColorSync: albumColorSync, amoledDarkTheme: amoledDarkTheme, checkUpdate: checkUpdate, normalizeAudio: normalizeAudio, showSystemTrayIcon: showSystemTrayIcon, systemTitleBar: systemTitleBar, skipNonMusic: skipNonMusic, closeBehavior: closeBehavior, accentColorScheme: accentColorScheme, layoutMode: layoutMode, locale: locale, market: market, searchMode: searchMode, downloadLocation: downloadLocation, localLibraryLocation: localLibraryLocation, pipedInstance: pipedInstance, themeMode: themeMode, audioSource: audioSource, streamMusicCodec: streamMusicCodec, downloadMusicCodec: downloadMusicCodec, discordPresence: discordPresence, endlessPlayback: endlessPlayback, enableConnect: enableConnect, ), createCompanionCallback: ({ Value id = const Value.absent(), Value audioQuality = const Value.absent(), Value albumColorSync = const Value.absent(), Value amoledDarkTheme = const Value.absent(), Value checkUpdate = const Value.absent(), Value normalizeAudio = const Value.absent(), Value showSystemTrayIcon = const Value.absent(), Value systemTitleBar = const Value.absent(), Value skipNonMusic = const Value.absent(), Value closeBehavior = const Value.absent(), Value accentColorScheme = const Value.absent(), Value layoutMode = const Value.absent(), Value locale = const Value.absent(), Value market = const Value.absent(), Value searchMode = const Value.absent(), Value downloadLocation = const Value.absent(), Value> localLibraryLocation = const Value.absent(), Value pipedInstance = const Value.absent(), Value themeMode = const Value.absent(), Value audioSource = const Value.absent(), Value streamMusicCodec = const Value.absent(), Value downloadMusicCodec = const Value.absent(), Value discordPresence = const Value.absent(), Value endlessPlayback = const Value.absent(), Value enableConnect = const Value.absent(), }) => PreferencesTableCompanion.insert( id: id, audioQuality: audioQuality, albumColorSync: albumColorSync, amoledDarkTheme: amoledDarkTheme, checkUpdate: checkUpdate, normalizeAudio: normalizeAudio, showSystemTrayIcon: showSystemTrayIcon, systemTitleBar: systemTitleBar, skipNonMusic: skipNonMusic, closeBehavior: closeBehavior, accentColorScheme: accentColorScheme, layoutMode: layoutMode, locale: locale, market: market, searchMode: searchMode, downloadLocation: downloadLocation, localLibraryLocation: localLibraryLocation, pipedInstance: pipedInstance, themeMode: themeMode, audioSource: audioSource, streamMusicCodec: streamMusicCodec, downloadMusicCodec: downloadMusicCodec, discordPresence: discordPresence, endlessPlayback: endlessPlayback, enableConnect: enableConnect, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$PreferencesTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $PreferencesTableTable, PreferencesTableData, $$PreferencesTableTableFilterComposer, $$PreferencesTableTableOrderingComposer, $$PreferencesTableTableCreateCompanionBuilder, $$PreferencesTableTableUpdateCompanionBuilder, ( PreferencesTableData, BaseReferences<_$AppDatabase, $PreferencesTableTable, PreferencesTableData> ), PreferencesTableData, PrefetchHooks Function()>; typedef $$ScrobblerTableTableCreateCompanionBuilder = ScrobblerTableCompanion Function({ Value id, Value createdAt, required String username, required DecryptedText passwordHash, }); typedef $$ScrobblerTableTableUpdateCompanionBuilder = ScrobblerTableCompanion Function({ Value id, Value createdAt, Value username, Value passwordHash, }); class $$ScrobblerTableTableFilterComposer extends FilterComposer<_$AppDatabase, $ScrobblerTableTable> { $$ScrobblerTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get createdAt => $state.composableBuilder( column: $state.table.createdAt, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get username => $state.composableBuilder( column: $state.table.username, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get passwordHash => $state.composableBuilder( column: $state.table.passwordHash, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); } class $$ScrobblerTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $ScrobblerTableTable> { $$ScrobblerTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get createdAt => $state.composableBuilder( column: $state.table.createdAt, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get username => $state.composableBuilder( column: $state.table.username, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get passwordHash => $state.composableBuilder( column: $state.table.passwordHash, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$ScrobblerTableTableTableManager extends RootTableManager< _$AppDatabase, $ScrobblerTableTable, ScrobblerTableData, $$ScrobblerTableTableFilterComposer, $$ScrobblerTableTableOrderingComposer, $$ScrobblerTableTableCreateCompanionBuilder, $$ScrobblerTableTableUpdateCompanionBuilder, ( ScrobblerTableData, BaseReferences<_$AppDatabase, $ScrobblerTableTable, ScrobblerTableData> ), ScrobblerTableData, PrefetchHooks Function()> { $$ScrobblerTableTableTableManager( _$AppDatabase db, $ScrobblerTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$ScrobblerTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$ScrobblerTableTableOrderingComposer(ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value createdAt = const Value.absent(), Value username = const Value.absent(), Value passwordHash = const Value.absent(), }) => ScrobblerTableCompanion( id: id, createdAt: createdAt, username: username, passwordHash: passwordHash, ), createCompanionCallback: ({ Value id = const Value.absent(), Value createdAt = const Value.absent(), required String username, required DecryptedText passwordHash, }) => ScrobblerTableCompanion.insert( id: id, createdAt: createdAt, username: username, passwordHash: passwordHash, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$ScrobblerTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $ScrobblerTableTable, ScrobblerTableData, $$ScrobblerTableTableFilterComposer, $$ScrobblerTableTableOrderingComposer, $$ScrobblerTableTableCreateCompanionBuilder, $$ScrobblerTableTableUpdateCompanionBuilder, ( ScrobblerTableData, BaseReferences<_$AppDatabase, $ScrobblerTableTable, ScrobblerTableData> ), ScrobblerTableData, PrefetchHooks Function()>; typedef $$SkipSegmentTableTableCreateCompanionBuilder = SkipSegmentTableCompanion Function({ Value id, required int start, required int end, required String trackId, Value createdAt, }); typedef $$SkipSegmentTableTableUpdateCompanionBuilder = SkipSegmentTableCompanion Function({ Value id, Value start, Value end, Value trackId, Value createdAt, }); class $$SkipSegmentTableTableFilterComposer extends FilterComposer<_$AppDatabase, $SkipSegmentTableTable> { $$SkipSegmentTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get start => $state.composableBuilder( column: $state.table.start, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get end => $state.composableBuilder( column: $state.table.end, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get trackId => $state.composableBuilder( column: $state.table.trackId, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get createdAt => $state.composableBuilder( column: $state.table.createdAt, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); } class $$SkipSegmentTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $SkipSegmentTableTable> { $$SkipSegmentTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get start => $state.composableBuilder( column: $state.table.start, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get end => $state.composableBuilder( column: $state.table.end, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get trackId => $state.composableBuilder( column: $state.table.trackId, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get createdAt => $state.composableBuilder( column: $state.table.createdAt, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$SkipSegmentTableTableTableManager extends RootTableManager< _$AppDatabase, $SkipSegmentTableTable, SkipSegmentTableData, $$SkipSegmentTableTableFilterComposer, $$SkipSegmentTableTableOrderingComposer, $$SkipSegmentTableTableCreateCompanionBuilder, $$SkipSegmentTableTableUpdateCompanionBuilder, ( SkipSegmentTableData, BaseReferences<_$AppDatabase, $SkipSegmentTableTable, SkipSegmentTableData> ), SkipSegmentTableData, PrefetchHooks Function()> { $$SkipSegmentTableTableTableManager( _$AppDatabase db, $SkipSegmentTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$SkipSegmentTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$SkipSegmentTableTableOrderingComposer(ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value start = const Value.absent(), Value end = const Value.absent(), Value trackId = const Value.absent(), Value createdAt = const Value.absent(), }) => SkipSegmentTableCompanion( id: id, start: start, end: end, trackId: trackId, createdAt: createdAt, ), createCompanionCallback: ({ Value id = const Value.absent(), required int start, required int end, required String trackId, Value createdAt = const Value.absent(), }) => SkipSegmentTableCompanion.insert( id: id, start: start, end: end, trackId: trackId, createdAt: createdAt, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$SkipSegmentTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $SkipSegmentTableTable, SkipSegmentTableData, $$SkipSegmentTableTableFilterComposer, $$SkipSegmentTableTableOrderingComposer, $$SkipSegmentTableTableCreateCompanionBuilder, $$SkipSegmentTableTableUpdateCompanionBuilder, ( SkipSegmentTableData, BaseReferences<_$AppDatabase, $SkipSegmentTableTable, SkipSegmentTableData> ), SkipSegmentTableData, PrefetchHooks Function()>; typedef $$SourceMatchTableTableCreateCompanionBuilder = SourceMatchTableCompanion Function({ Value id, required String trackId, required String sourceId, Value sourceType, Value createdAt, }); typedef $$SourceMatchTableTableUpdateCompanionBuilder = SourceMatchTableCompanion Function({ Value id, Value trackId, Value sourceId, Value sourceType, Value createdAt, }); class $$SourceMatchTableTableFilterComposer extends FilterComposer<_$AppDatabase, $SourceMatchTableTable> { $$SourceMatchTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get trackId => $state.composableBuilder( column: $state.table.trackId, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get sourceId => $state.composableBuilder( column: $state.table.sourceId, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get sourceType => $state.composableBuilder( column: $state.table.sourceType, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get createdAt => $state.composableBuilder( column: $state.table.createdAt, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); } class $$SourceMatchTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $SourceMatchTableTable> { $$SourceMatchTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get trackId => $state.composableBuilder( column: $state.table.trackId, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get sourceId => $state.composableBuilder( column: $state.table.sourceId, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get sourceType => $state.composableBuilder( column: $state.table.sourceType, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get createdAt => $state.composableBuilder( column: $state.table.createdAt, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$SourceMatchTableTableTableManager extends RootTableManager< _$AppDatabase, $SourceMatchTableTable, SourceMatchTableData, $$SourceMatchTableTableFilterComposer, $$SourceMatchTableTableOrderingComposer, $$SourceMatchTableTableCreateCompanionBuilder, $$SourceMatchTableTableUpdateCompanionBuilder, ( SourceMatchTableData, BaseReferences<_$AppDatabase, $SourceMatchTableTable, SourceMatchTableData> ), SourceMatchTableData, PrefetchHooks Function()> { $$SourceMatchTableTableTableManager( _$AppDatabase db, $SourceMatchTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$SourceMatchTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$SourceMatchTableTableOrderingComposer(ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value trackId = const Value.absent(), Value sourceId = const Value.absent(), Value sourceType = const Value.absent(), Value createdAt = const Value.absent(), }) => SourceMatchTableCompanion( id: id, trackId: trackId, sourceId: sourceId, sourceType: sourceType, createdAt: createdAt, ), createCompanionCallback: ({ Value id = const Value.absent(), required String trackId, required String sourceId, Value sourceType = const Value.absent(), Value createdAt = const Value.absent(), }) => SourceMatchTableCompanion.insert( id: id, trackId: trackId, sourceId: sourceId, sourceType: sourceType, createdAt: createdAt, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$SourceMatchTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $SourceMatchTableTable, SourceMatchTableData, $$SourceMatchTableTableFilterComposer, $$SourceMatchTableTableOrderingComposer, $$SourceMatchTableTableCreateCompanionBuilder, $$SourceMatchTableTableUpdateCompanionBuilder, ( SourceMatchTableData, BaseReferences<_$AppDatabase, $SourceMatchTableTable, SourceMatchTableData> ), SourceMatchTableData, PrefetchHooks Function()>; typedef $$HistoryTableTableCreateCompanionBuilder = HistoryTableCompanion Function({ Value id, Value createdAt, required HistoryEntryType type, required String itemId, required Map data, }); typedef $$HistoryTableTableUpdateCompanionBuilder = HistoryTableCompanion Function({ Value id, Value createdAt, Value type, Value itemId, Value> data, }); class $$HistoryTableTableFilterComposer extends FilterComposer<_$AppDatabase, $HistoryTableTable> { $$HistoryTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get createdAt => $state.composableBuilder( column: $state.table.createdAt, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get type => $state.composableBuilder( column: $state.table.type, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get itemId => $state.composableBuilder( column: $state.table.itemId, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters, Map, String> get data => $state.composableBuilder( column: $state.table.data, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); } class $$HistoryTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $HistoryTableTable> { $$HistoryTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get createdAt => $state.composableBuilder( column: $state.table.createdAt, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get type => $state.composableBuilder( column: $state.table.type, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get itemId => $state.composableBuilder( column: $state.table.itemId, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get data => $state.composableBuilder( column: $state.table.data, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$HistoryTableTableTableManager extends RootTableManager< _$AppDatabase, $HistoryTableTable, HistoryTableData, $$HistoryTableTableFilterComposer, $$HistoryTableTableOrderingComposer, $$HistoryTableTableCreateCompanionBuilder, $$HistoryTableTableUpdateCompanionBuilder, ( HistoryTableData, BaseReferences<_$AppDatabase, $HistoryTableTable, HistoryTableData> ), HistoryTableData, PrefetchHooks Function()> { $$HistoryTableTableTableManager(_$AppDatabase db, $HistoryTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$HistoryTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$HistoryTableTableOrderingComposer(ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value createdAt = const Value.absent(), Value type = const Value.absent(), Value itemId = const Value.absent(), Value> data = const Value.absent(), }) => HistoryTableCompanion( id: id, createdAt: createdAt, type: type, itemId: itemId, data: data, ), createCompanionCallback: ({ Value id = const Value.absent(), Value createdAt = const Value.absent(), required HistoryEntryType type, required String itemId, required Map data, }) => HistoryTableCompanion.insert( id: id, createdAt: createdAt, type: type, itemId: itemId, data: data, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$HistoryTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $HistoryTableTable, HistoryTableData, $$HistoryTableTableFilterComposer, $$HistoryTableTableOrderingComposer, $$HistoryTableTableCreateCompanionBuilder, $$HistoryTableTableUpdateCompanionBuilder, ( HistoryTableData, BaseReferences<_$AppDatabase, $HistoryTableTable, HistoryTableData> ), HistoryTableData, PrefetchHooks Function()>; typedef $$LyricsTableTableCreateCompanionBuilder = LyricsTableCompanion Function({ Value id, required String trackId, required SubtitleSimple data, }); typedef $$LyricsTableTableUpdateCompanionBuilder = LyricsTableCompanion Function({ Value id, Value trackId, Value data, }); class $$LyricsTableTableFilterComposer extends FilterComposer<_$AppDatabase, $LyricsTableTable> { $$LyricsTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get trackId => $state.composableBuilder( column: $state.table.trackId, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get data => $state.composableBuilder( column: $state.table.data, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); } class $$LyricsTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $LyricsTableTable> { $$LyricsTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get trackId => $state.composableBuilder( column: $state.table.trackId, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get data => $state.composableBuilder( column: $state.table.data, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$LyricsTableTableTableManager extends RootTableManager< _$AppDatabase, $LyricsTableTable, LyricsTableData, $$LyricsTableTableFilterComposer, $$LyricsTableTableOrderingComposer, $$LyricsTableTableCreateCompanionBuilder, $$LyricsTableTableUpdateCompanionBuilder, ( LyricsTableData, BaseReferences<_$AppDatabase, $LyricsTableTable, LyricsTableData> ), LyricsTableData, PrefetchHooks Function()> { $$LyricsTableTableTableManager(_$AppDatabase db, $LyricsTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$LyricsTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$LyricsTableTableOrderingComposer(ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value trackId = const Value.absent(), Value data = const Value.absent(), }) => LyricsTableCompanion( id: id, trackId: trackId, data: data, ), createCompanionCallback: ({ Value id = const Value.absent(), required String trackId, required SubtitleSimple data, }) => LyricsTableCompanion.insert( id: id, trackId: trackId, data: data, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$LyricsTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $LyricsTableTable, LyricsTableData, $$LyricsTableTableFilterComposer, $$LyricsTableTableOrderingComposer, $$LyricsTableTableCreateCompanionBuilder, $$LyricsTableTableUpdateCompanionBuilder, ( LyricsTableData, BaseReferences<_$AppDatabase, $LyricsTableTable, LyricsTableData> ), LyricsTableData, PrefetchHooks Function()>; class $AppDatabaseManager { final _$AppDatabase _db; $AppDatabaseManager(this._db); $$AuthenticationTableTableTableManager get authenticationTable => $$AuthenticationTableTableTableManager(_db, _db.authenticationTable); $$BlacklistTableTableTableManager get blacklistTable => $$BlacklistTableTableTableManager(_db, _db.blacklistTable); $$PreferencesTableTableTableManager get preferencesTable => $$PreferencesTableTableTableManager(_db, _db.preferencesTable); $$ScrobblerTableTableTableManager get scrobblerTable => $$ScrobblerTableTableTableManager(_db, _db.scrobblerTable); $$SkipSegmentTableTableTableManager get skipSegmentTable => $$SkipSegmentTableTableTableManager(_db, _db.skipSegmentTable); $$SourceMatchTableTableTableManager get sourceMatchTable => $$SourceMatchTableTableTableManager(_db, _db.sourceMatchTable); $$HistoryTableTableTableManager get historyTable => $$HistoryTableTableTableManager(_db, _db.historyTable); $$LyricsTableTableTableManager get lyricsTable => $$LyricsTableTableTableManager(_db, _db.lyricsTable); }