3.1.3 • Published 5 years ago

sqb-connect-sqlite v3.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

SQB-connect-sqlite

NPM Version NPM Downloads Build Status Test Coverage Dependencies DevDependencies PeerDependencies

SQLite connection adapter for SQB.

Configuring

const sqlitedriver= require('sqb-connect-sqlite');
sqb.use(sqlitedriver);

const pool = sqb.pool({
  dialect: 'sqlite',
  database: 'dbfile.db',
  mode: sqlitedriver.OPEN_READONLY,
  busyTimeout: 30000
})
  • database: Valid values are filenames, ":memory:" for an anonymous in-memory database and an empty string for an anonymous disk-based database. Anonymous databases are not persisted and when closing the database handle, their contents are lost.
  • mode: (optional): One or more of OPEN_READONLY, OPEN_READWRITE and OPEN_CREATE. The default value is OPEN_READWRITE | OPEN_CREATE.
  • busyTimeout: Provide an integer as a value. Sets the busy timeout

Compatibility

  • node >= 6.x;
  • sqb 3.x;

License

MIT

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago