Socket
Socket
Sign inDemoInstall

mysql2

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysql2 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

8

benchmarks/bench-insert-select.js

@@ -17,2 +17,3 @@ var common = require('../test/common');

connection.query('INSERT INTO ' + table + ' SET title="' + text + '"', function(err, result) {
debugger;
if (err) throw err;

@@ -73,3 +74,4 @@ if (numLeft > 1)

connection.end();
done();
if (done)
done();
});

@@ -80,1 +82,5 @@ });

};
if (require.main === module) {
module.exports();
}

1

lib/packets/packet.js

@@ -62,3 +62,2 @@ //var BigNumber = require("bignumber.js");

return null;
debugger;
throw "Should not reach here: " + byte1;

@@ -65,0 +64,0 @@ };

{
"name": "mysql2",
"version": "0.1.0",
"version": "0.1.1",
"description": "fast mysql driver",

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

@@ -12,6 +12,5 @@ module.exports.createConnection = function() {

var driver = require('../index.js');
if (process.env.BENCHMARK_MYSQL1)
driver = require('mysql');
// uncomment to benchmark against mysql:
//var driver = require('mysql');
return driver.createConnection({

@@ -18,0 +17,0 @@ host: process.env.MYSQL_HOST || '127.0.0.1',

@@ -8,5 +8,2 @@ #!/usr/bin/env node

}
require('../benchmarks/bench-insert-select.js')(function() {
require('urun')(__dirname, options);
});
require('urun')(__dirname, options);
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