File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,8 @@ database bindings visit the [Node.js DB homepage] [homepage].
9
9
10
10
## QUICK START ##
11
11
12
- require('db-mysql');
13
-
14
- new Mysql({
12
+ var mysql = require('db-mysql');
13
+ new mysql.Database({
15
14
hostname: 'localhost',
16
15
user: 'root',
17
16
password: 'password',
Original file line number Diff line number Diff line change 10
10
* @ignore
11
11
*/
12
12
var binding = require ( "./build/default/mysql_bindings" ) ;
13
- Mysql = binding . Mysql ;
13
+ exports . Database = binding . Mysql ;
Original file line number Diff line number Diff line change 1
1
{ "name" : " db-mysql"
2
2
, "description" : " MySQL database bindings for Node.JS"
3
3
, "homepage" : " http://nodejsdb.org"
4
- , "version" : " 0.4.0 "
4
+ , "version" : " 0.4.1 "
5
5
, "engines" : { "node" : " >=0.4.1" }
6
6
, "maintainers" :
7
7
[ { "name" : " Mariano Iglesias"
Original file line number Diff line number Diff line change 1
1
/* Escape & Query building tests */
2
2
3
- require ( "./db-mysql" ) ;
3
+ var mysql = require ( "./db-mysql" ) ;
4
4
var tests = require ( "./lib/node-db/tests.js" ) . get ( function ( ) {
5
- return new Mysql ( ) ;
5
+ return new mysql . Database ( ) ;
6
6
} ) ;
7
7
8
8
for ( var test in tests ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ from os.path import exists
11
11
12
12
srcdir = "."
13
13
blddir = "build"
14
- VERSION = "0.4.0 "
14
+ VERSION = "0.4.1 "
15
15
16
16
def set_options (opt ):
17
17
opt .tool_options ("compiler_cxx" )
You can’t perform that action at this time.
0 commit comments