0.1.31 • Published 4 years ago

@tigojs/mysql v0.1.31

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

@tigojs/mysql

Provide MySQL database support for tigo.

Install

We recommend to use @tigojs/cli to install this plugin, the cli tool will guide you to set up it.

# If you haven't installed @tigojs/cli, run this:
npm install -g @tigojs/cli
# Install the plugin with cli tool
tigo add mysql

Configuration

Here's a template:

// .tigorc.js
module.exports = {
  plugins: {
    mysql: {
      package: '@tigojs/mysql',
      config: {
        host: '127.0.0.1',
        port: 3306, // optional, default value is 3306.
        user: '',
        passsword: '',
        // Sequelize options, optional, see Sequelize's documentation for details.
        pool: {
          max: 30,
          min: 5,
          acquire: 30 * 1000,
          idle: 10 * 1000,
        },
        define: {
          paranoid: false,
          underscored: true,
          freezeTableName: true,
        },
        dialect: {
          charset: 'utf8mb4_unicode_ci',
        },
      },
    },
  },
};

License

MIT

0.1.31

4 years ago

0.1.30

4 years ago

0.1.29

4 years ago

0.1.23

4 years ago

0.1.24

4 years ago

0.1.27

4 years ago

0.1.28

4 years ago

0.1.20

4 years ago

0.1.18

4 years ago

0.1.19

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago