npm better-sqlite3 1.3.1

latest releases: 10.0.0, 9.6.0, 9.5.0...
7 years ago

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) and CREATE TABLE IF NOT EXISTS foo (bar) should use the same execution method (.run())

Don't miss a new better-sqlite3 release

NewReleases is sending notifications on new releases.