Jussi Saurio
8166680ad8
Merge 'make connect() method optional and call it implicitly on first query execution' from Nikita Sivukhin
...
- mostly needed for Drizzle - because other clients with ESM can just
use await connect(...) wrapper
Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com >
Closes #3462
2025-10-01 15:19:07 +03:00
Nikita Sivukhin
33c46f77ce
add js test
2025-09-30 22:46:21 +04:00
Nikita Sivukhin
18e8c037e9
fix tests
2025-09-30 20:45:00 +04:00
Nikita Sivukhin
4772c0406e
make connect() method optional and call it implicitly on first query execution
...
- mostly needed for Drizzle - because other clients with ESM can just use await connect(...) wrapper
2025-09-30 18:40:01 +04:00
Nikita Sivukhin
70e18ce3f7
validate zero limit at the beginning in the VDBE program
...
- before, we validated that condition during program emit - which works for fixed values of parameters but doesn't work with variables provided externally to the prepared statement
2025-09-29 15:32:36 +04:00
Nikita Sivukhin
5bf69350b3
add simple tests for offset/limit binding
2025-09-26 18:06:20 +04:00
Nikita Sivukhin
a0c47b98b8
fix test
2025-09-26 17:42:11 +04:00
Nikita Sivukhin
52f3216211
fix avg aggregation
...
- ignore NULL rows as SQLite do
- emit NULL instead of NaN when no rows were aggregated
- adjust agg column alias name
2025-09-26 17:11:06 +04:00
Nikita Sivukhin
a938bdcf09
fix exec to run over multiple statements in the string
2025-09-25 12:03:52 +04:00
Nikita Sivukhin
6fe5a0b61e
add comments and small test adjustments
2025-09-25 10:52:18 +04:00
Nikita Sivukhin
2ccd50ad69
add explicit async connect method to the database instance
2025-09-24 17:06:23 +04:00
Nikita Sivukhin
1d3c823c7b
wip
2025-09-19 13:19:30 +04:00
Nikita Sivukhin
66de28d84b
wip
2025-09-19 13:19:30 +04:00
Nikita Sivukhin
7618dfb519
final adjustments
2025-09-09 14:06:10 +04:00
Nikita Sivukhin
8160f4dc04
restructure js bindings
2025-09-09 11:32:38 +04:00