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
|
@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'])!,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
''')),
|
''')),
|
||||||
|
|
Loading…
Reference in New Issue