Mikaël Francoeur
98830516cd
fix typos and format md tables with prettier
2025-07-01 11:11:36 -04:00
Mikaël Francoeur
56a679d329
format js files using tsserver
2025-07-01 11:05:26 -04:00
Pekka Enberg
bd60cd214c
Merge 'Rust binding improvements' from Pedro Muniz
...
This PR aims to add some more comments and documentation to the Rust
binding. It also fixes an issue where you could not reuse the statement
after it ran to completion or errored. Now the statement resets in those
cases. Also implemented `Stream` for the Rows struct allowing users to
leverage the built-in iterator like methods for better ergonomics.
Closes #1905
2025-07-01 00:08:18 +03:00
Pekka Enberg
74e48a3a8f
Merge 'bind/js: add tests for expand' from Mikaël Francoeur
...
This PR adds tests for the
[`expand()`](https://github.com/WiseLibs/better-
sqlite3/blob/master/docs/api.md#expandtogglestate---this) method of the
better-sqlite3 API.
It can't be implemented in limbo right now, because the table names
aren't surfaced in the `Statement` object (in core).
Closes #1907
2025-07-01 00:07:13 +03:00
Pekka Enberg
f75034c8e0
Turso 0.1.1
2025-06-30 23:58:04 +03:00
Mikaël Francoeur
5627cee24a
minus formatting
2025-06-30 15:48:29 -04:00
Pekka Enberg
fb7714a17a
Turso 0.1.1-pre.2
2025-06-30 22:19:35 +03:00
Pekka Enberg
75b8362688
bindings/javascript: Don't do Github release
...
We do the release ourselves, don't ask napi-rs to do it.
Fixes the following error:
```
RequestError [HttpError]: Resource not accessible by integration - https://docs.github.com/rest/releases/releases#create-a-release
```
2025-06-30 22:15:13 +03:00
Pekka Enberg
c92748fc20
Turso 0.1.1-pre.1
2025-06-30 21:52:00 +03:00
Pekka Enberg
df193cd59d
bindings/javascript: Add prepublish step
...
...hopefully sorts the missing native package problem.
2025-06-30 21:51:38 +03:00
pedrocarlo
b1ee556892
fix doc test
2025-06-30 15:34:10 -03:00
pedrocarlo
78107935b5
clippy
2025-06-30 15:29:09 -03:00
pedrocarlo
cd280007ff
more docs
2025-06-30 15:08:48 -03:00
pedrocarlo
318c2389fd
extra example using Streams mapping
2025-06-30 15:05:54 -03:00
pedrocarlo
becc0e3a93
reset statements when we are done with the query or we encounter an error
2025-06-30 15:05:27 -03:00
Pekka Enberg
f7f62babe5
Turso 0.1.0
2025-06-30 20:15:28 +03:00
pedrocarlo
a4c6138e33
docs fix
2025-06-30 13:38:40 -03:00
pedrocarlo
e08748e07e
make futures-util default feature + use futures in example.rs
2025-06-30 13:16:42 -03:00
pedrocarlo
a1fe46779d
move rows to separate file
2025-06-30 12:38:41 -03:00
pedrocarlo
3a17e58707
separate statement to separate file
2025-06-30 12:38:41 -03:00
pedrocarlo
279a7fca3b
add futures-util feature flag + impl Stream for Rows
2025-06-30 12:38:41 -03:00
Pekka Enberg
6672334eaa
Turso 0.1.0-pre.5
2025-06-30 17:44:21 +03:00
Pekka Enberg
a84a755cf7
bindings/rust: Add feature flag to enable indexes
2025-06-30 12:36:20 +03:00
Pekka Enberg
4bdd42ef84
Turso 0.1.0-pre.4
2025-06-30 11:38:56 +03:00
Pekka Enberg
cc14f83feb
bindings/javascript: Regenerate yarn.lock
2025-06-30 11:25:24 +03:00
Pekka Enberg
9c1b7897ac
Fix URLs to point to github.com/tursodatabase/turso
2025-06-30 11:23:53 +03:00
Pekka Enberg
e514a02478
Turso 0.1.0-pre.3
2025-06-30 10:59:55 +03:00
Pekka Enberg
592ad81c86
Rename limbo crate to turso
2025-06-29 13:07:57 +03:00
Pekka Enberg
645c0bd796
core: Add Antithesis-aware turso_assert
...
This adds a `turso_assert` macro that is Antithesis aware when
`antithesis` feature flag is enabled. I did not yet convert any
call-sites to use it.
Co-authored-by: Nikita Sivukhin <sivukhin@turso.tech >
2025-06-29 11:46:18 +03:00
Pekka Enberg
53ba3ff926
Rename limbo_core crate to turso_core
2025-06-29 09:59:17 +03:00
Andika Tanuwijaya
8a17158034
[rust_binding] named params
2025-06-29 02:28:06 +07:00
Pekka Enberg
d938ac47c3
Turso 0.1.0-pre.2
2025-06-27 16:02:09 +03:00
Pekka Enberg
09795ca512
Turso 0.1.0-pre.1
2025-06-27 12:56:22 +03:00
Pekka Enberg
568da9bff7
bindings/javascript: Rename package to @tursodatabase/turso
2025-06-27 12:14:16 +03:00
Pekka Enberg
a5b539f1bf
bindings/python: Rename package to pyturso
2025-06-27 11:27:08 +03:00
pedrocarlo
1dc28e32f0
fix io_uring completion + clippy
2025-06-26 22:17:28 -03:00
pedrocarlo
bac5e4b563
refactor File and Database Storage to remove Arc<Connection> and return Arc<Connection> for caller to wait for completion
2025-06-26 22:17:28 -03:00
pedrocarlo
64d9193e7b
refactor Completion to have a type field and lift common is_complete property
2025-06-26 22:17:27 -03:00
Pekka Enberg
dc2e7ce942
bindings/javascript: Fix StepResult:IO handling
2025-06-26 20:42:35 +03:00
Pekka Enberg
2fc5c0ce5c
Switch to runtime flag for enabling indexes
...
Makes it easier to test the feature:
```
$ cargo run -- --experimental-indexes
Limbo v0.0.22
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database
limbo> CREATE TABLE t(x);
limbo> CREATE INDEX t_idx ON t(x);
limbo> DROP INDEX t_idx;
```
2025-06-26 10:07:28 +03:00
Pekka Enberg
344eecb7ac
bindings/rust: Fix RustDoc
2025-06-26 09:58:05 +03:00
Pekka Enberg
39aa7ad1b0
cargo fmt
2025-06-26 09:48:40 +03:00
Pekka Enberg
532b9cbcdb
bindings/rust: API documentation
2025-06-26 09:45:58 +03:00
Pekka Enberg
2123858770
bindings/python: Add Connection.rollback()
2025-06-25 20:02:09 +03:00
Pekka Enberg
0297773a02
bindings/javascript: Pass readonly flag to open
2025-06-25 18:59:44 +03:00
Pekka Enberg
4e852036c5
bindings/javascript: Drop README.md
...
The example is wrong (imports wrong package), but also duplicates text from
top-level README.md that will change. Let's drop this for now to avoid
confusion.
2025-06-25 18:38:35 +03:00
Forato
772ba761e6
bindings/javascript: implement readonly functionality
2025-06-25 18:36:52 +03:00
Diego Reis
43aa2577cd
Implement size for JS and WASM storages
2025-06-24 14:41:50 -03:00
Diego Reis
f0f9ad4844
core: Get rid of maybe_init_database_file
...
Initialization now only occurs in the first write transaction
2025-06-24 14:41:50 -03:00
Diego Reis
9c7330c01c
core: Add size method to DatabaseStorage trait
2025-06-24 14:41:49 -03:00