Skip to content

Commit

Permalink
Simplify class names
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Apr 21, 2012
1 parent d655651 commit e44d0fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 28 deletions.
9 changes: 2 additions & 7 deletions index.js
@@ -1,10 +1,5 @@
var MysqlClient = require('./lib/MysqlClient'); var Connection = require('./lib/Connection');
var MysqlConnection = require('./lib/MysqlConnection');

exports.createClient = function(config) {
return new MysqlClient({config: config});
};


exports.createConnection = function(config) { exports.createConnection = function(config) {
return new MysqlConnection({config: config}); return new Connection({config: config});
}; };
File renamed without changes.
8 changes: 4 additions & 4 deletions lib/MysqlConnection.js → lib/Connection.js
@@ -1,10 +1,10 @@
var Net = require('net'); var Net = require('net');
var MysqlConfig = require('./MysqlConfig'); var Config = require('./Config');
var Protocol = require('./protocol/Protocol'); var Protocol = require('./protocol/Protocol');


module.exports = MysqlConnection; module.exports = MysqlConnection;
function MysqlConnection(options) { function MysqlConnection(options) {
this.config = new MysqlConfig(options.config); this.config = new Config(options.config);
this.socket = options.socket; this.socket = options.socket;
this.protocol = new Protocol(); this.protocol = new Protocol();
} }
Expand Down
17 changes: 0 additions & 17 deletions lib/MysqlClient.js

This file was deleted.

0 comments on commit e44d0fd

Please sign in to comment.