UNPKG

572 BJavaScriptView Raw
1/*jslint node: true, plusplus: true, nomen: true, vars: true */
2"use strict";
3
4var mysql = require('mysql');
5
6var MysqlRegistry = function() {
7
8};
9
10module.exports = MysqlRegistry;
11
12MysqlRegistry.prototype.initialize = function(service, callback) {
13 var connection = mysql.createConnection({
14 host : 'example.org',
15 user : 'bob',
16 password : 'secret'
17 });
18
19};
20
21MysqlRegistry.prototype.registerNode = function(item, callback) {
22
23 return callback(null, item);
24};
25
26MysqlRegistry.prototype.getNodeById = function(id, callback) {
27
28 return callback(null, null);
29
30};