0.0.3 • Published 4 years ago

@opdb/mysql v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@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