Created
February 29, 2020 21:37
-
-
Save claretnnamocha/a512cad4ce6e2f40c2ae49ebda726cf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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