@opdb/mysql
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @opdb/mysql

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

9.5 kB

Total Files

14

Last publish

Collaborators

  • marvinscharle