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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.