Releases: WiseLibs/better-sqlite3
Releases · WiseLibs/better-sqlite3
v2.2.0
v2.1.0
v2.0.0
v1.4.0
v1.3.9
v1.3.8
v1.3.6
v1.3.1
3779fc9 read-only statements that do not return data can now be executed with .run()
This removes the .readonly
property and introduces the .returnsData
property as its replacement. Statements are no longer semantically segregated based on whether they modify data, but rather whether they return data. There are two major reasons for this:
- It makes more sense to
.prepare('BEGIN;').run()
than to.prepare('BEGIN;').get()
- Both
CREATE TABLE foo (bar)
andCREATE TABLE IF NOT EXISTS foo (bar)
should use the same execution method (.run()
)