You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2021. It is now read-only.
The API for hiredis that is the official C library is quite small and terse, at least for synchronous API.
It is not tested, but I would do something like:
redisContext *c = redisConnect("127.0.0.1", 6379);
redisCommand(redisContext, "REDISQL.CREATE_DB DB");
redisCommand(redisContext, "REDISQL.EXEC DB 'create table foo (a, b, c);' ");
redisCommand(redisContext, "REDISQL.EXEC DB 'insert into foo values(1,2,3),(4,5,6);' ");
reply = redisCommand(redisContext, "REDISQL.EXEC DB 'select * from foo' ");
// somehow use this reply object
freeReplyObject(reply); // not sure it is needed
Can you provide a C++ example/demo to use with RedisSQL module?
The text was updated successfully, but these errors were encountered: