File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,26 +36,26 @@ The backend can also issue commands to itself through C API.
36
36
37
37
C API:
38
38
/* Gets value by key. Returns the value or NULL if not found. */
39
- char *raftable_get(int key);
39
+ char *raftable_get(char * key);
40
40
41
41
/*
42
42
* Adds/updates value by key. Returns when the value gets replicated on
43
43
* current machine. Storing NULL will delete the item from the table.
44
44
*/
45
- void raftable_set(int key, char *value);
45
+ void raftable_set(char * key, char *value);
46
46
47
47
/*
48
48
* Iterates over all items in the table, calling func(key, value, arg)
49
49
* for each of them.
50
50
*/
51
- void raftable_every(void (*func)(int , char *, void *), void *arg);
51
+ void raftable_every(void (*func)(char * , char *, void *), void *arg);
52
52
53
53
SQL API:
54
54
-- set
55
- raftable(key int , value text);
55
+ raftable(key varchar(64) , value text);
56
56
57
57
-- get
58
- raftable(key int ) returns text;
58
+ raftable(key varchar(64) ) returns text;
59
59
60
60
-- list
61
- raftable() returns table (key int , value text);
61
+ raftable() returns table (key varchar(64) , value text);
You can’t perform that action at this time.
0 commit comments