Skip to content

Commit cf42542

Browse files
committed
Mention sqlite test in top-level readme
1 parent 4012278 commit cf42542

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
This project contains Dart packages to use SQLite from Dart via `dart:ffi`.
44

55
The main package in this repository is [`sqlite3`](sqlite3), which contains all the Dart apis and their implementation.
6-
`package:sqlite3` is a pure-Dart package without a dependency on Flutter.
6+
`package:sqlite3` is a pure-Dart package without a dependency on Flutter.
77
It can be used both in Flutter apps or in standalone Dart applications.
88

99
The `sqlite3_flutter_libs` and `sqlcipher_flutter_libs` packages contain no Dart code at all. Flutter users can depend
1010
on one of them to include native libraries in their apps.
1111

12+
`package:sqlite3_test` contains utilities that make integrating SQLite databases into Dart tests easier.
13+
In particular, they patch `CURRENT_TIMESTAMP` and related constructs to return the (potentially faked) time
14+
returned by `package:clock`.
15+
1216
## Example Usage
1317

1418
A file with basic usage examples for pure Dart can be found [here](sqlite3/example/main.dart).

sqlite3/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ topics:
2020
- sql
2121
- database
2222
- ffi
23+
- sqlite
2324

2425
dependencies:
2526
collection: ^1.15.0

sqlite3_test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tests by providing a [VFS](https://sqlite.org/vfs.html) that will:
1818

1919
1. Make `CURRENT_TIME`, `CURRENT_DATE` and `CURRENT_TIMESTAMP` reflect the time
2020
returned by `package:clock`.
21-
2. For IO operations, allows providing a `FileSystem` from `package:file`. This
21+
2. For IO operations, allow providing a `FileSystem` from `package:file`. This
2222
includes custom implementations and the default one respecting
2323
`IOOverrides`.
2424

sqlite3_test/pubspec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: sqlite3_test
2-
description: Utilities for accessing sqlite3 databases in unit tests.
2+
description: Integration of fake clocks and other test utilities for SQLite databases.
33
version: 0.1.0
44
homepage: https://github.com/simolus3/sqlite3.dart/tree/main/sqlite3_test
55
repository: https://github.com/simolus3/sqlite3.dart
6+
topics:
7+
- database
8+
- sqlite
69

710
environment:
811
sdk: ^3.5.4

0 commit comments

Comments
 (0)