Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify class names

  • Loading branch information...
commit e44d0fd452a6f38f172c5819b66871057a4f8cd5 1 parent d655651
@felixge authored
View
9 index.js
@@ -1,10 +1,5 @@
-var MysqlClient = require('./lib/MysqlClient');
-var MysqlConnection = require('./lib/MysqlConnection');
-
-exports.createClient = function(config) {
- return new MysqlClient({config: config});
-};
+var Connection = require('./lib/Connection');
exports.createConnection = function(config) {
- return new MysqlConnection({config: config});
+ return new Connection({config: config});
};
View
0  lib/MysqlConfig.js → lib/Config.js
File renamed without changes
View
8 lib/MysqlConnection.js → lib/Connection.js
@@ -1,10 +1,10 @@
-var Net = require('net');
-var MysqlConfig = require('./MysqlConfig');
-var Protocol = require('./protocol/Protocol');
+var Net = require('net');
+var Config = require('./Config');
+var Protocol = require('./protocol/Protocol');
module.exports = MysqlConnection;
function MysqlConnection(options) {
- this.config = new MysqlConfig(options.config);
+ this.config = new Config(options.config);
this.socket = options.socket;
this.protocol = new Protocol();
}
View
17 lib/MysqlClient.js
@@ -1,17 +0,0 @@
-//var MysqlClientConfig = require('./MysqlClientConfig');
-//var MysqlConnection = require('./MysqlConnection');
-
-//module.exports = MysqlClient;
-//function MysqlClient(options) {
- //this.config = new MysqlClientConfig(options.config);
- //this.connection = null;
-//}
-
-//MysqlClient.prototype.connect = function(cb) {
- //this.connection = new MysqlConnection({config: this.config});
- //this.connection.connect(cb);
-//};
-
-//MysqlClient.prototype.query = function(sql, cb) {
-
-//};
Please sign in to comment.
Something went wrong with that request. Please try again.