mirror of https://github.com/AMT-Cheif/drift.git
Fix sqlite3 deprecation warning
This commit is contained in:
parent
1563b99b58
commit
7774fcb6df
|
@ -310,7 +310,7 @@ class _NativeDelegate extends Sqlite3Delegate<Database> {
|
||||||
Future<int> runUpdate(String statement, List<Object?> args) {
|
Future<int> runUpdate(String statement, List<Object?> args) {
|
||||||
return Future.sync(() {
|
return Future.sync(() {
|
||||||
runWithArgsSync(statement, args);
|
runWithArgsSync(statement, args);
|
||||||
return database.getUpdatedRows();
|
return database.updatedRows;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -267,7 +267,7 @@ class _WasmDelegate extends Sqlite3Delegate<CommonDatabase> {
|
||||||
@override
|
@override
|
||||||
Future<int> runUpdate(String statement, List<Object?> args) async {
|
Future<int> runUpdate(String statement, List<Object?> args) async {
|
||||||
await _runWithArgs(statement, args);
|
await _runWithArgs(statement, args);
|
||||||
return database.getUpdatedRows();
|
return database.updatedRows;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -15,7 +15,7 @@ dependencies:
|
||||||
js: ^0.6.3
|
js: ^0.6.3
|
||||||
meta: ^1.3.0
|
meta: ^1.3.0
|
||||||
stream_channel: ^2.1.0
|
stream_channel: ^2.1.0
|
||||||
sqlite3: ^2.0.0
|
sqlite3: ^2.2.0
|
||||||
path: ^1.8.0
|
path: ^1.8.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|
Loading…
Reference in New Issue