Start of MODB implementation

- Create, check and destroy MODB tables
This commit is contained in:
2020-09-24 16:45:27 +01:00
parent 7a1dd09ca1
commit 2e6eb0b107
6 changed files with 586 additions and 0 deletions

22
src/modb.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef H__MODB__
#define H__MODB__
#include "db_connection.h"
#include "db_column.h"
#include "modb_types.h"
int modbCreate(struct stored_conn_t *sconn, struct modb_t *modb);
int modbExists(struct stored_conn_t *sconn, struct modb_t *modb);
int modbDestroy(struct stored_conn_t *sconn, struct modb_t *modb);
int modbAccountingCreate(struct stored_conn_t *sconn, struct modb_t *modb);
int modbAccountingExists(struct stored_conn_t *sconn, struct modb_t *modb);
int modbAccountingDestroy(struct stored_conn_t *sconn, struct modb_t *modb);
int modbMetaExtCreate(struct stored_conn_t *sconn, struct modb_t *modb,
struct column_data_t **col_data, size_t cols);
int modbMetaExtExists(struct stored_conn_t *sconn, struct modb_t *modb);
int modbMetaExtDestroy(struct stored_conn_t *sconn, struct modb_t *modb);
#endif // H__MODB__