New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

manage-database

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

manage-database - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

lib/mysql.js

@@ -22,3 +22,3 @@ 'use strict';

create: function (name, done) {
execute(fmt('CREATE DATABASE %s;', name), opts, done);
execute(fmt('CREATE DATABASE IF NOT EXISTS `%s`;', name), opts, done);
},

@@ -29,2 +29,2 @@ drop: function (name, done) {

};
};
};
{
"name": "manage-database",
"version": "0.1.3",
"version": "0.1.4",
"description": "Manage databases",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,5 +15,5 @@ Manage databases with NodeJS

```
var dbManagerProvider = require('manage-database');
var createDbManager = require('manage-database');
var dbManager = dbManagerProvider({
var dbManager = createDbManager({
user: 'username',

@@ -27,6 +27,18 @@ password: 'password',

// create database
dbMgr.create('database_name');
dbMgr.create('database_name', function (err) {
if (err) {
console.error(err);
return;
}
console.log('database created');
});
// drop database
dbMgr.drop('database_name');
dbMgr.drop('database_name', function (err) {
if (err) {
console.error(err);
return;
}
console.log('database deleted');
});
```

@@ -33,0 +45,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc