This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/api/assets/utils/database.js

16 lines
286 B
JavaScript
Raw Normal View History

2020-08-03 12:04:07 +02:00
const Sequelize = require('sequelize')
const { DATABASE } = require('../config/config')
2020-08-03 14:14:45 +02:00
const sequelize = new Sequelize(
DATABASE.name,
DATABASE.user,
DATABASE.password,
{
dialect: 'mysql',
host: DATABASE.host,
port: DATABASE.port
2020-08-03 14:14:45 +02:00
}
)
2020-08-03 12:04:07 +02:00
module.exports = sequelize