Skip to content

1.1. Creating Handlers

Arnav Gupta edited this page Feb 5, 2018 · 1 revision

Create SQL Handler

Allows persistence to Postgres/MySQL via Sequelize

const SQLStore = require('jagapi-sequelize')
const debug = require('debug')('qbounty:sql')
const config = require('../../config')

const createHandler = () => new SQLStore(config.DATABASE_URI, {
    logging: debug
})

exports = module.exports = {
    createHandler
}
Clone this wiki locally