Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sails sqlite3

// configdatastores.js
const sqlite3 = require('sqlite3');

...

default: {
  adapter: 'sails-sqlite3',
  filename: './db/[YOUR DATABASE].sqlite3',
  mode: sqlite3.OPEN_READWRITE | sqlite3.OPEN_CREATE,
  verbose: false
}
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #sails
ADD COMMENT
Topic
Name
5+7 =