Skip to content

Commit 4fb4228

Browse files
committed
squashed
1 parent 7bb71be commit 4fb4228

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

Diff for: packages/sqlite_async/CHANGELOG.md

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## 0.8.2
2-
3-
- Added `refreshSchema()`, allowing queries and watch calls to work against updated schemas.
4-
51
## 0.8.1
62

73
- Added Navigator locks for web `Mutex`s.

Diff for: packages/sqlite_async/lib/src/sqlite_connection.dart

+4
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ abstract class SqliteConnection extends SqliteWriteContext {
130130

131131
Future<void> close();
132132

133+
/// Ensures that all connections are aware of the latest schema changes applied (if any).
134+
/// Queries and watch calls can potentially use outdated schema information after a schema update.
135+
Future<void> refreshSchema();
136+
133137
/// Returns true if the connection is closed
134138
@override
135139
bool get closed;

Diff for: packages/sqlite_async/lib/src/sqlite_queries.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ mixin SqliteQueries implements SqliteWriteContext, SqliteConnection {
138138
});
139139
}
140140

141-
/// Ensures that all connections are aware of the latest schema changes applied (if any).
142-
/// Queries and watch calls can potentially use outdated schema information after a schema update.
141+
@override
143142
Future<void> refreshSchema() {
144143
return get("PRAGMA table_info('sqlite_master')");
145144
}

Diff for: packages/sqlite_async/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sqlite_async
22
description: High-performance asynchronous interface for SQLite on Dart and Flutter.
3-
version: 0.8.2
3+
version: 0.8.1
44
repository: https://github.com/powersync-ja/sqlite_async.dart
55
environment:
66
sdk: ">=3.4.0 <4.0.0"

Diff for: packages/sqlite_async/test/native/schema_test.dart

-5
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,3 @@ void main() {
9696
});
9797
});
9898
}
99-
100-
// For some reason, future.ignore() doesn't actually ignore errors in these tests.
101-
void ignore(Future future) {
102-
future.then((_) {}, onError: (_) {});
103-
}

0 commit comments

Comments
 (0)