This file contains hidden or 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 redisql = require("./redisql"); | |
var client = redisql.createClient(); | |
var init = true; | |
var verbose = false; | |
redisql.debug_mode = true; | |
function print_response(obj) { | |
var lines = []; | |
Object.keys(obj).forEach(function (key) { |
This file contains hidden or 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
/*global Buffer require exports console setTimeout */ | |
var net = require("net"), | |
sys = require("sys"), | |
events = require("events"), | |
default_port = 6379, | |
default_host = "127.0.0.1", | |
commands; | |
exports.debug_mode = false; |
This file contains hidden or 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 redis = require("redis"), | |
util = require("util"), | |
client = redis.createClient(), | |
commands; | |
redis.debug_mode = true; | |
// helper borrowed from node_redis | |
function to_array(args) { | |
var i; |
This file contains hidden or 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
/*global Buffer require exports console setTimeout */ | |
var net = require("net"), | |
sys = require("sys"), | |
events = require("events"), | |
default_port = 6379, | |
default_host = "127.0.0.1", | |
commands; | |
exports.debug_mode = false; |
This file contains hidden or 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 EE = require('events').EventEmitter, | |
sys = require('sys'); | |
ee = new EE(); | |
die = false; | |
ee.on('die', function() { | |
die = true; | |
}); |