Skip to content

Instantly share code, notes, and snippets.

@debbysa
Created May 10, 2020 11:42
Show Gist options
  • Save debbysa/9b663b1b5b3470208137b523fa669068 to your computer and use it in GitHub Desktop.
Save debbysa/9b663b1b5b3470208137b523fa669068 to your computer and use it in GitHub Desktop.
const Sequelize = require(‘sequelize’);
const sequelize = new Sequelize(
"nama_database",
"username",
"password",
{
//contoh
host: "localhost",
dialect: "mysql" | "sqlite" | "postgres" | "mssql"
}
)
module.exports = sequelize;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment