Releases: WiseLibs/better-sqlite3
Releases · WiseLibs/better-sqlite3
v7.3.0
- Added the
db.serialize()method. - Buffers returned from
db.serialize()can be opened as in-memory databases by passing them tonew Database(buffer). - Added the
stmt.readonlyproperty. - added the
directOnlyoption to user-defined functions and aggregates.
v7.2.0
v7.1.5
- Fixed subclassing (e.g.,
class MyClass extends Database {})
v7.1.4
- Fixes for Jest environments
- Updated SQLite to v3.35.2
v7.1.2
7.1.2
v7.1.1
7.1.1
v7.1.0
Updated SQLite to version 3.32.0.
v7.0.1
7.0.1
v7.0.0
Breaking changes
- Dropped support for Node.js versions < 10
- Replaced the
Integerlibrary with nativeBigInts - Removed the
db.checkpoint()method in favor ofdb.pragma('wal_checkpoint(RESTART)') - Removed the "memory" option when opening databases in favor of SQLite3's
":memory:"filename convention
Non-breaking changes
- Added support for worker threads (see an example here)
- Added support for Jest environments
- Fixed many issues related to users building packaged executables, including:
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocalFATAL ERROR: v8::Object::GetAlignedPointerFromInternalField()Error: Cannot find module '...\node_modules\integer\node- Various electron-related issues
- Added an optional second parameter to
db.loadExtension()which allows users to specify the entry point of the extension - Improved documentation for building custom configurations
- Documented some undocumented features.
- Enabled SQLITE_ENABLE_GEOPOLY
- Enabled SQLITE_THREADSAFE=2
- Enabled SQLITE_OMIT_SHARED_CACHE
- Removed SQLITE_USE_URI
- The "verbose" option now logs SQL passed to db.exec() in statement-by-statement fashion, rather than all at once (to match the behavior of using prepared statements)
- Added "unsafe mode" which allows advanced users to do dangerous things at their own risk:
- allows users to mutate the database while iterating through a query, which has non-deterministic behavior
- disables
SQLITE_DBCONFIG_DEFENSIVEwhich allows users to corrupt their database file and execute undefined behavior
v6.0.1
6.0.1