Skip to content

Update upstream sqlite3 package, update powersync core to 0.3.9 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 83 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
3dc5835
Adding uuid.c example
rodydavis Oct 12, 2024
3395710
Expand readme
simolus3 Oct 13, 2024
558a1b5
Link custom extension example
simolus3 Oct 13, 2024
d7cbbe9
Fix extension tests in CI
simolus3 Oct 13, 2024
b4890e2
Add a DynamicBuffer for faster VFS implementations.
rkistner Oct 17, 2024
a0032ff
Switch to Uint8Buffer.
rkistner Oct 18, 2024
5133fdb
Support 16KiB page sizes on Android
simolus3 Oct 18, 2024
0a8e4d6
Avoid copying for writes to memory
simolus3 Oct 18, 2024
e21f161
Changelog entry
simolus3 Oct 18, 2024
feac3e2
Merge branch 'dynamicbuffer'
simolus3 Oct 18, 2024
f9f6f44
Re-compile sqlite3 for CI
simolus3 Oct 18, 2024
b0513b8
Update sqlite3 in wasm build
simolus3 Oct 21, 2024
ce1be73
Implement remote file system
simolus3 Oct 22, 2024
73d73d8
Fix web tests
simolus3 Oct 23, 2024
1f7e61b
Prepare to publish sqlite3 web
simolus3 Oct 23, 2024
565851c
Upgrade lints
simolus3 Oct 23, 2024
87f9230
Update sqlite to 3.47.0
simolus3 Oct 23, 2024
3f3c71a
Raise version number
simolus3 Oct 23, 2024
cc91b27
Support custom VFS on native platforms
simolus3 Nov 19, 2024
2c63b8d
Reformat headers
simolus3 Nov 19, 2024
66d9a19
Mark ffi vfs test as using ffi
simolus3 Nov 19, 2024
0ab242b
Update simulator for iOS integration tests
simolus3 Nov 24, 2024
f830d9e
IndexedDb: Store blobs as array buffers if necessary
simolus3 Nov 23, 2024
9286be8
Add changelog entry
simolus3 Nov 23, 2024
4012278
Add sqlite3_test utility
simolus3 Nov 24, 2024
cf42542
Mention sqlite test in top-level readme
simolus3 Nov 24, 2024
62bcb24
Prepare 2.5.0 release
simolus3 Nov 24, 2024
a1deb8e
Added commit / rollback hooks
jackd Nov 25, 2024
79770f3
Fixed bug when setting update_hook to null twice (#269)
jackd Nov 25, 2024
dced60d
Prepare sqlite3_test for publishing
simolus3 Nov 24, 2024
d0b38f3
Add consistent methods to delete databases
simolus3 Nov 29, 2024
37e3bb8
Add SwiftPM build for sqlite3_flutter_libs
simolus3 Dec 4, 2024
1db8914
Fix resolving dependencies on Flutter stable
simolus3 Dec 4, 2024
788cc90
Update other platforms to 3.47.1
simolus3 Dec 4, 2024
89f0ba6
Lower flutter lib package version
simolus3 Dec 4, 2024
b58f8a6
Update sqlite to 3.47.2
simolus3 Dec 15, 2024
89e5d08
Add jsonb codec
simolus3 Jan 9, 2025
6a37ead
Initial support for encryption on the web
simolus3 Jan 6, 2025
b40a72b
Keep compiling regular sqlite3
simolus3 Jan 10, 2025
be9a719
Reformat native code
simolus3 Jan 10, 2025
0fc2973
Make encryption example a separate button
simolus3 Jan 10, 2025
c6f2149
Update web test expectations
simolus3 Jan 10, 2025
c398662
Test sqlite3_test package
simolus3 Jan 10, 2025
07485d8
Add basic test for encryption
simolus3 Jan 10, 2025
4770709
Add changelog entry
simolus3 Jan 10, 2025
3ffa0de
Fix sqlite3_test on Windows
simolus3 Jan 10, 2025
7fb61e4
Fix destination for sqlite3mc download
simolus3 Jan 10, 2025
8365e04
Prepare release
simolus3 Jan 11, 2025
36590b3
Update sqlite to 3.48.0
simolus3 Jan 14, 2025
f4a9140
Fix writing large blobs through opfs-locks
simolus3 Jan 14, 2025
de8c204
sqlite3_web: Support local access modes
simolus3 Jan 16, 2025
db2f8d9
Recover workers not initializing
simolus3 Jan 16, 2025
d433d19
Add changelog entry
simolus3 Jan 16, 2025
b899c96
Merge pull request #275 from powersync-ja/sqlite3-web-without-workers
simolus3 Jan 16, 2025
67e5e44
Prepare sqlite3_web release
simolus3 Jan 16, 2025
0d8a1a8
Support SQLite libraries without auto-init
simolus3 Jan 17, 2025
82474fd
Use git dependency for swiftpm
simolus3 Jan 17, 2025
c4f1db9
Fix sqlite3mc build for wasm
simolus3 Jan 17, 2025
969517b
added commits stream
jackd Jan 18, 2025
2078638
clang formatting
jackd Jan 18, 2025
ab63086
Merge branch 'main' into transaction-hooks
simolus3 Jan 18, 2025
c65f53d
Use shared code for all stream implementations
simolus3 Jan 18, 2025
c038478
Bump version
simolus3 Jan 18, 2025
1321650
Make wasm functions for commit hooks optional
simolus3 Jan 18, 2025
449cabd
Test rollback event due to filter
simolus3 Jan 18, 2025
8e18f84
Update expected version in wasm test
simolus3 Jan 18, 2025
9a43a06
Avoid dart2js issue with late final fields
simolus3 Jan 18, 2025
15820b8
Avoid timeout in test
simolus3 Jan 18, 2025
940880a
Add tests to sqlite3_web
simolus3 Jan 18, 2025
a290e87
Merge pull request #268 from jackd/transaction-hooks
simolus3 Jan 18, 2025
cb7672b
Fix handling worker errors
simolus3 Jan 16, 2025
264e02e
Add try/catch around workers again
simolus3 Jan 20, 2025
7b123f3
Merge pull request #276 from powersync-ja/fix/handle-web-worker-errors
simolus3 Jan 20, 2025
8330018
Document how to compile entirely with homebrew packages
simolus3 Jan 20, 2025
b81d20a
Prepare sqlite3 and sqlite3_web release
simolus3 Jan 20, 2025
19ac1ed
Merge tag 'sqlite3-2.7.0'
simolus3 Jan 20, 2025
131ec97
Update powersync
simolus3 Jan 20, 2025
51f68aa
Fix bad merge
simolus3 Jan 20, 2025
8a95b4f
Make setting commit hooks a noop if unsupported
simolus3 Jan 20, 2025
e2118e9
Merge branch 'main' into feat/update-upstream-sqlite
simolus3 Jan 21, 2025
135bbb5
Fix broken stream initialization in some dart2js setups
simolus3 Jan 21, 2025
02f105f
Merge tag 'sqlite3-2.7.2' into feat/update-upstream-sqlite
simolus3 Jan 21, 2025
8133698
Add multiple ciphers library to release
simolus3 Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mention sqlite test in top-level readme
  • Loading branch information
simolus3 committed Nov 24, 2024
commit cf425428847ccaea40a8796b53befa9aafacffc2
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
This project contains Dart packages to use SQLite from Dart via `dart:ffi`.

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

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

`package:sqlite3_test` contains utilities that make integrating SQLite databases into Dart tests easier.
In particular, they patch `CURRENT_TIMESTAMP` and related constructs to return the (potentially faked) time
returned by `package:clock`.

## Example Usage

A file with basic usage examples for pure Dart can be found [here](sqlite3/example/main.dart).
1 change: 1 addition & 0 deletions sqlite3/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ topics:
- sql
- database
- ffi
- sqlite

dependencies:
collection: ^1.15.0
Expand Down
2 changes: 1 addition & 1 deletion sqlite3_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tests by providing a [VFS](https://sqlite.org/vfs.html) that will:

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

Expand Down
5 changes: 4 additions & 1 deletion sqlite3_test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: sqlite3_test
description: Utilities for accessing sqlite3 databases in unit tests.
description: Integration of fake clocks and other test utilities for SQLite databases.
version: 0.1.0
homepage: https://github.com/simolus3/sqlite3.dart/tree/main/sqlite3_test
repository: https://github.com/simolus3/sqlite3.dart
topics:
- database
- sqlite

environment:
sdk: ^3.5.4
Expand Down