Want to use redissql giving error node.js

4 views
Skip to first unread message

Rahul Mehta

unread,
Jun 2, 2011, 2:02:24 AM6/2/11
to redisql-dev
while running this example https://github.com/JakSprats/node_Redisql/blob/master/examples/redisql_examples.js

gives me this error ,

~/rahul$ node redissql.js

node.js:178
throw e; // process.nextTick error, or 'error' event on first
tick
^
ReferenceError: len is not defined
at check_argc (/usr/local/lib/node/.npm/redisql/0.0.1/package/
index.js:18:62)
at RedisClient.<anonymous> (/usr/local/lib/node/.npm/redisql/0.0.1/
package/index.js:102:9)
at Object.<anonymous> (/home/reach121/rahul/redissql.js:4:8)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array.<anonymous> (module.js:423:10)
at EventEmitter._tickCallback (node.js:170:26)

I dont understand this point in this link https://github.com/JakSprats/node_Redisql
This test calls "FLUSHDB" on database 15 of redisql -> you will lose
data in DB 15

what is to do with this and how we are going to do ?

Jak Sprats

unread,
Jun 2, 2011, 5:31:39 PM6/2/11
to redisql-dev
Hi Rahul,

I will contact Matt Ranney the author of the Node.js client and we
will see what the issue is.

the line that flushed the data in database 15 WILL DELETE the data in
database 15 (this is documented), this is a common practice in redis
clients to use database 15 as a test database and to delete ALL its
data

- jaksprats

On Jun 2, 12:02 am, Rahul Mehta <rahul23134...@gmail.com> wrote:
> while running this examplehttps://github.com/JakSprats/node_Redisql/blob/master/examples/redisq...
>
> gives me this error ,
>
> ~/rahul$ node redissql.js
>
> node.js:178
>         throw e; // process.nextTick error, or 'error' event on first
> tick
>         ^
> ReferenceError: len is not defined
>     at check_argc (/usr/local/lib/node/.npm/redisql/0.0.1/package/
> index.js:18:62)
>     at RedisClient.<anonymous> (/usr/local/lib/node/.npm/redisql/0.0.1/
> package/index.js:102:9)
>     at Object.<anonymous> (/home/reach121/rahul/redissql.js:4:8)
>     at Module._compile (module.js:404:26)
>     at Object..js (module.js:410:10)
>     at Module.load (module.js:336:31)
>     at Function._load (module.js:297:12)
>     at Array.<anonymous> (module.js:423:10)
>     at EventEmitter._tickCallback (node.js:170:26)
>
> I dont understand this point in this linkhttps://github.com/JakSprats/node_Redisql
Reply all
Reply to author
Forward
0 new messages