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

more

上级 3947a6f2
......@@ -23,6 +23,7 @@ extern "C" {
#endif
struct STsdbOptions {
size_t lruCacheSize;
/* TODO */
};
......
......@@ -20,6 +20,10 @@
extern "C" {
#endif
extern const STsdbOptions defautlTsdbOptions;
int tsdbValidateOptions(const STsdbOptions *);
#ifdef __cplusplus
}
#endif
......
......@@ -13,4 +13,20 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "tsdbDef.h"
\ No newline at end of file
#include "tsdbDef.h"
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 @@
*
* 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/>.
*/
\ 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.
先完成此消息的编辑!
想要评论请 注册