Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
grunt-mssql
Advanced tools
npm install numera/grunt-mssql.git --save-dev
A wrapper around tedious for executing query against Microsoft Sql Server. This is not meant to be used in a production enviroment but more for E2E testing where there is a need to take database snapshot and restoring the snapshot.
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-mssql');
In your project's Gruntfile, add a section named mssql
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
mssql: {
options: {
server: '',
userName: '',
password: ''
},
restore: {
query: ''
},
},
})
Type: String
Default value: ''
Location of the MS Sql Server.
Type: String
Default value: '.'
Account to log in to the server
Type: String
Default value: '.'
Password for the account
Type: String
or String[]
Default value: '.'
Sql statement to be executed
grunt.initConfig({
mssql:{
options: {
server: '127.0.0.1',
userName: 'user',
password: 'password'
},
snapshot: {
query: "EXECUTE SomeStoreProcedueToTakeSnapshot;"
},
restore: {
query: [
"ALTER DATABASE MyDatabase SET SINGLE_USER WITH ROLLBACK IMMEDIATE;",
"RESTORE DATABASE MyDatabase FROM DATABASE_SNAPSHOT = 'MyDatabaseSnapShot';",
"ALTER DATABASE MyDatabase SET MULTI_USER;"
]
}
}
});
Published to npm on behalf of https://github.com/dphung20
FAQs
All query to be excuted against a ms sql server
We found that grunt-mssql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.