|
cwist
Modern C web framework with libttak runtime
|
Nuke DB Context. More...
#include <nuke_db.h>
Public Attributes | |
| sqlite3 * | mem_db |
| The active in-memory database handle. | |
| sqlite3 * | disk_db |
| The backup disk database handle. | |
| char * | disk_path |
| Path to the disk database file. | |
| bool | auto_sync |
| Whether auto-sync is enabled. | |
| int | sync_interval_ms |
| Sync interval in milliseconds. | |
| bool | is_disk_mode |
| True if running in low-memory disk fallback mode. | |
| bool | load_successful |
| True if initial load from disk was successful. | |
Nuke DB Context.
Logic:
| bool cwist_nuke_db_t::auto_sync |
Whether auto-sync is enabled.
Definition at line 40 of file nuke_db.h.
Referenced by cwist_nuke_init().
| sqlite3* cwist_nuke_db_t::disk_db |
The backup disk database handle.
Definition at line 38 of file nuke_db.h.
Referenced by cwist_nuke_get_db(), cwist_nuke_init(), cwist_nuke_serialize(), and cwist_nuke_sync().
| char* cwist_nuke_db_t::disk_path |
Path to the disk database file.
Definition at line 39 of file nuke_db.h.
Referenced by cwist_nuke_init().
| bool cwist_nuke_db_t::is_disk_mode |
True if running in low-memory disk fallback mode.
Definition at line 43 of file nuke_db.h.
Referenced by cwist_nuke_deserialize(), cwist_nuke_get_db(), cwist_nuke_init(), cwist_nuke_serialize(), and cwist_nuke_sync().
| bool cwist_nuke_db_t::load_successful |
True if initial load from disk was successful.
Definition at line 44 of file nuke_db.h.
Referenced by cwist_nuke_init(), and cwist_nuke_sync().
| sqlite3* cwist_nuke_db_t::mem_db |
The active in-memory database handle.
Definition at line 37 of file nuke_db.h.
Referenced by cwist_nuke_deserialize(), cwist_nuke_get_db(), cwist_nuke_init(), cwist_nuke_serialize(), and cwist_nuke_sync().
| int cwist_nuke_db_t::sync_interval_ms |
Sync interval in milliseconds.
Definition at line 41 of file nuke_db.h.
Referenced by cwist_nuke_init().