Re-run builder in example app

This commit is contained in:
Simon Binder 2023-08-09 21:03:36 +02:00
parent 0ed132f642
commit fae8be00d2
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
2 changed files with 11 additions and 25474 deletions

View File

@ -650,15 +650,13 @@ abstract class _$AppDatabase extends GeneratedDatabase {
readsFrom: {
todoEntries,
categories,
}).map((QueryRow row) {
return CategoriesWithCountResult(
id: row.readNullable<int>('id'),
name: row.readNullable<String>('name'),
color: NullAwareTypeConverter.wrapFromSql(
$CategoriesTable.$convertercolor, row.readNullable<int>('color')),
amount: row.read<int>('amount'),
);
});
}).map((QueryRow row) => CategoriesWithCountResult(
id: row.readNullable<int>('id'),
name: row.readNullable<String>('name'),
color: NullAwareTypeConverter.wrapFromSql(
$CategoriesTable.$convertercolor, row.readNullable<int>('color')),
amount: row.read<int>('amount'),
));
}
Selectable<SearchResult> _search(String query) {
@ -671,12 +669,10 @@ abstract class _$AppDatabase extends GeneratedDatabase {
textEntries,
todoEntries,
categories,
}).asyncMap((QueryRow row) async {
return SearchResult(
todos: await todoEntries.mapFromRow(row, tablePrefix: 'nested_0'),
cat: await categories.mapFromRowOrNull(row, tablePrefix: 'nested_1'),
);
});
}).asyncMap((QueryRow row) async => SearchResult(
todos: await todoEntries.mapFromRow(row, tablePrefix: 'nested_0'),
cat: await categories.mapFromRowOrNull(row, tablePrefix: 'nested_1'),
));
}
@override

File diff suppressed because one or more lines are too long