This commit is contained in:
Hongze Cheng 2021-11-03 11:42:17 +08:00
parent 3947a6f255
commit 903236fa5e
4 changed files with 41 additions and 2 deletions

View File

@ -23,6 +23,7 @@ extern "C" {
#endif
struct STsdbOptions {
size_t lruCacheSize;
/* TODO */
};

View File

@ -20,6 +20,10 @@
extern "C" {
#endif
extern const STsdbOptions defautlTsdbOptions;
int tsdbValidateOptions(const STsdbOptions *);
#ifdef __cplusplus
}
#endif

View File

@ -13,4 +13,20 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "tsdbDef.h"
#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 ------------------------ */

View 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/>.
*/
*/
#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;
}