Mikaël Francoeur
4b1fdc457d
fix typo
2025-07-04 11:17:24 -04:00
Mikaël Francoeur
a427751e3a
merge js binding test suites
2025-07-04 10:13:05 -04:00
Pekka Enberg
38c6183adf
Merge 'bindings/javascript: Implement Database.open' from Lucas Forato
...
Reviewed-by: Diego Reis (@el-yawd)
Closes #1834
2025-07-04 10:28:50 +03:00
Mikaël Francoeur
50d542b719
expose wrapper and use default import
2025-07-03 15:19:03 -04:00
Mikaël Francoeur
6faa81034c
add and adapt test suite from libsql
2025-07-03 15:19:03 -04:00
Pekka Enberg
9a27583dd7
Merge 'bindings/javascript: Formatting and typos' from Mikaël Francoeur
...
This is a follow-up PR to
https://github.com/tursodatabase/turso/pull/1907#discussion_r2175959782 .
I had my formatter set to `prettier` instead of `tsserver`, which seems
to be what the team is using.
So I:
* removed the `prettier-ignore` comments that I added in the other PR;
* formatted js files using `tsserver`;
* formatted md files using `prettier` (it just makes the tables nicer);
* fixed some typos;
* added some formatting info to `CONTRIBUTING.md`.
-----
as part of https://github.com/tursodatabase/turso/issues/1900
Closes #1914
2025-07-02 19:32:30 +03:00
Glauber Costa
cdb1edec4e
add a basic readme for the typescript binding
2025-07-02 10:03:53 -05:00
Mikaël Francoeur
165e7eda5f
add formatting instructions for js
2025-07-01 11:11:36 -04:00
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
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
Lucas Forato
9376ac3f13
feat: merge with main
2025-06-30 16:25:59 -03: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
Pekka Enberg
f7f62babe5
Turso 0.1.0
2025-06-30 20:15:28 +03:00
Pekka Enberg
6672334eaa
Turso 0.1.0-pre.5
2025-06-30 17:44:21 +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
53ba3ff926
Rename limbo_core crate to turso_core
2025-06-29 09:59:17 +03: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
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
Forato
d87ab33dcd
Merge branch 'main' into feat/db-open-js-impl
2025-06-26 11:34:33 -03:00
Forato
4863564213
feat: only call close if it is open
2025-06-26 10:24:18 -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
Forato
317d8f763c
feat: add napi to open
2025-06-25 18:53:05 -03:00
Forato
897898fdbd
fix: remove unused Mutex
2025-06-25 18:52:12 -03:00
Forato
7919ff032a
feat: implement open in lib.rs
2025-06-25 18:45:23 -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
Nils Koch
2827b86917
chore: fix clippy warnings
2025-06-23 19:52:13 +01:00
Pekka Enberg
e59c5185dd
Limbo 0.0.22
2025-06-19 10:40:29 +03:00
Pekka Enberg
627e7daa65
Limbo 0.0.22-pre.5
2025-06-19 09:49:24 +03:00
Pekka Enberg
27a164bd04
Limbo 0.0.22-pre.4
2025-06-18 14:58:54 +03:00
Pekka Enberg
111d9ad79f
Limbo 0.0.22-pre.3
2025-06-18 14:14:00 +03:00
Pekka Enberg
55b660210c
Limbo 0.0.22-pre.2
2025-06-18 08:45:39 +03:00
Pekka Enberg
90c1e3fc06
Switch Connection to use Arc instead of Rc
...
Connection needs to be Arc so that bindings can wrap it with `Mutex` for
multi-threading.
2025-06-16 10:43:19 +03:00