modelar-mysql-adapter
TypeScript icon, indicating that this package has built-in type declarations

3.0.7 • Public • Published

Modelar-MySQL-Adapter

This is an adapter for Modelar to connect MySQL/Maria database.

(This module is internally included by Modelar, you don't have to download it before using it.)

Prerequisites

  • NodeJS version higher than 4.0.0.

How To Use

const { DB } = require("modelar");
 
DB.init({
    type: "mysql", // Or 'maria' to connect MariaDB.
    database: "modelar",
    host: "127.0.0.1",
    port: 3306,
    user: "root",
    password: "******"
});

A Tip

When connecting to MySQL, uses InnoDB as engine; when connecting to MariaDB, uses Aria as engine; transactions are always enabled.

How To Test

This module is internally included by Modelar, so are the tests, you should test Modelar instead (if you are going to).

Readme

Keywords

Package Sidebar

Install

npm i modelar-mysql-adapter

Weekly Downloads

1

Version

3.0.7

License

MIT

Unpacked Size

19.9 kB

Total Files

7

Last publish

Collaborators

  • ayonli