summaryrefslogtreecommitdiff
path: root/server/doris_server_kvdb.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2021-09-08 10:45:47 +0800
committer[email protected] <[email protected]>2021-09-08 10:45:47 +0800
commit6922e3dd5040b8e1cb88a5f2f96d2a5fb8824e71 (patch)
tree609c2be54a364a810e3d4306643c41fa796f72aa /server/doris_server_kvdb.h
parent6386e5de579c42f2730e0c92b8e4cab5b6c57559 (diff)
支持以业务为单位,配置文件不持久化到本地HEADmaster
Diffstat (limited to 'server/doris_server_kvdb.h')
-rw-r--r--server/doris_server_kvdb.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/doris_server_kvdb.h b/server/doris_server_kvdb.h
new file mode 100644
index 0000000..6608e5c
--- /dev/null
+++ b/server/doris_server_kvdb.h
@@ -0,0 +1,18 @@
+#ifndef __DORIS_KVDB_H__
+#define __DORIS_KVDB_H__
+
+struct doris_kvhandle;
+
+struct doris_kvhandle *doris_kvdb_hanlde_new(const char *dir);
+void doris_kvdb_handle_destroy(struct doris_kvhandle *handle);
+
+bool doris_kvdb_update_keyint_valint(struct doris_kvhandle *handle, u_int64_t key, int64_t value);
+bool doris_kvdb_update_keystr_valint(struct doris_kvhandle *handle, const char *key, int64_t value);
+
+int doris_kvdb_delete_keyint(struct doris_kvhandle *handle, u_int64_t key);
+int doris_kvdb_delete_keystr(struct doris_kvhandle *handle, const char *key);
+
+int64_t doris_kvdb_get_keyint_valint(struct doris_kvhandle *handle, u_int64_t key);
+int64_t doris_kvdb_get_keystr_valint(struct doris_kvhandle *handle, const char *key);
+
+#endif