Engine for postgreSQL and MySQL databases
This package is currently in development
- Add postgresql support (DEV)
- Add mysql support (DEV)
install with npm
npm install jelly-db-engine
install with yarn
yarn add jelly-db-engine
connection type
- postgresql
- mysql
connect to database
const con = {
type: 'mysql',
host: '127.0.0.1',
user: 'user',
pass: '',
port: 3306,
database: 'mydatabase',
};
new DBEngine().connect(
con.type,
con.host,
con.user,
con.pass,
con.port,
con.database).then((e: any) => {
console.log('connecting...', e);
});