Commit Graph

6716 Commits

Author SHA1 Message Date
Nikita Sivukhin
f3da874fd5 fix clippy 2025-07-30 14:38:29 +04:00
Nikita Sivukhin
aad0460bd1 rename methods 2025-07-30 14:23:18 +04:00
Nikita Sivukhin
16ed251cc5 remove turso_assert 2025-07-30 14:18:47 +04:00
Nikita Sivukhin
2b5dbba2df set tokio_unstable cfg at workspace root
- cargo commands invoked from workspace root do not capture custom configuration of RUSTFLAGS
  from workspace members
- see relevant issue https://github.com/rust-lang/cargo/issues/7004
2025-07-30 14:13:41 +04:00
Nikita Sivukhin
b78ce17022 properly configure TLS and use default features for rustls/hyper-rustls deps 2025-07-30 11:47:36 +04:00
Nikita Sivukhin
d341ac1d10 fix clippy 2025-07-30 02:10:18 +04:00
Nikita Sivukhin
979299d5b7 add binary asset 2025-07-30 01:56:57 +04:00
Nikita Sivukhin
7cf296c7ab update deps 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
63968ff522 add simple example 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
f08417af6c add lib 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
43bbc34455 add public interface for synced database 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
fedecd8e60 add main implementation of synced database 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
a47582c62b add more errors specific to sync 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
7481573cf1 add test to the DatabaseTape 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
4269a1fe7a add helper WalSession RAII-wrapper 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
e0aeb032f0 add sync server module 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
241cad65cd add filesystem module 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
da287f84b1 add blocking implementation of filesystem for tests 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
904eef7628 add tokio-based implementation of filesystem 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
649cc3f367 add local implementation of sync server for tests 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
9c5a849f19 add implementation of TursoSyncServer 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
949801951e add local database metadata 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
db2f8fa61c add TestContext in order to simplify fault injection 2025-07-30 00:58:36 +04:00
Nikita Sivukhin
298e0b459e fix after rebase 2025-07-29 14:42:51 +04:00
Nikita Sivukhin
bb96ce50fb fix after rebase 2025-07-29 14:42:10 +04:00
Nikita Sivukhin
4d6fe905b8 fix clippy 2025-07-29 14:42:10 +04:00
Nikita Sivukhin
4b893d1631 small fixes 2025-07-29 14:42:09 +04:00
Nikita Sivukhin
4dc217c41a fix clippy 2025-07-29 14:41:35 +04:00
Nikita Sivukhin
134d5e8e2e add simple readme 2025-07-29 14:41:35 +04:00
Nikita Sivukhin
58134052e6 cleanup cargo.toml 2025-07-29 14:41:35 +04:00
Nikita Sivukhin
76cc8c05a5 add conversion method 2025-07-29 14:41:10 +04:00
Nikita Sivukhin
ea2f9faa13 fix build 2025-07-29 14:41:10 +04:00
Nikita Sivukhin
40ded34ef6 add internal DatabaseTape types 2025-07-29 14:40:14 +04:00
Nikita Sivukhin
841bbe3f77 add CDC types 2025-07-29 14:40:14 +04:00
Nikita Sivukhin
b27bc05c7d introduce turso-sync package with simple implementation of DatabaseTape 2025-07-29 14:40:14 +04:00
Pekka Enberg
8adc807cd7 Merge 'Change function signatures to return IO Completions' from Pedro Muniz
Changes a couple of function signatures to return `Completion`. Also, I
changed `Completion` to be internally `Arc` to abstract the `Arc`
implementation detail, and to be able to attach a `#[must_use]` to the
`Completion` struct, so that cargo check can show us where we are not
tracking completions in the code. I also attached a `#[must_use]` to
`IOResult` so that we can see the places that we are not propagating or
waiting for I/O, demonstrating locations where functions should be
reentrant and are not.
Also, while we are with this refactor in progress I want to relax the
Clippy CI lint on unused_variables.

Closes #2309
2025-07-29 12:41:14 +03:00
Pekka Enberg
94dc780669 Turso 0.1.3 2025-07-29 12:37:18 +03:00
Pekka Enberg
0e0fe8739f Update CHANGELOG.md 2025-07-29 12:37:10 +03:00
Pekka Enberg
2d2f416e2c Revert "bindings/javascript: Add optional dependencies"
This reverts commit 9d7a77efde. It does
not work because the native packages don't yet exists at that point.
Let's fix the Github workflows instead.
2025-07-29 12:36:12 +03:00
Pekka Enberg
150e888cc0 Merge branch 'main' of https://github.com/tursodatabase/limbo 2025-07-29 12:16:34 +03:00
Pekka Enberg
a4737f82bc Turso 0.1.3-pre.10 2025-07-29 12:16:02 +03:00
Pekka Enberg
9d7a77efde bindings/javascript: Add optional dependencies 2025-07-29 12:15:43 +03:00
Pekka Enberg
604ed4a13d Fix typo on manual.md 2025-07-29 11:47:20 +03:00
Pekka Enberg
532a014557 docs: Add JavaScript API to the manual 2025-07-29 11:45:12 +03:00
Pekka Enberg
4f4d321822 Turso 0.1.3-pre.9 2025-07-29 10:58:09 +03:00
Pekka Enberg
ae91a4ab6b bindings/javascript: Add index.js and sqlite3-error.js to package
...won't work without them...
2025-07-29 10:57:36 +03:00
Pekka Enberg
a254f0ecaa Turso 0.1.3-pre.8 2025-07-29 10:13:30 +03:00
Pekka Enberg
990bd41918 Merge 'bindings/javascript: Generate native npm packages at publish' from Pekka Enberg
Use the `napi create-npm-dirs` command to create the native packages and
remove the manually created ones. Unlocks wasm publish.

Closes #2316
2025-07-29 10:12:56 +03:00
Pekka Enberg
57a8c46560 bindings/javascript: Generate native npm packages at publish
Use the `napi create-npm-dirs` command to create the native packages and
remove the manually created ones. Unlocks wasm publish.
2025-07-29 10:00:06 +03:00
Pekka Enberg
04e7d45ac3 Turso 0.1.3-pre.7 2025-07-29 09:15:03 +03:00