https://github.com/opentable/grunt-sqlcmd
grunt task for executing sqlcmd
https://github.com/opentable/grunt-sqlcmd
Last synced: 9 months ago
JSON representation
grunt task for executing sqlcmd
- Host: GitHub
- URL: https://github.com/opentable/grunt-sqlcmd
- Owner: opentable
- License: mit
- Created: 2014-02-19T14:50:17.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-09-04T11:35:55.000Z (over 10 years ago)
- Last Synced: 2024-05-14T00:26:38.566Z (over 1 year ago)
- Language: JavaScript
- Size: 170 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-sqlcmd [](https://travis-ci.org/opentable/grunt-sqlcmd) [](http://badge.fury.io/js/grunt-sqlcmd) 
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)