Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jelly-db-engine

pedroladeira24ISC0.0.3TypeScript support: included

Engine for postgreSQL and MySQL databases

dbengine, engine, database, orm, postgres, mysql, mariadb

readme

db-engine

Engine for postgreSQL and MySQL databases

Current status (DEV)

This package is currently in development

Roadmap

  • Add postgresql support (DEV)
  • Add mysql support (DEV)

Instalation

install with npm

npm install jelly-db-engine

install with yarn

yarn add jelly-db-engine

Documentation

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);
            });

About

    if (foundSomeIssue) {
        reportIssue();
    }

    reportIssue() {
        iWillFixTheIssue();
        console.log('Thanks for your help ;)'):
    }