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) {
|
||||
return Future.sync(() {
|
||||
runWithArgsSync(statement, args);
|
||||
return database.getUpdatedRows();
|
||||
return database.updatedRows;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ class _WasmDelegate extends Sqlite3Delegate<CommonDatabase> {
|
|||
@override
|
||||
Future<int> runUpdate(String statement, List<Object?> args) async {
|
||||
await _runWithArgs(statement, args);
|
||||
return database.getUpdatedRows();
|
||||
return database.updatedRows;
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -15,7 +15,7 @@ dependencies:
|
|||
js: ^0.6.3
|
||||
meta: ^1.3.0
|
||||
stream_channel: ^2.1.0
|
||||
sqlite3: ^2.0.0
|
||||
sqlite3: ^2.2.0
|
||||
path: ^1.8.0
|
||||
|
||||
dev_dependencies:
|
||||
|
|
Loading…
Reference in New Issue