forked from tecbot/gorocksdb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gorocksdb.h
30 lines (17 loc) · 866 Bytes
/
gorocksdb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <stdlib.h>
#include "rocksdb/c.h"
// This API provides convenient C wrapper functions for rocksdb client.
/* Base */
extern void gorocksdb_destruct_handler(void* state);
/* CompactionFilter */
extern rocksdb_compactionfilter_t* gorocksdb_compactionfilter_create(uintptr_t idx);
/* Comparator */
extern rocksdb_comparator_t* gorocksdb_comparator_create(uintptr_t idx);
/* Filter Policy */
extern rocksdb_filterpolicy_t* gorocksdb_filterpolicy_create(uintptr_t idx);
extern void gorocksdb_filterpolicy_delete_filter(void* state, const char* v, size_t s);
/* Merge Operator */
extern rocksdb_mergeoperator_t* gorocksdb_mergeoperator_create(uintptr_t idx);
extern void gorocksdb_mergeoperator_delete_value(void* state, const char* v, size_t s);
/* Slice Transform */
extern rocksdb_slicetransform_t* gorocksdb_slicetransform_create(uintptr_t idx);