Skip to content

For sqlite database

Alexey Gordeyev edited this page Feb 27, 2016 · 7 revisions

Back to Home

Database configuration

Steps

  • Add dependency to sqlite3 database driver module in app package.json, and install it.
  • Rewrite database configuration file

To configure trinte app for SQLite database use adapter name sqlite3.

Database Configuration file

|-- config
    |-- ...
    `-- database.js

Example

you must first create a directory.

module.exports.production = {
    driver     : 'sqlite3',
    database   : './db/trinte-dev.db'
};
module.exports.development = {
...
};
module.exports.test = {
...
};

Full database params list here

Back to Home

Clone this wiki locally