mirror of
https://github.com/sstent/node.git
synced 2026-01-27 15:41:43 +00:00
first post
This commit is contained in:
18
Nodejs-Socketio-Mysql-Demo/node_modules/mysql/lib/mysql.js
generated
vendored
Normal file
18
Nodejs-Socketio-Mysql-Demo/node_modules/mysql/lib/mysql.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var mysql = exports;
|
||||
var hashish = require('hashish');
|
||||
var Client = exports.Client = require('./client');
|
||||
var constants = require('./constants');
|
||||
var fs = require('fs');
|
||||
|
||||
mysql.PACKAGE = (function() {
|
||||
var json = fs.readFileSync(__dirname + '/../package.json', 'utf8');
|
||||
return JSON.parse(json);
|
||||
})();
|
||||
|
||||
mysql.createClient = function(config) {
|
||||
var client = new Client();
|
||||
hashish.update(client, config || {});
|
||||
return client;
|
||||
};
|
||||
|
||||
hashish.update(exports, constants);
|
||||
Reference in New Issue
Block a user