SQLite
Provides an API for accessing SQLite databasesThis is a module for Project Forge. It provides an API for accessing SQLite databases
https://github.com/kyleu/projectforge/tree/master/module/sqlite
License
Licensed under CC0
Usage
- To configure a SQLite connection pool, call
database.OpenSQLiteDatabase
, passingSQLiteParams
- You can load the params from the environment by calling
SQLiteParamsFromEnv
(with optional prefix), this will read the following by default:DB_FILE
- SQLite database file to load, relative to project rootDB_SCHEMA
- schema to use (optional)DB_DEBUG
- if set totrue
, will log all statements and parameters