sqlite › Globals › "src/interfaces" › ISqlite › Config
- Config
• 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: 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.
• 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.