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.
Repository navigation
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
Activity
siscia commentedon Sep 16, 2020
Hello,
Do you have a specific library in mind?
The API for
hiredisthat 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:
It is just a sketch that I didn't test.
Does it helps?
siscia commentedon Sep 16, 2020
(And congrats on opening our first issue!)
nqf commentedon Sep 18, 2020
you can use redis-plus-plus lib