Collection of changes (mostly to db source)

- Replaced string malloc()... calls with strmemcpy() from strext.h where appropriate
- Added table name to column struct (useful for WHERE's)
- Changed the column type enum to powers of 2 (potential for NULLABLE flag  by or'ing)
- Added last_qry and num_queries to connection struct
- Fixed destruct tables stopping on error
- Renamed owners to users except in the meta table
- Fixed the 'tableExists' query
This commit is contained in:
2020-10-02 12:46:21 +01:00
parent 6c8bab8da6
commit cb9361fcc9
9 changed files with 108 additions and 94 deletions

View File

@@ -13,6 +13,12 @@ struct stored_conn_t {
void *conn;
char *last_qry;
size_t last_qry_len;
size_t last_qry_alloc;
uint32_t num_queries;
uint8_t isOpen :1;
uint8_t inTransaction :1;
uint8_t needsReset :1;