npm.io
0.0.3 • Published 6 years ago

@opdb/mysql

Licence
MIT
Version
0.0.3
Deps
2
Size
9 kB
Vulns
0
Weekly
0
Stars
1

@opdb/mysql

This is an adapter for @opdb/base for connecting to MySQL servers.

Run this to register and setup your MySQL connection:

import { Base } from '@opdb/base';
import { provideMysqlConnection } from '@opdb/mysql';

provideMysqlConnection({
  // your MySQL config here
  // You can supply your connection url using field `url`.
  // Config options: https://github.com/mysqljs/mysql#connection-options
});

// Will be executed using your MySQL connection, see @opdb/base for more details
Base.execute('SELECT * FROM users');

More Information