more
This commit is contained in:
parent
36f1f30884
commit
8e8b07af4e
|
@ -34,6 +34,7 @@ STkvDb *tkvOpen(const STkvOpts *options, const char *path);
|
|||
void tkvClose(STkvDb *db);
|
||||
void tkvPut(STkvDb *db, const STkvWriteOpts *, const char *key, size_t keylen, const char *val, size_t vallen);
|
||||
char * tkvGet(STkvDb *db, const STkvReadOpts *, const char *key, size_t keylen, size_t *vallen);
|
||||
void tkvCommit(STkvDb *db);
|
||||
|
||||
// DB options
|
||||
STkvOpts *tkvOptsCreate();
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
||||
*
|
||||
* This program is free software: you can use, redistribute, and/or modify
|
||||
* it under the terms of the GNU Affero General Public License, version 3
|
||||
* or later ("AGPL"), as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _TD_TVK_ROCKSDB_H_
|
||||
#define _TD_TVK_ROCKSDB_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*_TD_TVK_ROCKSDB_H_*/
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
||||
*
|
||||
* This program is free software: you can use, redistribute, and/or modify
|
||||
* it under the terms of the GNU Affero General Public License, version 3
|
||||
* or later ("AGPL"), as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
|
@ -13,4 +13,24 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "tsdbMemTable.h"
|
||||
#include "tsdbMemTable.h"
|
||||
|
||||
STsdbMemTable *tsdbMemTableCreate(void *mallocator) {
|
||||
STsdbMemTable *pTsdbMemTable = NULL;
|
||||
|
||||
pTsdbMemTable = (STsdbMemTable *)malloc(sizeof(*pTsdbMemTable));
|
||||
if (pTsdbMemTable == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
||||
return pTsdbMemTable;
|
||||
}
|
||||
|
||||
void tsdbMemTableDestroy(STsdbMemTable *pTsdbMemTable) {
|
||||
if (pTsdbMemTable) {
|
||||
// TODO
|
||||
free(pTsdbMemTable);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue