Thodoris Sotiropoulos and GitHub
50e51f2768
validate the parameters of table properly ( #1504 )
2026-07-28 20:03:08 -05:00
Joshua Wise
0aacfb2972
fixed typos
2026-07-21 01:11:56 -05:00
Joshua Wise
df5a17def4
implemented Database#explain()
2026-07-21 01:06:49 -05:00
Joshua Wise
6e68dcc001
fixed tests for SqliteError
2026-07-20 23:40:21 -05:00
DENNIS MUUO and GitHub
f87d169a5d
Fix SqliteError cross-realm and Error.isError compatibility ( #1473 )
...
* Refactor SqliteError to use class syntax
* Rewrite `SqliteError` as an ES6 `class extends Error`. Fixes #1472
2026-07-20 23:31:15 -05:00
Joshua Wise and GitHub
8f20ead317
Refactored codebase to use node-addon-api ( #1498 )
...
* refactored codebase to use node-addon-api and publish with prebuilt binaries
* upgraded to sqlite 3.53.3
* fixed typo
* fixed test for windows
* mitigated performace regression from NAPI refactor
* mitigated performace regression from NAPI refactor
* mitigated performace regression from NAPI refactor
* mitigated performace regression from NAPI refactor
* fixed performance regression to surpass node:sqlite
* improved array optimization for large arrays
* further improved performance
* removed dead code
2026-07-20 23:15:34 -05:00
Joshua Wise
423566aa88
support the SQLITE_USE_URI environment variable
2025-07-21 05:56:41 -05:00
phiresky and GitHub
0cc6ba6dee
Disallow transaction to return a Promise due to unexpected behaviour ( #1364 )
...
disallow transaction to return a promise due to unexpected behaviour
2025-04-27 21:15:12 -05:00
Joshua Wise
3ad27de0fb
general cleanup
2023-09-02 13:51:41 -05:00
006f2fc1b8
feat(database): now nativeBinding supports addon object ( #974 )
...
* Added `webpack` support
* changed from `webpack_require` to `non_webpack_require`
* Update database.js
Added URL to webpack documentation
* feat(database): now `nativeBinding` supports addon object
* style(package): line break removed
---------
Co-authored-by: Matthew McEachen <[email protected] >
2023-09-02 13:40:40 -05:00
Joshua Wise
fa5bed9564
implemented "nativeBinding" database option
2022-01-18 17:45:57 -06:00
Joshua Wise
1d79030b36
made SqliteError code property enumerable
2022-01-18 15:37:47 -06:00
Joshua Wise
1bdca43e56
improved documentation, added tests, and micro-optimizations
2021-05-12 17:36:11 -05:00
Joshua Wise
e023778e11
made virtual tables strict about preventing missing/extraneous columns from being yielded
2021-05-11 01:36:14 -05:00
Joshua Wise
880e168b85
wrote tests for virtual tables
2021-05-11 01:05:54 -05:00
Joshua Wise
05cb8b0ed9
slightly cleaned up code
2021-05-07 02:25:18 -05:00
Joshua Wise
5724f53c0d
implemented rought draft version of virtual tables
2021-05-07 01:50:07 -05:00
Joshua Wise
b9dde13655
added directOnly option to db.aggregate()
2021-05-04 19:57:29 -05:00
Joshua Wise
c5e15e001b
added directOnly option to db.function()
2021-05-04 19:52:07 -05:00
Joshua Wise
d51ad4a7f1
implemented db.serialize() and deserialization
2021-05-04 18:47:20 -05:00
Joshua Wise
acfda67fd7
fixed database subclassing
2021-04-14 17:53:42 -05:00
Joshua Wise
bb8f2d0dbc
made Database class extendable, and fixed importing into jest environments
2021-03-30 12:31:07 -05:00
Joshua Wise
471c78ae46
replace monkey patching prooperty with WeakSet
2020-12-19 13:18:05 -06:00
Tom Crockett and GitHub
86b49ef804
Fix monkey patching bug + memory leak when running in Jest ( #415 )
2020-12-19 13:12:47 -06:00
Joshua Wise
17c40bd28b
documented undocumented features, and moved pragma_mode from Database to Addon
2020-04-25 07:31:10 -05:00
Joshua Wise
a353d74f23
removed "memory" option when opening new databases
2020-04-22 18:56:14 -05:00
Joshua Wise
a202cebc32
dropped support for node versions < 10
...
removed the integer library in favor of bigints
added support for worker threads
enabled SQLITE_THREADSAFE=2
replaced native Require() calls with dependency injection
2020-04-21 20:53:31 -05:00
Dan Barela
44d78645b3
Use bindings to load the .node file
2020-01-07 08:22:29 -07:00
Dan Barela
cf310e56ba
remove the bindings dependency
2020-01-06 14:01:38 -07:00
Dan Barela
896bc22b15
Prebuild
...
This adds prebuild support. When the library is released from GitHub a travis build will run which builds the library for Node 8, 10 and 12, and Electron 2 - 7
2019-10-30 11:22:49 -06:00
Joshua Wise
bc0816729b
made logging synchronous
2019-01-22 11:58:15 -05:00
Joshua Wise
dd53ee0f98
Merge branch 'verbose'
2019-01-22 00:31:39 -05:00
Joshua Wise
13a13c59db
Merge branch 'backups'
2019-01-22 00:16:03 -05:00
Joshua Wise
27ea8794f3
removed todo comments
2019-01-15 00:40:42 -05:00
Joshua Wise
cd59be9d35
unlink failed backups when a prior file didnt exist
2019-01-15 00:30:18 -05:00
Joshua Wise
1c24fe6ff7
removed todo comment
2019-01-14 22:23:15 -05:00
Joshua Wise
e794c55cbf
todo comment
2019-01-14 21:28:05 -05:00
Joshua Thomas Wise
ab8ba7e2ed
removed todo comment
2019-01-14 20:06:24 -05:00
Joshua Thomas Wise
c31704bb61
updated todo comment
2019-01-14 19:59:43 -05:00
Joshua Thomas Wise
5c9c275c4c
improved timeliness of backup progress callback
2019-01-14 19:40:07 -05:00
Joshua Thomas Wise
e663af1ba0
improved backup operation
2019-01-14 17:52:42 -05:00
Joshua Thomas Wise
3f1045371c
made db.backup an async function
2019-01-14 15:50:24 -05:00
Joshua Thomas Wise
f42c49b974
started reworking online backups to be a managed operation
2019-01-14 15:19:34 -05:00
Joshua Thomas Wise
a7f281e23e
implemented the "verbose" database option
2019-01-11 14:59:22 -05:00
Joshua Thomas Wise
239ef23be7
allow temporary databases and treat them like in-memory databases
2019-01-11 12:04:17 -05:00
Joshua Wise
c47ecb795f
reworked backup API to be synchronous
2018-12-24 03:46:11 -05:00
Joshua Wise
9b89611c31
removed unused functions
2018-12-23 02:33:02 -05:00
Joshua Wise
56d09e5be9
tweak
2018-12-22 23:41:36 -05:00
Joshua Wise
5f0f5f4803
added db.backup() method
2018-12-22 23:41:03 -05:00
Joshua Thomas Wise
c357f5a4b2
added backwards support for node v8.0.0
2018-12-17 12:57:07 -05:00