Commit Graph

5682 Commits

Author SHA1 Message Date
Pekka Enberg
4e5de4b03f Merge 'Fix Python test import naming' from Pedro Muniz
When we renamed the Python imports, we forgot to rename the
`test_limbo_cli` to `test_turso_cli`. Also adds a vfs-bench-compile
github ci to compile and test that the bench-vfs scripts works

Closes #1933
2025-07-03 11:23:43 +03:00
pedrocarlo
c5bed21dff fix python test import naming 2025-07-03 02:15:08 -03:00
Pekka Enberg
3bd5d4c732 core: Drop debugging code 2025-07-02 19:55:38 +03:00
Pekka Enberg
e8af5f1022 Merge 'from_uri was not passing mvcc and indexes flag to database creation for memory path' from Pedro Muniz
Closes #1932
2025-07-02 19:55:27 +03:00
pedrocarlo
191f732088 from_uri was not passing mvcc and indexes flag to database creation for memory path 2025-07-02 13:46:49 -03:00
Pekka Enberg
36b550cca4 Merge 'Fix boxed memory leaks' from Ihor Andrianov
We should recreate original box to drop it properly
Also made a fast path for hashing. When key div by 2. It should decrease
cpu cycles on hot path by x10 approximately
This thing is tricky, made a long running test that verify bug, put
#[ignore] on it to not slow down CI

Reviewed-by: Preston Thorpe (@PThorpe92)

Closes #1873
2025-07-02 19:42:54 +03:00
Pekka Enberg
df257d3048 Merge 'Turso, not Limbo, in pyproject.toml' from Simon Willison
https://pypi.org/project/pyturso/0.1.1/ is still showing the old name:
![CleanShot 2025-07-01 at 07 30 11@2x](https://github.com/user-
attachments/assets/a80441ec-507c-4ff7-a698-3cb88625c2cc)

Closes #1912
2025-07-02 19:33:05 +03:00
Pekka Enberg
acc64820f2 Merge 'Rename Limbo -> Turso in python tests' from Preston Thorpe
Closes #1909
2025-07-02 19:32:56 +03: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
Pekka Enberg
eef118569f Merge 'clarify discord situation' from Glauber Costa
There is confusion (one could say, discord) between discords.

Closes #1929
2025-07-02 18:39:34 +03:00
Pekka Enberg
cbf234da6c Merge 'add a README for the rust bindings' from Glauber Costa
Closes #1931
2025-07-02 18:35:39 +03:00
Pekka Enberg
17e8aff188 Merge 'add a basic readme for the typescript binding' from Glauber Costa
Closes #1930
2025-07-02 18:35:27 +03:00
Glauber Costa
bff5a440dc add a README for the rust bindings 2025-07-02 10:18:23 -05:00
Glauber Costa
cdb1edec4e add a basic readme for the typescript binding 2025-07-02 10:03:53 -05:00
PThorpe92
0d80e3a21b Fix naming and ruff format check 2025-07-02 11:02:32 -04:00
PThorpe92
297cbbf726 Rename Limbo -> Turso in python tests 2025-07-02 10:57:46 -04:00
Glauber Costa
aae30b85a6 clarify discord situation
There is confusion (one could say, discord) between discords.
2025-07-02 08:49:05 -05:00
Pekka Enberg
5de904be47 Merge 'automatically select terminal colors for pretty mode' from Glauber Costa
I just tried turso and couldn't read the last column. Turns out I guess
Pekka's taste is not the best, at least not for everybody.
Auto-detect if terminal is light or dark mode and select colors
accordingly.

Closes #1922
2025-07-02 15:06:37 +03:00
Pekka Enberg
86b62fd1ff Merge 'add a benchmark for connection time versus number of tables' from Glauber Costa
SQLite performs poorly for connections as the number of tables increase.
Do we perform better? the same? worse?
Right now the answer is worse. Add a benchmark to help us compare.

Closes #1921
2025-07-02 13:48:28 +03:00
Pekka Enberg
00aff30a66 Merge 'remote query_mode from ProgramBuilderOpts and from function arguments' from Nikita Sivukhin
`query_mode` never changes and `ProgramBuilder` already created with
proper mode set correctly

Reviewed-by: Pere Diaz Bou <pere-altea@homail.com>

Closes #1924
2025-07-02 13:48:11 +03:00
Nikita Sivukhin
c9c5ef4e25 remote query_mode from ProgramBuilderOpts and from function arguments
- mode never changes and ProgramBuilder already created with proper mode set correctly
2025-07-02 13:24:12 +04:00
Pekka Enberg
325bd80a86 Merge 'limbo -> turso' from Glauber Costa
Fix user-visible string

Closes #1918
2025-07-02 08:14:20 +03:00
Pekka Enberg
e718cfef6b Merge 'Add opening new connection from a sqlite compatible URI, read-only connections' from Preston Thorpe
@penberg reminded me that this never got integrated :)

Closes #1908
2025-07-02 08:05:36 +03:00
Glauber Costa
808d83d34e automatically select terminal colors for pretty mode
I just tried turso and couldn't read the last column.
Turns out I guess Pekka's taste is not the best, at least not for
everybody.

Auto-detect if terminal is light or dark mode and select colors
accordingly.
2025-07-01 22:01:19 -05:00
Glauber Costa
471a95bd96 add a benchmark for connection time versus number of tables
SQLite performs poorly for connections as the number of tables increase.

Do we perform better? the same? worse?

Right now the answer is worse. Add a benchmark to help us compare.
2025-07-01 20:10:21 -05:00
Glauber Costa
4655b194c7 limbo -> turso
Fix user-visible string
2025-07-01 16:05:26 -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
Simon Willison
a46818fda0 Turso, not Limbo, in pyproject.toml 2025-07-01 07:29:06 -07:00
Ihor Andrianov
c0aa67dccb rebase 2025-07-01 17:28:34 +03:00
Ihor Andrianov
564bb28dea rewrite test to make fix verifiable 2025-07-01 17:27:58 +03:00
Ihor Andrianov
68e638e955 fix second occurance 2025-07-01 17:27:58 +03:00
Ihor Andrianov
647183938f fix sub with below 0 in tests 2025-07-01 17:27:58 +03:00
Ihor Andrianov
56b1fcf3b3 remove unused imports 2025-07-01 17:27:58 +03:00
Ihor Andrianov
41a11afe7c leaking box memory 2025-07-01 17:27:47 +03:00
Pere Diaz Bou
badbfd82f5 Merge 'Simplify PseudoCursor implementation' from Levy A.
Removes unnecessary allocations and unreachable code paths.

Reviewed-by: Pere Diaz Bou <pere-altea@homail.com>

Closes #1903
2025-07-01 16:21:05 +02:00
PThorpe92
2bbfe15ec1 Add readonly python test 2025-06-30 22:04:56 -04:00
PThorpe92
bbee10ba2c Add mvcc and index config to connection open api 2025-06-30 22:04:56 -04:00
PThorpe92
2e967b778b Prevent writes to db file in the VDBE if we are in readonly mode 2025-06-30 22:04:56 -04:00
PThorpe92
d526915b24 Optionally use from_uri in CLI if the connection string looks like a URI 2025-06-30 22:04:54 -04:00
PThorpe92
c2670dbd67 Use connection::from_uri method in Python bindings 2025-06-30 22:03:51 -04:00
PThorpe92
51ef3774ab Use connection::from_uri method in Go bindings 2025-06-30 22:03:51 -04:00
PThorpe92
8f141e934a Add readonly option to db connection and add method to open new connection via URI 2025-06-30 22:03:51 -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
081aaf3e16 Merge remote-tracking branch 'origin/main' 2025-06-30 23:58:48 +03:00
Pekka Enberg
f75034c8e0 Turso 0.1.1 2025-06-30 23:58:04 +03:00
Pekka Enberg
51a8f49dc7 Update CHANGELOG.md 2025-06-30 23:57:52 +03:00
Mikaël Francoeur
5627cee24a minus formatting 2025-06-30 15:48:29 -04:00