Skip to content

Instantly share code, notes, and snippets.

@claretnnamocha
Created February 29, 2020 21:37
Show Gist options
  • Save claretnnamocha/a512cad4ce6e2f40c2ae49ebda726cf7 to your computer and use it in GitHub Desktop.
Save claretnnamocha/a512cad4ce6e2f40c2ae49ebda726cf7 to your computer and use it in GitHub Desktop.
const { AlphaORM: DB } = require('alpha-orm')
// MySQL
DB.setup('mysql',{
host : 'localhost',
user : 'root',
password : '',
database : 'alphaorm'
})
// PostgreSQL
DB.setup('pgsql',{
host : 'localhost',
user : 'postgres',
password : 'postgres',
database : 'alphaorm',
schema : 'public' // Optional
})
// SQLite
DB.setup('sqlite',{
database : 'alphaorm'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment