1.3.0 • Published 3 months ago

@wymp/weenie-mysql v1.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

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',
  }
}