Database support for modules. More...
#include "../../lib/srdb1/db.h"#include "../../str.h"#include "../../ut.h"#include <string.h>

Go to the source code of this file.
Database support functions for modules.
Definition in file db_matrix.h.
| int matrix_db_init | ( | void | ) |
This should be called from the mod_init function.
Definition at line 57 of file db_matrix.c.
References db_bind_mod(), db_check_table_version(), _str::len, and _str::s.

| int matrix_db_open | ( | void | ) |
This should be called from child_init. An already existing database connection will be closed, and a new one created.
Definition at line 89 of file db_matrix.c.
| void matrix_db_vars | ( | void | ) |
This is necessary because we're using the 'str' type.
Definition at line 105 of file db_matrix.c.
1.7.1