Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 1.55 KB

_src_interfaces_.isqlite.config.md

File metadata and controls

59 lines (35 loc) · 1.55 KB

sqliteGlobals"src/interfaces"ISqliteConfig

Interface: Config

Hierarchy

  • Config

Index

Properties

Properties

driver

driver: any

Defined in src/interfaces.ts:48

The database driver. Most will install sqlite3 and use the Database class from it. As long as the library you are using conforms to the sqlite3 API, you can use it as the driver.

example

import sqlite from 'sqlite3'

const driver = sqlite.Database

filename

filename: string

Defined in src/interfaces.ts:27

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.


Optional mode

mode? : number

Defined in src/interfaces.ts:33

One or more of sqlite3.OPEN_READONLY, sqlite3.OPEN_READWRITE and sqlite3.OPEN_CREATE. The default value is OPEN_READWRITE | OPEN_CREATE.