more
This commit is contained in:
parent
3947a6f255
commit
903236fa5e
|
@ -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"
|
||||
#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 ------------------------ */
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue