Commit Graph

493 Commits

Author SHA1 Message Date
Jussi Saurio
cbfb94d054 Merge 'bindings/java: Add support for Linux build' from Diego Reis
Small PR.
It also adds the ~~massive~~ java's folders to gitignore

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #1646
2025-06-09 08:12:36 +03:00
Pekka Enberg
c7ec4a6270 Merge 'bindings/javascript: Add database property to Statement' from Anton Harniakou
Implements `.database` property on Statement object.
```js
let stmt = db.prepare("SELECT 1");
stmt.database == db // will return the database object the stmt was create with
```

Reviewed-by: Diego Reis (@el-yawd)

Closes #1671
2025-06-05 18:33:59 +03:00
Pekka Enberg
12876227c3 Limbo 0.0.22-pre.1 2025-06-05 18:26:33 +03:00
Anton Harniakou
90f34643c3 Implement .database property 2025-06-05 10:00:06 +03:00
Anton Harniakou
1adaa927e6 Add tests 2025-06-05 09:59:20 +03:00
Diego Reis
3a17bf7186 bind/java: Throw in case of yet unsupported Linux on arm64 2025-06-04 10:41:19 -03:00
Diego Reis
b50dcd493a bind/java: Improve TODO comment 2025-06-03 10:37:46 -03:00
Diego Reis
4589cd6916 bind/java: Add support for building on Linux 2025-06-02 16:18:11 -03:00
Diego Reis
0f685c5b9a bind/js: Add support for raw() Statements 2025-05-30 15:44:34 -03:00
Diego Reis
1367b453e9 bind/js: Add proper exec() method 2025-05-29 16:00:07 -03:00
Pekka Enberg
0ae46e815c Limbo 0.0.21 2025-05-28 12:42:03 +03:00
Pekka Enberg
6b93c9acdc Limbo 0.0.21-pre.2 2025-05-28 12:23:13 +03:00
Pekka Enberg
80d7571f3e Limbo 0.0.21-pre.1 2025-05-28 11:17:08 +03:00
Pekka Enberg
8d7f20b7d2 Merge 'Add libsql_wal_get_frame() API' from Pekka Enberg
This pull request implements the `libsql_wal_get_frame()` API. To do
that, we also introduce a `wait_for_completion()` API in I/O dispatcher.

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #1533
2025-05-27 18:17:32 +03:00
Pekka Enberg
05df548b10 core/io: Add wait_for_completion() to I/O dispatcher 2025-05-27 13:47:40 +03:00
Pekka Enberg
eca9a5b703 core/io: Switch to Arc<Completion> 2025-05-27 11:28:49 +03:00
Jussi Saurio
f035e076ca Merge 'bind/js: Add support for bind() method and reduce boilerplate' from Diego Reis
EDIT: This PR also adds support for the `pluck()` logic in all methods

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #1582
2025-05-27 11:01:27 +03:00
Diego Reis
b012d07aa3 bind/js: Apply pluck's logic to all methods 2025-05-26 17:14:33 -03:00
Diego Reis
b60fd81995 bind/js: Reduce boilerplate of binding variables and checking
Statement's state
2025-05-26 17:00:55 -03:00
Diego Reis
799f4149c5 bind/js: Add bind method 2025-05-26 16:52:48 -03:00
Pekka Enberg
bc25ef0fba Merge 'bindings/javascript: API enhancements' from Diego Reis
This PR:
- Fix compatibility for variadic functions;
- Adds pragma, transaction, close, and pluck methods;
- Add variables to get, iterate, and all methods

Closes #1576
2025-05-26 20:46:10 +03:00
Diego Reis
bce4ac45db bind/js: Remove broken try/catch 2025-05-26 12:49:47 -03:00
Diego Reis
c2efab35e0 bind/js: Refactor tests 2025-05-26 12:48:51 -03:00
Diego Reis
7dc69c9c39 bindings/js: Add extension loading 2025-05-26 12:25:43 -03:00
Diego Reis
dd029b3d37 fix clippy 2025-05-25 16:34:31 -03:00
Diego Reis
60b78b3566 bind/js: Partially implements pragma
Some pragmas may return more than one value, which would
break the current logic. So this cause should be handled in the future
2025-05-25 15:56:28 -03:00
Diego Reis
1ff454853b bind/js: Add close metho to Database 2025-05-25 14:47:04 -03:00
Diego Reis
f1018d97a4 bind/js: Add source attribute to Statement 2025-05-25 14:43:58 -03:00
Jussi Saurio
b5ac095716 Fix off-by-one error in max_frame after WAL load 2025-05-25 19:34:51 +03:00
Diego Reis
376adbb10a bind/js: Add support to variadic functions 2025-05-25 12:22:46 -03:00
Diego Reis
e463def54d wip: first wrapper version 2025-05-25 12:22:46 -03:00
Jussi Saurio
6254246541 use tempfile in test 2025-05-25 10:25:52 +03:00
Jussi Saurio
208639c5ee clippy 2025-05-24 21:01:13 +03:00
Jussi Saurio
67359dc17b Add another persistence test and also assert that the data was in the WAL, not the main db 2025-05-24 20:44:47 +03:00
Jussi Saurio
1baa9c7038 Add regression test for being able to read WAL from disk 2025-05-24 18:35:53 +03:00
Owen Delahoy
c31f2b10b7 fix: implement generate_random_number for wasm binding 2025-05-22 20:12:48 +09:00
Diego Reis
4766c9c286 bind/rust: Fix lifetime issue with pragma_query
Shallow cloning in Row ended up invalidating the pointer
to value
2025-05-19 21:29:07 -03:00
Diego Reis
ed0e3b1ba2 bind/rust: Implement pragma_query 2025-05-19 14:04:59 -03:00
Diego Reis
72a1cd5e3c wip: pragma_query method 2025-05-18 17:39:22 -03:00
Diego Reis
bc88b7cb65 bind/js: Formatting 2025-05-18 00:51:49 -03:00
Diego Reis
9f6e242e42 bind/js: Partially implements iterate() method
The API still is sync and isn't variadic
2025-05-18 00:51:23 -03:00
Pekka Enberg
e3f71259d8 Rename OwnedValue -> Value
We have not had enough merge conflicts for a while so let's do a
tree-wide rename.
2025-05-15 09:59:46 +03:00
Pekka Enberg
31ebbb190a Limbo 0.0.20 2025-05-14 09:49:05 +03:00
Pekka Enberg
bef665b7f3 Limbo 0.0.20-pre.2 2025-05-14 09:17:07 +03:00
Diego Reis
bc72c396f0 binds: Add empty prepared statement tests 2025-05-12 10:41:05 -03:00
Jussi Saurio
7b388b9696 Merge 'Bindings/Go: Fix symbols for FFI calls' from Preston Thorpe
While debugging another issue for #1469, I noticed that the symbols
aren't being properly referenced for `getError` for either limboRows or
limboStmt types.

Closes #1470
2025-05-12 10:44:31 +03:00
PThorpe92
755a19658f Bindings/Go: Fix symbols for rows + stmt getError FFI calls 2025-05-11 15:26:07 -04:00
PThorpe92
1c7a50de96 Update comments and correct vtab insert behavior 2025-05-10 10:03:00 -04:00
PThorpe92
50f2621c12 Add several more rust tests for parameter binding 2025-05-10 07:46:29 -04:00
PThorpe92
7a5422ee30 Clean up api for remap parameters and consoidate code 2025-05-10 07:46:29 -04:00