Fix sqlite3 deprecation warning

This commit is contained in:
Simon Binder 2023-12-08 00:28:00 +01:00
parent 1563b99b58
commit 7774fcb6df
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}); });
} }

View File

@ -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

View File

@ -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: