grunt-sqlcmd

0.2.0 • Public • Published

grunt-sqlcmd Build Status NPM version Dependencies

Execute sqlcmd from the command line.

Provides the task sqlcmd, which builds

grunt.initConfig({
  'sqlcmd': {
    options: {
      sqlcmd: '.\\path\\to\\sqlcmd.exe' // defaults to 'sqlcmd.exe'
    },
    'my-db': {
      src: [ 'path\\to\\files\\*.sql' ], // location of sql scripts to run
      options: {
        server: 'my.server',
        database: 'my_database',
        username: 'user',
        password: 'password'
      }
    }
  }
});

Usage:

grunt sqlcmd:my-db

Future plans:

Integrate with a pure nodejs version of sqlcmd (maybe)

Readme

Keywords

Package Sidebar

Install

npm i grunt-sqlcmd

Weekly Downloads

6

Version

0.2.0

License

MIT

Last publish

Collaborators

  • acolchado
  • arnoldzokas
  • matteofigus
  • ryantomlinson
  • andyroyle
  • stevejhiggs