0.3.2 • Published 3 years ago

@synor/database-sqlite v0.3.2

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

Synor Database Version Coverage License

Synor Database SQLite

Synor Database Engine - SQLite

Installation

# using yarn:
yarn add @synor/database-sqlite better-sqlite3

# using npm:
npm install --save @synor/database-sqlite better-sqlite3

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.