// 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 $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(); } } class $AudioPlayerStateTableTable extends AudioPlayerStateTable with TableInfo<$AudioPlayerStateTableTable, AudioPlayerStateTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $AudioPlayerStateTableTable(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 _playingMeta = const VerificationMeta('playing'); @override late final GeneratedColumn playing = GeneratedColumn( 'playing', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: true, defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("playing" IN (0, 1))')); static const VerificationMeta _loopModeMeta = const VerificationMeta('loopMode'); @override late final GeneratedColumnWithTypeConverter loopMode = GeneratedColumn('loop_mode', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter( $AudioPlayerStateTableTable.$converterloopMode); static const VerificationMeta _shuffledMeta = const VerificationMeta('shuffled'); @override late final GeneratedColumn shuffled = GeneratedColumn( 'shuffled', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: true, defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("shuffled" IN (0, 1))')); static const VerificationMeta _collectionsMeta = const VerificationMeta('collections'); @override late final GeneratedColumnWithTypeConverter, String> collections = GeneratedColumn('collections', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter>( $AudioPlayerStateTableTable.$convertercollections); @override List get $columns => [id, playing, loopMode, shuffled, collections]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'audio_player_state_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('playing')) { context.handle(_playingMeta, playing.isAcceptableOrUnknown(data['playing']!, _playingMeta)); } else if (isInserting) { context.missing(_playingMeta); } context.handle(_loopModeMeta, const VerificationResult.success()); if (data.containsKey('shuffled')) { context.handle(_shuffledMeta, shuffled.isAcceptableOrUnknown(data['shuffled']!, _shuffledMeta)); } else if (isInserting) { context.missing(_shuffledMeta); } context.handle(_collectionsMeta, const VerificationResult.success()); return context; } @override Set get $primaryKey => {id}; @override AudioPlayerStateTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return AudioPlayerStateTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, playing: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}playing'])!, loopMode: $AudioPlayerStateTableTable.$converterloopMode.fromSql( attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}loop_mode'])!), shuffled: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}shuffled'])!, collections: $AudioPlayerStateTableTable.$convertercollections.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}collections'])!), ); } @override $AudioPlayerStateTableTable createAlias(String alias) { return $AudioPlayerStateTableTable(attachedDatabase, alias); } static JsonTypeConverter2 $converterloopMode = const EnumNameConverter(PlaylistMode.values); static TypeConverter, String> $convertercollections = const StringListConverter(); } class AudioPlayerStateTableData extends DataClass implements Insertable { final int id; final bool playing; final PlaylistMode loopMode; final bool shuffled; final List collections; const AudioPlayerStateTableData( {required this.id, required this.playing, required this.loopMode, required this.shuffled, required this.collections}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['playing'] = Variable(playing); { map['loop_mode'] = Variable( $AudioPlayerStateTableTable.$converterloopMode.toSql(loopMode)); } map['shuffled'] = Variable(shuffled); { map['collections'] = Variable( $AudioPlayerStateTableTable.$convertercollections.toSql(collections)); } return map; } AudioPlayerStateTableCompanion toCompanion(bool nullToAbsent) { return AudioPlayerStateTableCompanion( id: Value(id), playing: Value(playing), loopMode: Value(loopMode), shuffled: Value(shuffled), collections: Value(collections), ); } factory AudioPlayerStateTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return AudioPlayerStateTableData( id: serializer.fromJson(json['id']), playing: serializer.fromJson(json['playing']), loopMode: $AudioPlayerStateTableTable.$converterloopMode .fromJson(serializer.fromJson(json['loopMode'])), shuffled: serializer.fromJson(json['shuffled']), collections: serializer.fromJson>(json['collections']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'playing': serializer.toJson(playing), 'loopMode': serializer.toJson( $AudioPlayerStateTableTable.$converterloopMode.toJson(loopMode)), 'shuffled': serializer.toJson(shuffled), 'collections': serializer.toJson>(collections), }; } AudioPlayerStateTableData copyWith( {int? id, bool? playing, PlaylistMode? loopMode, bool? shuffled, List? collections}) => AudioPlayerStateTableData( id: id ?? this.id, playing: playing ?? this.playing, loopMode: loopMode ?? this.loopMode, shuffled: shuffled ?? this.shuffled, collections: collections ?? this.collections, ); AudioPlayerStateTableData copyWithCompanion( AudioPlayerStateTableCompanion data) { return AudioPlayerStateTableData( id: data.id.present ? data.id.value : this.id, playing: data.playing.present ? data.playing.value : this.playing, loopMode: data.loopMode.present ? data.loopMode.value : this.loopMode, shuffled: data.shuffled.present ? data.shuffled.value : this.shuffled, collections: data.collections.present ? data.collections.value : this.collections, ); } @override String toString() { return (StringBuffer('AudioPlayerStateTableData(') ..write('id: $id, ') ..write('playing: $playing, ') ..write('loopMode: $loopMode, ') ..write('shuffled: $shuffled, ') ..write('collections: $collections') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, playing, loopMode, shuffled, collections); @override bool operator ==(Object other) => identical(this, other) || (other is AudioPlayerStateTableData && other.id == this.id && other.playing == this.playing && other.loopMode == this.loopMode && other.shuffled == this.shuffled && other.collections == this.collections); } class AudioPlayerStateTableCompanion extends UpdateCompanion { final Value id; final Value playing; final Value loopMode; final Value shuffled; final Value> collections; const AudioPlayerStateTableCompanion({ this.id = const Value.absent(), this.playing = const Value.absent(), this.loopMode = const Value.absent(), this.shuffled = const Value.absent(), this.collections = const Value.absent(), }); AudioPlayerStateTableCompanion.insert({ this.id = const Value.absent(), required bool playing, required PlaylistMode loopMode, required bool shuffled, required List collections, }) : playing = Value(playing), loopMode = Value(loopMode), shuffled = Value(shuffled), collections = Value(collections); static Insertable custom({ Expression? id, Expression? playing, Expression? loopMode, Expression? shuffled, Expression? collections, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (playing != null) 'playing': playing, if (loopMode != null) 'loop_mode': loopMode, if (shuffled != null) 'shuffled': shuffled, if (collections != null) 'collections': collections, }); } AudioPlayerStateTableCompanion copyWith( {Value? id, Value? playing, Value? loopMode, Value? shuffled, Value>? collections}) { return AudioPlayerStateTableCompanion( id: id ?? this.id, playing: playing ?? this.playing, loopMode: loopMode ?? this.loopMode, shuffled: shuffled ?? this.shuffled, collections: collections ?? this.collections, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (playing.present) { map['playing'] = Variable(playing.value); } if (loopMode.present) { map['loop_mode'] = Variable( $AudioPlayerStateTableTable.$converterloopMode.toSql(loopMode.value)); } if (shuffled.present) { map['shuffled'] = Variable(shuffled.value); } if (collections.present) { map['collections'] = Variable($AudioPlayerStateTableTable .$convertercollections .toSql(collections.value)); } return map; } @override String toString() { return (StringBuffer('AudioPlayerStateTableCompanion(') ..write('id: $id, ') ..write('playing: $playing, ') ..write('loopMode: $loopMode, ') ..write('shuffled: $shuffled, ') ..write('collections: $collections') ..write(')')) .toString(); } } class $PlaylistTableTable extends PlaylistTable with TableInfo<$PlaylistTableTable, PlaylistTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $PlaylistTableTable(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 _audioPlayerStateIdMeta = const VerificationMeta('audioPlayerStateId'); @override late final GeneratedColumn audioPlayerStateId = GeneratedColumn( 'audio_player_state_id', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, defaultConstraints: GeneratedColumn.constraintIsAlways( 'REFERENCES audio_player_state_table (id)')); static const VerificationMeta _indexMeta = const VerificationMeta('index'); @override late final GeneratedColumn index = GeneratedColumn( 'index', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true); @override List get $columns => [id, audioPlayerStateId, index]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'playlist_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('audio_player_state_id')) { context.handle( _audioPlayerStateIdMeta, audioPlayerStateId.isAcceptableOrUnknown( data['audio_player_state_id']!, _audioPlayerStateIdMeta)); } else if (isInserting) { context.missing(_audioPlayerStateIdMeta); } if (data.containsKey('index')) { context.handle( _indexMeta, index.isAcceptableOrUnknown(data['index']!, _indexMeta)); } else if (isInserting) { context.missing(_indexMeta); } return context; } @override Set get $primaryKey => {id}; @override PlaylistTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return PlaylistTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, audioPlayerStateId: attachedDatabase.typeMapping.read( DriftSqlType.int, data['${effectivePrefix}audio_player_state_id'])!, index: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}index'])!, ); } @override $PlaylistTableTable createAlias(String alias) { return $PlaylistTableTable(attachedDatabase, alias); } } class PlaylistTableData extends DataClass implements Insertable { final int id; final int audioPlayerStateId; final int index; const PlaylistTableData( {required this.id, required this.audioPlayerStateId, required this.index}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['audio_player_state_id'] = Variable(audioPlayerStateId); map['index'] = Variable(index); return map; } PlaylistTableCompanion toCompanion(bool nullToAbsent) { return PlaylistTableCompanion( id: Value(id), audioPlayerStateId: Value(audioPlayerStateId), index: Value(index), ); } factory PlaylistTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return PlaylistTableData( id: serializer.fromJson(json['id']), audioPlayerStateId: serializer.fromJson(json['audioPlayerStateId']), index: serializer.fromJson(json['index']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'audioPlayerStateId': serializer.toJson(audioPlayerStateId), 'index': serializer.toJson(index), }; } PlaylistTableData copyWith({int? id, int? audioPlayerStateId, int? index}) => PlaylistTableData( id: id ?? this.id, audioPlayerStateId: audioPlayerStateId ?? this.audioPlayerStateId, index: index ?? this.index, ); PlaylistTableData copyWithCompanion(PlaylistTableCompanion data) { return PlaylistTableData( id: data.id.present ? data.id.value : this.id, audioPlayerStateId: data.audioPlayerStateId.present ? data.audioPlayerStateId.value : this.audioPlayerStateId, index: data.index.present ? data.index.value : this.index, ); } @override String toString() { return (StringBuffer('PlaylistTableData(') ..write('id: $id, ') ..write('audioPlayerStateId: $audioPlayerStateId, ') ..write('index: $index') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, audioPlayerStateId, index); @override bool operator ==(Object other) => identical(this, other) || (other is PlaylistTableData && other.id == this.id && other.audioPlayerStateId == this.audioPlayerStateId && other.index == this.index); } class PlaylistTableCompanion extends UpdateCompanion { final Value id; final Value audioPlayerStateId; final Value index; const PlaylistTableCompanion({ this.id = const Value.absent(), this.audioPlayerStateId = const Value.absent(), this.index = const Value.absent(), }); PlaylistTableCompanion.insert({ this.id = const Value.absent(), required int audioPlayerStateId, required int index, }) : audioPlayerStateId = Value(audioPlayerStateId), index = Value(index); static Insertable custom({ Expression? id, Expression? audioPlayerStateId, Expression? index, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (audioPlayerStateId != null) 'audio_player_state_id': audioPlayerStateId, if (index != null) 'index': index, }); } PlaylistTableCompanion copyWith( {Value? id, Value? audioPlayerStateId, Value? index}) { return PlaylistTableCompanion( id: id ?? this.id, audioPlayerStateId: audioPlayerStateId ?? this.audioPlayerStateId, index: index ?? this.index, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (audioPlayerStateId.present) { map['audio_player_state_id'] = Variable(audioPlayerStateId.value); } if (index.present) { map['index'] = Variable(index.value); } return map; } @override String toString() { return (StringBuffer('PlaylistTableCompanion(') ..write('id: $id, ') ..write('audioPlayerStateId: $audioPlayerStateId, ') ..write('index: $index') ..write(')')) .toString(); } } class $PlaylistMediaTableTable extends PlaylistMediaTable with TableInfo<$PlaylistMediaTableTable, PlaylistMediaTableData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $PlaylistMediaTableTable(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 _playlistIdMeta = const VerificationMeta('playlistId'); @override late final GeneratedColumn playlistId = GeneratedColumn( 'playlist_id', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true, defaultConstraints: GeneratedColumn.constraintIsAlways('REFERENCES playlist_table (id)')); static const VerificationMeta _uriMeta = const VerificationMeta('uri'); @override late final GeneratedColumn uri = GeneratedColumn( 'uri', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _extrasMeta = const VerificationMeta('extras'); @override late final GeneratedColumnWithTypeConverter?, String> extras = GeneratedColumn('extras', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false) .withConverter?>( $PlaylistMediaTableTable.$converterextrasn); static const VerificationMeta _httpHeadersMeta = const VerificationMeta('httpHeaders'); @override late final GeneratedColumnWithTypeConverter?, String> httpHeaders = GeneratedColumn('http_headers', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false) .withConverter?>( $PlaylistMediaTableTable.$converterhttpHeadersn); @override List get $columns => [id, playlistId, uri, extras, httpHeaders]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'playlist_media_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('playlist_id')) { context.handle( _playlistIdMeta, playlistId.isAcceptableOrUnknown( data['playlist_id']!, _playlistIdMeta)); } else if (isInserting) { context.missing(_playlistIdMeta); } if (data.containsKey('uri')) { context.handle( _uriMeta, uri.isAcceptableOrUnknown(data['uri']!, _uriMeta)); } else if (isInserting) { context.missing(_uriMeta); } context.handle(_extrasMeta, const VerificationResult.success()); context.handle(_httpHeadersMeta, const VerificationResult.success()); return context; } @override Set get $primaryKey => {id}; @override PlaylistMediaTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return PlaylistMediaTableData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, playlistId: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}playlist_id'])!, uri: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}uri'])!, extras: $PlaylistMediaTableTable.$converterextrasn.fromSql( attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}extras'])), httpHeaders: $PlaylistMediaTableTable.$converterhttpHeadersn.fromSql( attachedDatabase.typeMapping.read( DriftSqlType.string, data['${effectivePrefix}http_headers'])), ); } @override $PlaylistMediaTableTable createAlias(String alias) { return $PlaylistMediaTableTable(attachedDatabase, alias); } static TypeConverter, String> $converterextras = const MapTypeConverter(); static TypeConverter?, String?> $converterextrasn = NullAwareTypeConverter.wrap($converterextras); static TypeConverter, String> $converterhttpHeaders = const MapTypeConverter(); static TypeConverter?, String?> $converterhttpHeadersn = NullAwareTypeConverter.wrap($converterhttpHeaders); } class PlaylistMediaTableData extends DataClass implements Insertable { final int id; final int playlistId; final String uri; final Map? extras; final Map? httpHeaders; const PlaylistMediaTableData( {required this.id, required this.playlistId, required this.uri, this.extras, this.httpHeaders}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['playlist_id'] = Variable(playlistId); map['uri'] = Variable(uri); if (!nullToAbsent || extras != null) { map['extras'] = Variable( $PlaylistMediaTableTable.$converterextrasn.toSql(extras)); } if (!nullToAbsent || httpHeaders != null) { map['http_headers'] = Variable( $PlaylistMediaTableTable.$converterhttpHeadersn.toSql(httpHeaders)); } return map; } PlaylistMediaTableCompanion toCompanion(bool nullToAbsent) { return PlaylistMediaTableCompanion( id: Value(id), playlistId: Value(playlistId), uri: Value(uri), extras: extras == null && nullToAbsent ? const Value.absent() : Value(extras), httpHeaders: httpHeaders == null && nullToAbsent ? const Value.absent() : Value(httpHeaders), ); } factory PlaylistMediaTableData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return PlaylistMediaTableData( id: serializer.fromJson(json['id']), playlistId: serializer.fromJson(json['playlistId']), uri: serializer.fromJson(json['uri']), extras: serializer.fromJson?>(json['extras']), httpHeaders: serializer.fromJson?>(json['httpHeaders']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'playlistId': serializer.toJson(playlistId), 'uri': serializer.toJson(uri), 'extras': serializer.toJson?>(extras), 'httpHeaders': serializer.toJson?>(httpHeaders), }; } PlaylistMediaTableData copyWith( {int? id, int? playlistId, String? uri, Value?> extras = const Value.absent(), Value?> httpHeaders = const Value.absent()}) => PlaylistMediaTableData( id: id ?? this.id, playlistId: playlistId ?? this.playlistId, uri: uri ?? this.uri, extras: extras.present ? extras.value : this.extras, httpHeaders: httpHeaders.present ? httpHeaders.value : this.httpHeaders, ); PlaylistMediaTableData copyWithCompanion(PlaylistMediaTableCompanion data) { return PlaylistMediaTableData( id: data.id.present ? data.id.value : this.id, playlistId: data.playlistId.present ? data.playlistId.value : this.playlistId, uri: data.uri.present ? data.uri.value : this.uri, extras: data.extras.present ? data.extras.value : this.extras, httpHeaders: data.httpHeaders.present ? data.httpHeaders.value : this.httpHeaders, ); } @override String toString() { return (StringBuffer('PlaylistMediaTableData(') ..write('id: $id, ') ..write('playlistId: $playlistId, ') ..write('uri: $uri, ') ..write('extras: $extras, ') ..write('httpHeaders: $httpHeaders') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, playlistId, uri, extras, httpHeaders); @override bool operator ==(Object other) => identical(this, other) || (other is PlaylistMediaTableData && other.id == this.id && other.playlistId == this.playlistId && other.uri == this.uri && other.extras == this.extras && other.httpHeaders == this.httpHeaders); } class PlaylistMediaTableCompanion extends UpdateCompanion { final Value id; final Value playlistId; final Value uri; final Value?> extras; final Value?> httpHeaders; const PlaylistMediaTableCompanion({ this.id = const Value.absent(), this.playlistId = const Value.absent(), this.uri = const Value.absent(), this.extras = const Value.absent(), this.httpHeaders = const Value.absent(), }); PlaylistMediaTableCompanion.insert({ this.id = const Value.absent(), required int playlistId, required String uri, this.extras = const Value.absent(), this.httpHeaders = const Value.absent(), }) : playlistId = Value(playlistId), uri = Value(uri); static Insertable custom({ Expression? id, Expression? playlistId, Expression? uri, Expression? extras, Expression? httpHeaders, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (playlistId != null) 'playlist_id': playlistId, if (uri != null) 'uri': uri, if (extras != null) 'extras': extras, if (httpHeaders != null) 'http_headers': httpHeaders, }); } PlaylistMediaTableCompanion copyWith( {Value? id, Value? playlistId, Value? uri, Value?>? extras, Value?>? httpHeaders}) { return PlaylistMediaTableCompanion( id: id ?? this.id, playlistId: playlistId ?? this.playlistId, uri: uri ?? this.uri, extras: extras ?? this.extras, httpHeaders: httpHeaders ?? this.httpHeaders, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (playlistId.present) { map['playlist_id'] = Variable(playlistId.value); } if (uri.present) { map['uri'] = Variable(uri.value); } if (extras.present) { map['extras'] = Variable( $PlaylistMediaTableTable.$converterextrasn.toSql(extras.value)); } if (httpHeaders.present) { map['http_headers'] = Variable($PlaylistMediaTableTable .$converterhttpHeadersn .toSql(httpHeaders.value)); } return map; } @override String toString() { return (StringBuffer('PlaylistMediaTableCompanion(') ..write('id: $id, ') ..write('playlistId: $playlistId, ') ..write('uri: $uri, ') ..write('extras: $extras, ') ..write('httpHeaders: $httpHeaders') ..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 $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 $AudioPlayerStateTableTable audioPlayerStateTable = $AudioPlayerStateTableTable(this); late final $PlaylistTableTable playlistTable = $PlaylistTableTable(this); late final $PlaylistMediaTableTable playlistMediaTable = $PlaylistMediaTableTable(this); 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, preferencesTable, scrobblerTable, skipSegmentTable, sourceMatchTable, historyTable, lyricsTable, audioPlayerStateTable, playlistTable, playlistMediaTable, 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 $$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()>; typedef $$AudioPlayerStateTableTableCreateCompanionBuilder = AudioPlayerStateTableCompanion Function({ Value id, required bool playing, required PlaylistMode loopMode, required bool shuffled, required List collections, }); typedef $$AudioPlayerStateTableTableUpdateCompanionBuilder = AudioPlayerStateTableCompanion Function({ Value id, Value playing, Value loopMode, Value shuffled, Value> collections, }); final class $$AudioPlayerStateTableTableReferences extends BaseReferences< _$AppDatabase, $AudioPlayerStateTableTable, AudioPlayerStateTableData> { $$AudioPlayerStateTableTableReferences( super.$_db, super.$_table, super.$_typedResult); static MultiTypedResultKey<$PlaylistTableTable, List> _playlistTableRefsTable(_$AppDatabase db) => MultiTypedResultKey.fromTable(db.playlistTable, aliasName: $_aliasNameGenerator(db.audioPlayerStateTable.id, db.playlistTable.audioPlayerStateId)); $$PlaylistTableTableProcessedTableManager get playlistTableRefs { final manager = $$PlaylistTableTableTableManager($_db, $_db.playlistTable) .filter((f) => f.audioPlayerStateId.id($_item.id)); final cache = $_typedResult.readTableOrNull(_playlistTableRefsTable($_db)); return ProcessedTableManager( manager.$state.copyWith(prefetchedData: cache)); } } class $$AudioPlayerStateTableTableFilterComposer extends FilterComposer<_$AppDatabase, $AudioPlayerStateTableTable> { $$AudioPlayerStateTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get playing => $state.composableBuilder( column: $state.table.playing, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters get loopMode => $state.composableBuilder( column: $state.table.loopMode, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnFilters get shuffled => $state.composableBuilder( column: $state.table.shuffled, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters, List, String> get collections => $state.composableBuilder( column: $state.table.collections, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ComposableFilter playlistTableRefs( ComposableFilter Function($$PlaylistTableTableFilterComposer f) f) { final $$PlaylistTableTableFilterComposer composer = $state.composerBuilder( composer: this, getCurrentColumn: (t) => t.id, referencedTable: $state.db.playlistTable, getReferencedColumn: (t) => t.audioPlayerStateId, builder: (joinBuilder, parentComposers) => $$PlaylistTableTableFilterComposer(ComposerState($state.db, $state.db.playlistTable, joinBuilder, parentComposers))); return f(composer); } } class $$AudioPlayerStateTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $AudioPlayerStateTableTable> { $$AudioPlayerStateTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get playing => $state.composableBuilder( column: $state.table.playing, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get loopMode => $state.composableBuilder( column: $state.table.loopMode, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get shuffled => $state.composableBuilder( column: $state.table.shuffled, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get collections => $state.composableBuilder( column: $state.table.collections, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); } class $$AudioPlayerStateTableTableTableManager extends RootTableManager< _$AppDatabase, $AudioPlayerStateTableTable, AudioPlayerStateTableData, $$AudioPlayerStateTableTableFilterComposer, $$AudioPlayerStateTableTableOrderingComposer, $$AudioPlayerStateTableTableCreateCompanionBuilder, $$AudioPlayerStateTableTableUpdateCompanionBuilder, (AudioPlayerStateTableData, $$AudioPlayerStateTableTableReferences), AudioPlayerStateTableData, PrefetchHooks Function({bool playlistTableRefs})> { $$AudioPlayerStateTableTableTableManager( _$AppDatabase db, $AudioPlayerStateTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$AudioPlayerStateTableTableFilterComposer( ComposerState(db, table)), orderingComposer: $$AudioPlayerStateTableTableOrderingComposer( ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value playing = const Value.absent(), Value loopMode = const Value.absent(), Value shuffled = const Value.absent(), Value> collections = const Value.absent(), }) => AudioPlayerStateTableCompanion( id: id, playing: playing, loopMode: loopMode, shuffled: shuffled, collections: collections, ), createCompanionCallback: ({ Value id = const Value.absent(), required bool playing, required PlaylistMode loopMode, required bool shuffled, required List collections, }) => AudioPlayerStateTableCompanion.insert( id: id, playing: playing, loopMode: loopMode, shuffled: shuffled, collections: collections, ), withReferenceMapper: (p0) => p0 .map((e) => ( e.readTable(table), $$AudioPlayerStateTableTableReferences(db, table, e) )) .toList(), prefetchHooksCallback: ({playlistTableRefs = false}) { return PrefetchHooks( db: db, explicitlyWatchedTables: [ if (playlistTableRefs) db.playlistTable ], addJoins: null, getPrefetchedDataCallback: (items) async { return [ if (playlistTableRefs) await $_getPrefetchedData( currentTable: table, referencedTable: $$AudioPlayerStateTableTableReferences ._playlistTableRefsTable(db), managerFromTypedResult: (p0) => $$AudioPlayerStateTableTableReferences( db, table, p0) .playlistTableRefs, referencedItemsForCurrentItem: (item, referencedItems) => referencedItems .where((e) => e.audioPlayerStateId == item.id), typedResults: items) ]; }, ); }, )); } typedef $$AudioPlayerStateTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $AudioPlayerStateTableTable, AudioPlayerStateTableData, $$AudioPlayerStateTableTableFilterComposer, $$AudioPlayerStateTableTableOrderingComposer, $$AudioPlayerStateTableTableCreateCompanionBuilder, $$AudioPlayerStateTableTableUpdateCompanionBuilder, (AudioPlayerStateTableData, $$AudioPlayerStateTableTableReferences), AudioPlayerStateTableData, PrefetchHooks Function({bool playlistTableRefs})>; typedef $$PlaylistTableTableCreateCompanionBuilder = PlaylistTableCompanion Function({ Value id, required int audioPlayerStateId, required int index, }); typedef $$PlaylistTableTableUpdateCompanionBuilder = PlaylistTableCompanion Function({ Value id, Value audioPlayerStateId, Value index, }); final class $$PlaylistTableTableReferences extends BaseReferences<_$AppDatabase, $PlaylistTableTable, PlaylistTableData> { $$PlaylistTableTableReferences( super.$_db, super.$_table, super.$_typedResult); static $AudioPlayerStateTableTable _audioPlayerStateIdTable( _$AppDatabase db) => db.audioPlayerStateTable.createAlias($_aliasNameGenerator( db.playlistTable.audioPlayerStateId, db.audioPlayerStateTable.id)); $$AudioPlayerStateTableTableProcessedTableManager? get audioPlayerStateId { if ($_item.audioPlayerStateId == null) return null; final manager = $$AudioPlayerStateTableTableTableManager( $_db, $_db.audioPlayerStateTable) .filter((f) => f.id($_item.audioPlayerStateId!)); final item = $_typedResult.readTableOrNull(_audioPlayerStateIdTable($_db)); if (item == null) return manager; return ProcessedTableManager( manager.$state.copyWith(prefetchedData: [item])); } static MultiTypedResultKey<$PlaylistMediaTableTable, List> _playlistMediaTableRefsTable( _$AppDatabase db) => MultiTypedResultKey.fromTable(db.playlistMediaTable, aliasName: $_aliasNameGenerator( db.playlistTable.id, db.playlistMediaTable.playlistId)); $$PlaylistMediaTableTableProcessedTableManager get playlistMediaTableRefs { final manager = $$PlaylistMediaTableTableTableManager($_db, $_db.playlistMediaTable) .filter((f) => f.playlistId.id($_item.id)); final cache = $_typedResult.readTableOrNull(_playlistMediaTableRefsTable($_db)); return ProcessedTableManager( manager.$state.copyWith(prefetchedData: cache)); } } class $$PlaylistTableTableFilterComposer extends FilterComposer<_$AppDatabase, $PlaylistTableTable> { $$PlaylistTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get index => $state.composableBuilder( column: $state.table.index, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); $$AudioPlayerStateTableTableFilterComposer get audioPlayerStateId { final $$AudioPlayerStateTableTableFilterComposer composer = $state.composerBuilder( composer: this, getCurrentColumn: (t) => t.audioPlayerStateId, referencedTable: $state.db.audioPlayerStateTable, getReferencedColumn: (t) => t.id, builder: (joinBuilder, parentComposers) => $$AudioPlayerStateTableTableFilterComposer(ComposerState( $state.db, $state.db.audioPlayerStateTable, joinBuilder, parentComposers))); return composer; } ComposableFilter playlistMediaTableRefs( ComposableFilter Function($$PlaylistMediaTableTableFilterComposer f) f) { final $$PlaylistMediaTableTableFilterComposer composer = $state .composerBuilder( composer: this, getCurrentColumn: (t) => t.id, referencedTable: $state.db.playlistMediaTable, getReferencedColumn: (t) => t.playlistId, builder: (joinBuilder, parentComposers) => $$PlaylistMediaTableTableFilterComposer(ComposerState( $state.db, $state.db.playlistMediaTable, joinBuilder, parentComposers))); return f(composer); } } class $$PlaylistTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $PlaylistTableTable> { $$PlaylistTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get index => $state.composableBuilder( column: $state.table.index, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); $$AudioPlayerStateTableTableOrderingComposer get audioPlayerStateId { final $$AudioPlayerStateTableTableOrderingComposer composer = $state.composerBuilder( composer: this, getCurrentColumn: (t) => t.audioPlayerStateId, referencedTable: $state.db.audioPlayerStateTable, getReferencedColumn: (t) => t.id, builder: (joinBuilder, parentComposers) => $$AudioPlayerStateTableTableOrderingComposer(ComposerState( $state.db, $state.db.audioPlayerStateTable, joinBuilder, parentComposers))); return composer; } } class $$PlaylistTableTableTableManager extends RootTableManager< _$AppDatabase, $PlaylistTableTable, PlaylistTableData, $$PlaylistTableTableFilterComposer, $$PlaylistTableTableOrderingComposer, $$PlaylistTableTableCreateCompanionBuilder, $$PlaylistTableTableUpdateCompanionBuilder, (PlaylistTableData, $$PlaylistTableTableReferences), PlaylistTableData, PrefetchHooks Function( {bool audioPlayerStateId, bool playlistMediaTableRefs})> { $$PlaylistTableTableTableManager(_$AppDatabase db, $PlaylistTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$PlaylistTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$PlaylistTableTableOrderingComposer(ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value audioPlayerStateId = const Value.absent(), Value index = const Value.absent(), }) => PlaylistTableCompanion( id: id, audioPlayerStateId: audioPlayerStateId, index: index, ), createCompanionCallback: ({ Value id = const Value.absent(), required int audioPlayerStateId, required int index, }) => PlaylistTableCompanion.insert( id: id, audioPlayerStateId: audioPlayerStateId, index: index, ), withReferenceMapper: (p0) => p0 .map((e) => ( e.readTable(table), $$PlaylistTableTableReferences(db, table, e) )) .toList(), prefetchHooksCallback: ( {audioPlayerStateId = false, playlistMediaTableRefs = false}) { return PrefetchHooks( db: db, explicitlyWatchedTables: [ if (playlistMediaTableRefs) db.playlistMediaTable ], addJoins: < T extends TableManagerState< dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic>>(state) { if (audioPlayerStateId) { state = state.withJoin( currentTable: table, currentColumn: table.audioPlayerStateId, referencedTable: $$PlaylistTableTableReferences ._audioPlayerStateIdTable(db), referencedColumn: $$PlaylistTableTableReferences ._audioPlayerStateIdTable(db) .id, ) as T; } return state; }, getPrefetchedDataCallback: (items) async { return [ if (playlistMediaTableRefs) await $_getPrefetchedData( currentTable: table, referencedTable: $$PlaylistTableTableReferences ._playlistMediaTableRefsTable(db), managerFromTypedResult: (p0) => $$PlaylistTableTableReferences(db, table, p0) .playlistMediaTableRefs, referencedItemsForCurrentItem: (item, referencedItems) => referencedItems .where((e) => e.playlistId == item.id), typedResults: items) ]; }, ); }, )); } typedef $$PlaylistTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $PlaylistTableTable, PlaylistTableData, $$PlaylistTableTableFilterComposer, $$PlaylistTableTableOrderingComposer, $$PlaylistTableTableCreateCompanionBuilder, $$PlaylistTableTableUpdateCompanionBuilder, (PlaylistTableData, $$PlaylistTableTableReferences), PlaylistTableData, PrefetchHooks Function( {bool audioPlayerStateId, bool playlistMediaTableRefs})>; typedef $$PlaylistMediaTableTableCreateCompanionBuilder = PlaylistMediaTableCompanion Function({ Value id, required int playlistId, required String uri, Value?> extras, Value?> httpHeaders, }); typedef $$PlaylistMediaTableTableUpdateCompanionBuilder = PlaylistMediaTableCompanion Function({ Value id, Value playlistId, Value uri, Value?> extras, Value?> httpHeaders, }); final class $$PlaylistMediaTableTableReferences extends BaseReferences< _$AppDatabase, $PlaylistMediaTableTable, PlaylistMediaTableData> { $$PlaylistMediaTableTableReferences( super.$_db, super.$_table, super.$_typedResult); static $PlaylistTableTable _playlistIdTable(_$AppDatabase db) => db.playlistTable.createAlias($_aliasNameGenerator( db.playlistMediaTable.playlistId, db.playlistTable.id)); $$PlaylistTableTableProcessedTableManager? get playlistId { if ($_item.playlistId == null) return null; final manager = $$PlaylistTableTableTableManager($_db, $_db.playlistTable) .filter((f) => f.id($_item.playlistId!)); final item = $_typedResult.readTableOrNull(_playlistIdTable($_db)); if (item == null) return manager; return ProcessedTableManager( manager.$state.copyWith(prefetchedData: [item])); } } class $$PlaylistMediaTableTableFilterComposer extends FilterComposer<_$AppDatabase, $PlaylistMediaTableTable> { $$PlaylistMediaTableTableFilterComposer(super.$state); ColumnFilters get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnFilters get uri => $state.composableBuilder( column: $state.table.uri, builder: (column, joinBuilders) => ColumnFilters(column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters?, Map, String> get extras => $state.composableBuilder( column: $state.table.extras, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); ColumnWithTypeConverterFilters?, Map, String> get httpHeaders => $state.composableBuilder( column: $state.table.httpHeaders, builder: (column, joinBuilders) => ColumnWithTypeConverterFilters( column, joinBuilders: joinBuilders)); $$PlaylistTableTableFilterComposer get playlistId { final $$PlaylistTableTableFilterComposer composer = $state.composerBuilder( composer: this, getCurrentColumn: (t) => t.playlistId, referencedTable: $state.db.playlistTable, getReferencedColumn: (t) => t.id, builder: (joinBuilder, parentComposers) => $$PlaylistTableTableFilterComposer(ComposerState($state.db, $state.db.playlistTable, joinBuilder, parentComposers))); return composer; } } class $$PlaylistMediaTableTableOrderingComposer extends OrderingComposer<_$AppDatabase, $PlaylistMediaTableTable> { $$PlaylistMediaTableTableOrderingComposer(super.$state); ColumnOrderings get id => $state.composableBuilder( column: $state.table.id, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get uri => $state.composableBuilder( column: $state.table.uri, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get extras => $state.composableBuilder( column: $state.table.extras, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); ColumnOrderings get httpHeaders => $state.composableBuilder( column: $state.table.httpHeaders, builder: (column, joinBuilders) => ColumnOrderings(column, joinBuilders: joinBuilders)); $$PlaylistTableTableOrderingComposer get playlistId { final $$PlaylistTableTableOrderingComposer composer = $state.composerBuilder( composer: this, getCurrentColumn: (t) => t.playlistId, referencedTable: $state.db.playlistTable, getReferencedColumn: (t) => t.id, builder: (joinBuilder, parentComposers) => $$PlaylistTableTableOrderingComposer(ComposerState($state.db, $state.db.playlistTable, joinBuilder, parentComposers))); return composer; } } class $$PlaylistMediaTableTableTableManager extends RootTableManager< _$AppDatabase, $PlaylistMediaTableTable, PlaylistMediaTableData, $$PlaylistMediaTableTableFilterComposer, $$PlaylistMediaTableTableOrderingComposer, $$PlaylistMediaTableTableCreateCompanionBuilder, $$PlaylistMediaTableTableUpdateCompanionBuilder, (PlaylistMediaTableData, $$PlaylistMediaTableTableReferences), PlaylistMediaTableData, PrefetchHooks Function({bool playlistId})> { $$PlaylistMediaTableTableTableManager( _$AppDatabase db, $PlaylistMediaTableTable table) : super(TableManagerState( db: db, table: table, filteringComposer: $$PlaylistMediaTableTableFilterComposer(ComposerState(db, table)), orderingComposer: $$PlaylistMediaTableTableOrderingComposer( ComposerState(db, table)), updateCompanionCallback: ({ Value id = const Value.absent(), Value playlistId = const Value.absent(), Value uri = const Value.absent(), Value?> extras = const Value.absent(), Value?> httpHeaders = const Value.absent(), }) => PlaylistMediaTableCompanion( id: id, playlistId: playlistId, uri: uri, extras: extras, httpHeaders: httpHeaders, ), createCompanionCallback: ({ Value id = const Value.absent(), required int playlistId, required String uri, Value?> extras = const Value.absent(), Value?> httpHeaders = const Value.absent(), }) => PlaylistMediaTableCompanion.insert( id: id, playlistId: playlistId, uri: uri, extras: extras, httpHeaders: httpHeaders, ), withReferenceMapper: (p0) => p0 .map((e) => ( e.readTable(table), $$PlaylistMediaTableTableReferences(db, table, e) )) .toList(), prefetchHooksCallback: ({playlistId = false}) { return PrefetchHooks( db: db, explicitlyWatchedTables: [], addJoins: < T extends TableManagerState< dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic>>(state) { if (playlistId) { state = state.withJoin( currentTable: table, currentColumn: table.playlistId, referencedTable: $$PlaylistMediaTableTableReferences ._playlistIdTable(db), referencedColumn: $$PlaylistMediaTableTableReferences ._playlistIdTable(db) .id, ) as T; } return state; }, getPrefetchedDataCallback: (items) async { return []; }, ); }, )); } typedef $$PlaylistMediaTableTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $PlaylistMediaTableTable, PlaylistMediaTableData, $$PlaylistMediaTableTableFilterComposer, $$PlaylistMediaTableTableOrderingComposer, $$PlaylistMediaTableTableCreateCompanionBuilder, $$PlaylistMediaTableTableUpdateCompanionBuilder, (PlaylistMediaTableData, $$PlaylistMediaTableTableReferences), PlaylistMediaTableData, PrefetchHooks Function({bool playlistId})>; class $AppDatabaseManager { final _$AppDatabase _db; $AppDatabaseManager(this._db); $$AuthenticationTableTableTableManager get authenticationTable => $$AuthenticationTableTableTableManager(_db, _db.authenticationTable); $$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); $$AudioPlayerStateTableTableTableManager get audioPlayerStateTable => $$AudioPlayerStateTableTableTableManager(_db, _db.audioPlayerStateTable); $$PlaylistTableTableTableManager get playlistTable => $$PlaylistTableTableTableManager(_db, _db.playlistTable); $$PlaylistMediaTableTableTableManager get playlistMediaTable => $$PlaylistMediaTableTableTableManager(_db, _db.playlistMediaTable); }