Skip to content

Commit ad820e5

Browse files
committed
Changing how db-mysql is imported
1 parent b101c40 commit ad820e5

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ database bindings visit the [Node.js DB homepage] [homepage].
99

1010
## QUICK START ##
1111

12-
require('db-mysql');
13-
14-
new Mysql({
12+
var mysql = require('db-mysql');
13+
new mysql.Database({
1514
hostname: 'localhost',
1615
user: 'root',
1716
password: 'password',

db-mysql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
* @ignore
1111
*/
1212
var binding = require("./build/default/mysql_bindings");
13-
Mysql = binding.Mysql;
13+
exports.Database = binding.Mysql;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "name" : "db-mysql"
22
, "description" : "MySQL database bindings for Node.JS"
33
, "homepage" : "http://nodejsdb.org"
4-
, "version" : "0.4.0"
4+
, "version" : "0.4.1"
55
, "engines" : { "node" : ">=0.4.1" }
66
, "maintainers" :
77
[ { "name": "Mariano Iglesias"

tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* Escape & Query building tests */
22

3-
require("./db-mysql");
3+
var mysql = require("./db-mysql");
44
var tests = require("./lib/node-db/tests.js").get(function() {
5-
return new Mysql();
5+
return new mysql.Database();
66
});
77

88
for(var test in tests) {

wscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ from os.path import exists
1111

1212
srcdir = "."
1313
blddir = "build"
14-
VERSION = "0.4.0"
14+
VERSION = "0.4.1"
1515

1616
def set_options(opt):
1717
opt.tool_options("compiler_cxx")

0 commit comments

Comments
 (0)