Pekka Enberg
81d386d6c4
Merge 'bindings/js: support iterator, and more kinds of params' from Mikaël Francoeur
...
This PR fixes 3 tests that check param binding and iteration.
-----
as part of https://github.com/tursodatabase/turso/issues/1900
Closes #2097
2025-07-18 16:25:01 +03:00
Mikaël Francoeur
cf13911839
support more params format and iterable
2025-07-17 09:46:15 -04:00
Diego Reis
21882d1db3
bind/js: Fix presentation mode disabling logic
2025-07-16 15:07:12 -03:00
Mikaël Francoeur
68134fa186
support named bind parameters
2025-07-14 15:36:12 -04:00
Mikaël Francoeur
093140d84c
throw on empty statement
2025-07-14 15:28:07 -04:00
Mikaël Francoeur
e25064959b
return info object
2025-07-14 14:35:48 -04:00
Mikaël Francoeur
99614a3c7c
support open property
2025-07-14 14:03:57 -04:00
Mikaël Francoeur
2a691f5044
make some errors compatible with better-sqlite3
2025-07-08 11:36:23 -04:00
Mikaël Francoeur
38c650380c
fix nvim messup
2025-07-04 11:19:27 -04:00
Mikaël Francoeur
d8d26463db
add new test
2025-07-04 11:18:47 -04:00
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
Mikaël Francoeur
56a679d329
format js files using tsserver
2025-07-01 11:05:26 -04:00
Mikaël Francoeur
5627cee24a
minus formatting
2025-06-30 15:48:29 -04:00
Forato
897898fdbd
fix: remove unused Mutex
2025-06-25 18:52:12 -03:00
Forato
772ba761e6
bindings/javascript: implement readonly functionality
2025-06-25 18:36:52 +03:00
Anton Harniakou
f9f2535246
better-sqlite: test pragma
2025-06-09 10:43:41 +03:00
Anton Harniakou
9f45013ec7
limbo: test simple version of pragma table_list()
2025-06-09 10:39:59 +03:00
Anton Harniakou
acf4bdf835
Resolve merge conflicts
2025-06-09 10:33:56 +03:00
Jussi Saurio
94e334a44a
Merge 'bindings/javascript: Add source property to Statement' from Anton Harniakou
...
Let's you get the source string that was used to create the prepared
statement.
Reviewed-by: Diego Reis (@el-yawd)
Closes #1670
2025-06-09 08:24:47 +03:00
Jussi Saurio
bf26b8913f
Merge 'bindings/javascript: Refactor presentation mode and enhance test suite' from Diego Reis
...
Throughout the cleaning I discovered that the current pluck mode is
broken, so I took the lead and also fixed it.
EDIT: Address comments on #1620 by improving our documentation
Closes #1663
2025-06-09 08:22:08 +03:00
Jussi Saurio
0e552e3f23
Merge 'js-bindings/implement .name property' from Anton Harniakou
...
Returns the string that was used to open the database connection.
Reviewed-by: Diego Reis (@el-yawd)
Closes #1662
2025-06-09 08:21:26 +03:00
Anton Harniakou
6f88505f90
Add tests
2025-06-06 09:32:25 +03:00
Diego Reis
9f00f84f5b
bind/js: Improve test suite to mirror behaviour
2025-06-05 14:42:42 -03:00
Anton Harniakou
1adaa927e6
Add tests
2025-06-05 09:59:20 +03:00
Anton Harniakou
ac33dbb63a
Add tests
2025-06-04 11:48:16 +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
Diego Reis
b012d07aa3
bind/js: Apply pluck's logic to all methods
2025-05-26 17:14:33 -03:00
Diego Reis
799f4149c5
bind/js: Add bind method
2025-05-26 16:52:48 -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
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
376adbb10a
bind/js: Add support to variadic functions
2025-05-25 12:22:46 -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
Diego Reis
bc72c396f0
binds: Add empty prepared statement tests
2025-05-12 10:41:05 -03:00
Diego Reis
242f4d7cdc
bind/js: Add tests and some fixes
2025-05-08 15:57:46 -03:00
Pekka Enberg
94262e4660
bindings/javascript: Fix Statement.get() implementation
2025-03-28 11:32:55 +02:00
Pekka Enberg
7348eb0aa1
bindings/javascript: Add better-sqlite3 tests
2025-03-28 11:32:55 +02:00
Pekka Enberg
11d1dcf31a
bindings/javascript: Run tests in parallel
2025-03-28 10:38:40 +02:00
Pekka Enberg
9ef729f81c
Initial JavaScript bindings with napi-rs
2025-03-26 13:30:13 +02:00