Re-run build

This commit is contained in:
Simon Binder 2023-10-22 12:33:10 +02:00
parent d70de95382
commit 86c071a965
6 changed files with 34 additions and 85 deletions

View File

@ -1,77 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'shared.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
TypeDescription _$TypeDescriptionFromJson(Map<String, dynamic> json) =>
TypeDescription(
type: $enumDecodeNullable(_$DriftSqlTypeEnumMap, json['type']),
customTypeName: json['customTypeName'] as String?,
);
Map<String, dynamic> _$TypeDescriptionToJson(TypeDescription instance) =>
<String, dynamic>{
'type': _$DriftSqlTypeEnumMap[instance.type],
'customTypeName': instance.customTypeName,
};
const _$DriftSqlTypeEnumMap = {
DriftSqlType.bool: 'bool',
DriftSqlType.string: 'string',
DriftSqlType.bigInt: 'bigInt',
DriftSqlType.int: 'int',
DriftSqlType.dateTime: 'dateTime',
DriftSqlType.blob: 'blob',
DriftSqlType.double: 'double',
DriftSqlType.any: 'any',
};
ColumnDescription _$ColumnDescriptionFromJson(Map<String, dynamic> json) =>
ColumnDescription(
name: json['name'] as String,
type: json['type'] == null
? null
: TypeDescription.fromJson(json['type'] as Map<String, dynamic>),
isNullable: json['isNullable'] as bool,
);
Map<String, dynamic> _$ColumnDescriptionToJson(ColumnDescription instance) =>
<String, dynamic>{
'name': instance.name,
'type': instance.type,
'isNullable': instance.isNullable,
};
EntityDescription _$EntityDescriptionFromJson(Map<String, dynamic> json) =>
EntityDescription(
name: json['name'] as String,
type: json['type'] as String,
columns: (json['columns'] as List<dynamic>?)
?.map((e) => ColumnDescription.fromJson(e as Map<String, dynamic>))
.toList(),
);
Map<String, dynamic> _$EntityDescriptionToJson(EntityDescription instance) =>
<String, dynamic>{
'name': instance.name,
'type': instance.type,
'columns': instance.columns,
};
DatabaseDescription _$DatabaseDescriptionFromJson(Map<String, dynamic> json) =>
DatabaseDescription(
dateTimeAsText: json['dateTimeAsText'] as bool,
entities: (json['entities'] as List<dynamic>)
.map((e) => EntityDescription.fromJson(e as Map<String, dynamic>))
.toList(),
);
Map<String, dynamic> _$DatabaseDescriptionToJson(
DatabaseDescription instance) =>
<String, dynamic>{
'dateTimeAsText': instance.dateTimeAsText,
'entities': instance.entities,
};

View File

@ -64,6 +64,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
returnValue: false, returnValue: false,
returnValueForMissingStub: false, returnValueForMissingStub: false,
) as bool); ) as bool);
@override @override
set isInTransaction(bool? _isInTransaction) => super.noSuchMethod( set isInTransaction(bool? _isInTransaction) => super.noSuchMethod(
Invocation.setter( Invocation.setter(
@ -72,6 +73,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
), ),
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i2.DbVersionDelegate get versionDelegate => (super.noSuchMethod( _i2.DbVersionDelegate get versionDelegate => (super.noSuchMethod(
Invocation.getter(#versionDelegate), Invocation.getter(#versionDelegate),
@ -84,6 +86,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
Invocation.getter(#versionDelegate), Invocation.getter(#versionDelegate),
), ),
) as _i2.DbVersionDelegate); ) as _i2.DbVersionDelegate);
@override @override
_i2.TransactionDelegate get transactionDelegate => (super.noSuchMethod( _i2.TransactionDelegate get transactionDelegate => (super.noSuchMethod(
Invocation.getter(#transactionDelegate), Invocation.getter(#transactionDelegate),
@ -96,12 +99,14 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
Invocation.getter(#transactionDelegate), Invocation.getter(#transactionDelegate),
), ),
) as _i2.TransactionDelegate); ) as _i2.TransactionDelegate);
@override @override
_i4.FutureOr<bool> get isOpen => (super.noSuchMethod( _i4.FutureOr<bool> get isOpen => (super.noSuchMethod(
Invocation.getter(#isOpen), Invocation.getter(#isOpen),
returnValue: _i4.Future<bool>.value(false), returnValue: _i4.Future<bool>.value(false),
returnValueForMissingStub: _i4.Future<bool>.value(false), returnValueForMissingStub: _i4.Future<bool>.value(false),
) as _i4.FutureOr<bool>); ) as _i4.FutureOr<bool>);
@override @override
_i4.Future<void> open(_i5.QueryExecutorUser? db) => (super.noSuchMethod( _i4.Future<void> open(_i5.QueryExecutorUser? db) => (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -111,6 +116,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
returnValue: _i4.Future<void>.value(), returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(), returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>); ) as _i4.Future<void>);
@override @override
_i4.Future<void> close() => (super.noSuchMethod( _i4.Future<void> close() => (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -120,6 +126,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
returnValue: _i4.Future<void>.value(), returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(), returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>); ) as _i4.Future<void>);
@override @override
void notifyDatabaseOpened(_i5.OpeningDetails? details) => super.noSuchMethod( void notifyDatabaseOpened(_i5.OpeningDetails? details) => super.noSuchMethod(
Invocation.method( Invocation.method(
@ -128,6 +135,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
), ),
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i4.Future<_i3.QueryResult> runSelect( _i4.Future<_i3.QueryResult> runSelect(
String? statement, String? statement,
@ -163,6 +171,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
), ),
)), )),
) as _i4.Future<_i3.QueryResult>); ) as _i4.Future<_i3.QueryResult>);
@override @override
_i4.Future<int> runUpdate( _i4.Future<int> runUpdate(
String? statement, String? statement,
@ -179,6 +188,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
returnValue: _i4.Future<int>.value(0), returnValue: _i4.Future<int>.value(0),
returnValueForMissingStub: _i4.Future<int>.value(0), returnValueForMissingStub: _i4.Future<int>.value(0),
) as _i4.Future<int>); ) as _i4.Future<int>);
@override @override
_i4.Future<int> runInsert( _i4.Future<int> runInsert(
String? statement, String? statement,
@ -195,6 +205,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
returnValue: _i4.Future<int>.value(0), returnValue: _i4.Future<int>.value(0),
returnValueForMissingStub: _i4.Future<int>.value(0), returnValueForMissingStub: _i4.Future<int>.value(0),
) as _i4.Future<int>); ) as _i4.Future<int>);
@override @override
_i4.Future<void> runCustom( _i4.Future<void> runCustom(
String? statement, String? statement,
@ -211,6 +222,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
returnValue: _i4.Future<void>.value(), returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(), returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>); ) as _i4.Future<void>);
@override @override
_i4.Future<void> runBatched(_i5.BatchedStatements? statements) => _i4.Future<void> runBatched(_i5.BatchedStatements? statements) =>
(super.noSuchMethod( (super.noSuchMethod(
@ -234,6 +246,7 @@ class MockDynamicVersionDelegate extends _i1.Mock
returnValue: _i4.Future<int>.value(0), returnValue: _i4.Future<int>.value(0),
returnValueForMissingStub: _i4.Future<int>.value(0), returnValueForMissingStub: _i4.Future<int>.value(0),
) as _i4.Future<int>); ) as _i4.Future<int>);
@override @override
_i4.Future<void> setSchemaVersion(int? version) => (super.noSuchMethod( _i4.Future<void> setSchemaVersion(int? version) => (super.noSuchMethod(
Invocation.method( Invocation.method(
@ -256,6 +269,7 @@ class MockSupportedTransactionDelegate extends _i1.Mock
returnValue: false, returnValue: false,
returnValueForMissingStub: false, returnValueForMissingStub: false,
) as bool); ) as bool);
@override @override
_i4.FutureOr<void> startTransaction( _i4.FutureOr<void> startTransaction(
_i4.Future<dynamic> Function(_i2.QueryDelegate)? run) => _i4.Future<dynamic> Function(_i2.QueryDelegate)? run) =>
@ -284,6 +298,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
returnValueForMissingStub: returnValueForMissingStub:
_i4.Stream<List<Map<String, Object?>>>.empty(), _i4.Stream<List<Map<String, Object?>>>.empty(),
) as _i4.Stream<List<Map<String, Object?>>>); ) as _i4.Stream<List<Map<String, Object?>>>);
@override @override
_i4.Stream<Set<_i5.TableUpdate>> updatesForSync( _i4.Stream<Set<_i5.TableUpdate>> updatesForSync(
_i5.TableUpdateQuery? query) => _i5.TableUpdateQuery? query) =>
@ -295,6 +310,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
returnValue: _i4.Stream<Set<_i5.TableUpdate>>.empty(), returnValue: _i4.Stream<Set<_i5.TableUpdate>>.empty(),
returnValueForMissingStub: _i4.Stream<Set<_i5.TableUpdate>>.empty(), returnValueForMissingStub: _i4.Stream<Set<_i5.TableUpdate>>.empty(),
) as _i4.Stream<Set<_i5.TableUpdate>>); ) as _i4.Stream<Set<_i5.TableUpdate>>);
@override @override
void handleTableUpdates(Set<_i5.TableUpdate>? updates) => super.noSuchMethod( void handleTableUpdates(Set<_i5.TableUpdate>? updates) => super.noSuchMethod(
Invocation.method( Invocation.method(
@ -303,6 +319,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
), ),
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void markAsClosed( void markAsClosed(
_i6.QueryStream? stream, _i6.QueryStream? stream,
@ -318,6 +335,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
), ),
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
void markAsOpened(_i6.QueryStream? stream) => super.noSuchMethod( void markAsOpened(_i6.QueryStream? stream) => super.noSuchMethod(
Invocation.method( Invocation.method(
@ -326,6 +344,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
), ),
returnValueForMissingStub: null, returnValueForMissingStub: null,
); );
@override @override
_i4.Future<void> close() => (super.noSuchMethod( _i4.Future<void> close() => (super.noSuchMethod(
Invocation.method( Invocation.method(

View File

@ -32,9 +32,10 @@ class $CategoriesTable extends Categories
@override @override
List<GeneratedColumn> get $columns => [id, name, color]; List<GeneratedColumn> get $columns => [id, name, color];
@override @override
String get aliasedName => _alias ?? 'categories'; String get aliasedName => _alias ?? actualTableName;
@override @override
String get actualTableName => 'categories'; String get actualTableName => $name;
static const String $name = 'categories';
@override @override
VerificationContext validateIntegrity(Insertable<Category> instance, VerificationContext validateIntegrity(Insertable<Category> instance,
{bool isInserting = false}) { {bool isInserting = false}) {
@ -194,6 +195,7 @@ class CategoriesCompanion extends UpdateCompanion<Category> {
} }
if (color.present) { if (color.present) {
final converter = $CategoriesTable.$convertercolor; final converter = $CategoriesTable.$convertercolor;
map['color'] = Variable<int>(converter.toSql(color.value)); map['color'] = Variable<int>(converter.toSql(color.value));
} }
return map; return map;
@ -249,9 +251,10 @@ class $TodoEntriesTable extends TodoEntries
@override @override
List<GeneratedColumn> get $columns => [id, description, category, dueDate]; List<GeneratedColumn> get $columns => [id, description, category, dueDate];
@override @override
String get aliasedName => _alias ?? 'todo_entries'; String get aliasedName => _alias ?? actualTableName;
@override @override
String get actualTableName => 'todo_entries'; String get actualTableName => $name;
static const String $name = 'todo_entries';
@override @override
VerificationContext validateIntegrity(Insertable<TodoEntry> instance, VerificationContext validateIntegrity(Insertable<TodoEntry> instance,
{bool isInserting = false}) { {bool isInserting = false}) {
@ -486,9 +489,10 @@ class TextEntries extends Table
@override @override
List<GeneratedColumn> get $columns => [description]; List<GeneratedColumn> get $columns => [description];
@override @override
String get aliasedName => _alias ?? 'text_entries'; String get aliasedName => _alias ?? actualTableName;
@override @override
String get actualTableName => 'text_entries'; String get actualTableName => $name;
static const String $name = 'text_entries';
@override @override
VerificationContext validateIntegrity(Insertable<TextEntrie> instance, VerificationContext validateIntegrity(Insertable<TextEntrie> instance,
{bool isInserting = false}) { {bool isInserting = false}) {

View File

@ -26,9 +26,10 @@ class $NotesTable extends Notes with TableInfo<$NotesTable, Note> {
@override @override
List<GeneratedColumn> get $columns => [id, content]; List<GeneratedColumn> get $columns => [id, content];
@override @override
String get aliasedName => _alias ?? 'notes'; String get aliasedName => _alias ?? actualTableName;
@override @override
String get actualTableName => 'notes'; String get actualTableName => $name;
static const String $name = 'notes';
@override @override
VerificationContext validateIntegrity(Insertable<Note> instance, VerificationContext validateIntegrity(Insertable<Note> instance,
{bool isInserting = false}) { {bool isInserting = false}) {

View File

@ -292,6 +292,7 @@ class UsersCompanion extends i0.UpdateCompanion<i1.User> {
} }
if (preferences.present) { if (preferences.present) {
final converter = i1.Users.$converterpreferencesn; final converter = i1.Users.$converterpreferencesn;
map['preferences'] = map['preferences'] =
i0.Variable<String>(converter.toSql(preferences.value)); i0.Variable<String>(converter.toSql(preferences.value));
} }

View File

@ -295,6 +295,7 @@ class UsersCompanion extends UpdateCompanion<User> {
} }
if (preferences.present) { if (preferences.present) {
final converter = $UsersTable.$converterpreferences; final converter = $UsersTable.$converterpreferences;
map['preferences'] = Variable<String>(converter.toSql(preferences.value)); map['preferences'] = Variable<String>(converter.toSql(preferences.value));
} }
return map; return map;