Fix drift_dev test

This commit is contained in:
Simon Binder 2022-11-07 16:06:09 +01:00
parent d491db8599
commit e63f089b46
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 5 additions and 5 deletions

View File

@ -78,12 +78,12 @@ class Database extends _$Database {}
@override @override
Future<MyCustomClass> map(Map<String, dynamic> data, Future<MyCustomClass> map(Map<String, dynamic> data,
{String? tablePrefix}) async { {String? tablePrefix}) async {
final effectivePrefix = tablePrefix != null ? \'$tablePrefix.\' : \'\'; final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return await MyCustomClass.load( return await MyCustomClass.load(
attachedDatabase.options.types.read(DriftSqlType.string, attachedDatabase.typeMapping
data[\'${effectivePrefix}foo\'], attachedDatabase.executor.dialect)!, .read(DriftSqlType.string, data['${effectivePrefix}foo'])!,
attachedDatabase.options.types.read(DriftSqlType.int, attachedDatabase.typeMapping
data[\'${effectivePrefix}bar\'], attachedDatabase.executor.dialect)!, .read(DriftSqlType.int, data['${effectivePrefix}bar'])!,
); );
} }
''')), ''')),