mirror of https://github.com/AMT-Cheif/drift.git
Fix drift_dev test
This commit is contained in:
parent
d491db8599
commit
e63f089b46
|
@ -78,12 +78,12 @@ class Database extends _$Database {}
|
|||
@override
|
||||
Future<MyCustomClass> map(Map<String, dynamic> data,
|
||||
{String? tablePrefix}) async {
|
||||
final effectivePrefix = tablePrefix != null ? \'$tablePrefix.\' : \'\';
|
||||
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
||||
return await MyCustomClass.load(
|
||||
attachedDatabase.options.types.read(DriftSqlType.string,
|
||||
data[\'${effectivePrefix}foo\'], attachedDatabase.executor.dialect)!,
|
||||
attachedDatabase.options.types.read(DriftSqlType.int,
|
||||
data[\'${effectivePrefix}bar\'], attachedDatabase.executor.dialect)!,
|
||||
attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.string, data['${effectivePrefix}foo'])!,
|
||||
attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.int, data['${effectivePrefix}bar'])!,
|
||||
);
|
||||
}
|
||||
''')),
|
||||
|
|
Loading…
Reference in New Issue