grunt-knex-schema

Grunt tasks for knex-schema utility

Usage no npm install needed!

<script type="module">
  import gruntKnexSchema from 'https://cdn.skypack.dev/grunt-knex-schema';
</script>

README

grunt-knex-schema

Build Status Dependency Status devDependency Status Coverage Status

Grunt knex-schema tasks.

Install

npm install grunt-knex-schema

Usage

grunt knexschema:sync
grunt knexschema:populate
grunt knexschema:reset
grunt knexschema:drop

Gruntfile

Gruntfile options:

module.exports = function(grunt) {
  grunt.initConfig({
    knexschema: {
      database: {
        client: 'sqlite',
        connection: {
          filename: ':memory:'
        }
      },
      paths: ['path-to-schemas/*.js']
    }
  });

  grunt.loadNpmTasks('grunt-knex-schema');
};

License

MIT