Skip to content

Commit 8f05915

Browse files
committed
squashed
1 parent 7bb71be commit 8f05915

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

packages/sqlite_async/lib/src/sqlite_connection.dart

Lines changed: 4 additions & 0 deletions
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;

packages/sqlite_async/lib/src/sqlite_queries.dart

Lines changed: 1 addition & 2 deletions
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
}

packages/sqlite_async/test/native/schema_test.dart

Lines changed: 0 additions & 5 deletions
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)