0.2.8 • Published 5 years ago

knex-toolkit v0.2.8

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Installation

# npm
npm install knex-toolkit --save

# yarn
yarn add knex-toolkit

Configuration

'use strict'
const { join } = require('path')

module.exports = {
  development: {
    db: {
      exemple: {
        client: 'mysql',
        connection: {
          host: '',
          port: 3306,
          user: '',
          password: '',
          database: '',
          charset: 'utf8mb4',
          collate: 'utf8mb4_unicode_ci'
        },
        debug: false,
        pool: {
          min: 2,
          max: 10
        },
        migrations: {
          tableName: 'knex_migrations',
          directory: join(process.cwd(), 'exemple', 'migrations')
        },
        seeds: {
          directory: join(process.cwd(), 'exemple', 'seeds', 'development')
        }
      }
    }
  }
}

Usage

knex-toolkit migrate make create_users -d exemple -e development -c ../src/configuration.js

License

MIT © Alain Cajuste

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago