Skip to content

v1.3.1

Compare
Choose a tag to compare
@JoshuaWise JoshuaWise released this 10 Apr 21:30
· 1508 commits to master since this release

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())