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

1.3.0 • Public • Published

Weenie MySql

This package is meant to be used with Weenie. However, if you are not using Weenie but are interested in this functionality, there's nothing wrong with using it directly. That said, in this case, it is nothing more than a wrapper around @wymp/simple-db-mysql (which itself is a wrapper around `mysql2.)

Config options are mysql2::PoolOptions. Most of these are documented here (these are the base mysql connection options), and the remainder are here.

The most common config options are these:

const config = {
  mysql: {
    host: 'localhost',
    port: 3306,
    user: 'your-user',
    password: 'your-password',
    database: 'my-database',
  }
}

Package Sidebar

Install

npm i @wymp/weenie-mysql

Weekly Downloads

17

Version

1.3.0

License

ISC

Unpacked Size

5.85 kB

Total Files

7

Last publish

Collaborators

  • kael.shipman