@opdb/mysql
v0.0.3
Published
OpDB MySQL Adapter
Downloads
4
Readme
@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');