提交 903236fa 编写于 作者: H Hongze Cheng

more

上级 3947a6f2
...@@ -23,6 +23,7 @@ extern "C" { ...@@ -23,6 +23,7 @@ extern "C" {
#endif #endif
struct STsdbOptions { struct STsdbOptions {
size_t lruCacheSize;
/* TODO */ /* TODO */
}; };
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
extern "C" { extern "C" {
#endif #endif
extern const STsdbOptions defautlTsdbOptions;
int tsdbValidateOptions(const STsdbOptions *);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -13,4 +13,20 @@ ...@@ -13,4 +13,20 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "tsdbDef.h" #include "tsdbDef.h"
\ No newline at end of file
STsdb *tsdbOpen(const char *path, const STsdbOptions *pTsdbOptions) {
STsdb *pTsdb = NULL;
/* TODO */
return pTsdb;
}
void tsdbClose(STsdb *pTsdb) {
if (pTsdb) {
/* TODO */
}
}
void tsdbRemove(const char *path) { taosRemoveDir(path); }
/* ------------------------ STATIC METHODS ------------------------ */
\ No newline at end of file
...@@ -11,4 +11,22 @@ ...@@ -11,4 +11,22 @@
* *
* You should have received a copy of the GNU Affero General Public License * 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/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
\ No newline at end of file
#include "tsdbDef.h"
const STsdbOptions defautlTsdbOptions = {.lruCacheSize = 0};
int tsdbOptionsInit(STsdbOptions *pTsdbOptions) {
// TODO
return 0;
}
void tsdbOptionsClear(STsdbOptions *pTsdbOptions) {
// TODO
}
int tsdbValidateOptions(const STsdbOptions *pTsdbOptions) {
// TODO
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册