mirror of https://github.com/AMT-Cheif/drift.git
Merge pull request #1959 from simolus3/fix-lint-warning
Fix lint warnings when strict type check enabled
This commit is contained in:
commit
5063afb8a4
|
@ -686,7 +686,8 @@ abstract class _$Database extends GeneratedDatabase {
|
||||||
late final $TodoItemWithCategoryNameViewView customViewName =
|
late final $TodoItemWithCategoryNameViewView customViewName =
|
||||||
$TodoItemWithCategoryNameViewView(this);
|
$TodoItemWithCategoryNameViewView(this);
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities =>
|
List<DatabaseSchemaEntity> get allSchemaEntities =>
|
||||||
[todoCategories, todoItems, todoCategoryItemCount, customViewName];
|
[todoCategories, todoItems, todoCategoryItemCount, customViewName];
|
||||||
|
|
|
@ -1826,7 +1826,8 @@ abstract class _$CustomTablesDb extends GeneratedDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [
|
List<DatabaseSchemaEntity> get allSchemaEntities => [
|
||||||
config,
|
config,
|
||||||
|
|
|
@ -1667,7 +1667,8 @@ abstract class _$TodoDb extends GeneratedDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [
|
List<DatabaseSchemaEntity> get allSchemaEntities => [
|
||||||
categories,
|
categories,
|
||||||
|
|
|
@ -117,8 +117,9 @@ class DatabaseWriter {
|
||||||
// Write List of tables
|
// Write List of tables
|
||||||
final schemaScope = dbScope.leaf();
|
final schemaScope = dbScope.leaf();
|
||||||
schemaScope
|
schemaScope
|
||||||
..write('@override\nIterable<TableInfo> get allTables => ')
|
..write(
|
||||||
..write('allSchemaEntities.whereType<TableInfo>();\n')
|
'@override\nIterable<TableInfo<Table, dynamic>> get allTables => ')
|
||||||
|
..write('allSchemaEntities.whereType<TableInfo<Table, Object?>>();\n')
|
||||||
..write('@override\nList<DatabaseSchemaEntity> get allSchemaEntities ')
|
..write('@override\nList<DatabaseSchemaEntity> get allSchemaEntities ')
|
||||||
..write('=> [');
|
..write('=> [');
|
||||||
|
|
||||||
|
|
|
@ -660,7 +660,8 @@ abstract class _$AppDatabase extends GeneratedDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities =>
|
List<DatabaseSchemaEntity> get allSchemaEntities =>
|
||||||
[categories, todoEntries, textEntries, todosInsert];
|
[categories, todoEntries, textEntries, todosInsert];
|
||||||
|
|
|
@ -203,7 +203,8 @@ abstract class _$MyDatabase extends GeneratedDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [entries];
|
List<DatabaseSchemaEntity> get allSchemaEntities => [entries];
|
||||||
}
|
}
|
||||||
|
|
|
@ -638,7 +638,8 @@ abstract class _$Database extends GeneratedDatabase {
|
||||||
late final Groups groups = Groups(this);
|
late final Groups groups = Groups(this);
|
||||||
late final GroupCount groupCount = GroupCount(this);
|
late final GroupCount groupCount = GroupCount(this);
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities =>
|
List<DatabaseSchemaEntity> get allSchemaEntities =>
|
||||||
[users, groups, groupCount];
|
[users, groups, groupCount];
|
||||||
|
|
|
@ -204,7 +204,8 @@ abstract class _$MyDatabase extends GeneratedDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [entries];
|
List<DatabaseSchemaEntity> get allSchemaEntities => [entries];
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,8 @@ abstract class _$Database extends GeneratedDatabase {
|
||||||
_$Database(QueryExecutor e) : super(e);
|
_$Database(QueryExecutor e) : super(e);
|
||||||
late final Users users = Users(this);
|
late final Users users = Users(this);
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [users];
|
List<DatabaseSchemaEntity> get allSchemaEntities => [users];
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,8 @@ abstract class _$Database extends GeneratedDatabase {
|
||||||
_$Database(QueryExecutor e) : super(e);
|
_$Database(QueryExecutor e) : super(e);
|
||||||
late final $KeyValuesTable keyValues = $KeyValuesTable(this);
|
late final $KeyValuesTable keyValues = $KeyValuesTable(this);
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [keyValues];
|
List<DatabaseSchemaEntity> get allSchemaEntities => [keyValues];
|
||||||
}
|
}
|
||||||
|
|
|
@ -635,7 +635,8 @@ abstract class _$Database extends GeneratedDatabase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [users, friendships];
|
List<DatabaseSchemaEntity> get allSchemaEntities => [users, friendships];
|
||||||
}
|
}
|
||||||
|
|
|
@ -282,7 +282,8 @@ abstract class _$_FakeDb extends GeneratedDatabase {
|
||||||
late final $FoosTable foos = $FoosTable(this);
|
late final $FoosTable foos = $FoosTable(this);
|
||||||
late final $BarsTable bars = $BarsTable(this);
|
late final $BarsTable bars = $BarsTable(this);
|
||||||
@override
|
@override
|
||||||
Iterable<TableInfo> get allTables => allSchemaEntities.whereType<TableInfo>();
|
Iterable<TableInfo<Table, dynamic>> get allTables =>
|
||||||
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
||||||
@override
|
@override
|
||||||
List<DatabaseSchemaEntity> get allSchemaEntities => [foos, bars];
|
List<DatabaseSchemaEntity> get allSchemaEntities => [foos, bars];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue