Created
November 1, 2010 15:12
-
-
Save koichik/658319 to your computer and use it in GitHub Desktop.
node-handlersocket example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hs = require('../lib/node-handlersocket'); | |
var con = hs.connect(); | |
con.on('connect', function() { | |
con.openIndex('test', 'EMPLOYEE', 'PRIMARY', [ 'EMPLOYEE_ID', 'EMPLOYEE_NO', 'EMPLOYEE_NAME' ], | |
function(err, index) { | |
index.find('=', 1, function(err, results) { | |
console.log(results[0]); | |
con.end(); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment