Skip to content
This repository was archived by the owner on Apr 19, 2020. It is now read-only.

Repository files navigation

Synor DatabaseVersionTestCoverageLicense

Synor Database SQLite

Synor Database Engine - SQLite

Installation

# using yarn:
yarn add @synor/database-sqlite
# using npm:
npm install --save @synor/database-sqlite

URI

Format: sqlite://[.]/path[?param=value&...]

Params:

NameDescriptionDefault Value
schemaSQLite Schema namemain
synor_migration_record_tableName for Migration Record Tablesynor_migration_record
file_must_existError will be thrown if the database file does not existfalse
memoryOpen an in-memory database, rather than a disk-bound onefalse
readonlyOpen the database connection in readonly modefalse
timeoutNumber of milliseconds to wait before throwing a SQLITE_BUSY error5000

Examples:

  • sqlite:///path/to/sqlite.db (Absolute path)
  • sqlite://./path/to/sqlite.db (Relative path)
  • sqlite://?memory=true (Open an in-memory database)

License

Licensed under the MIT License. Check the LICENSE file for details.

About

Synor Database Engine - SQLite

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages