#include "../../../include/config.h"
#include "../include/common.h"
#include "../include/io.h"
#include "../include/utils.h"
#include "../include/protoapi.h"
#include "../include/ido2db.h"
#include "../include/dbhandlers.h"
#include "../include/db.h"
Go to the source code of this file.
Functions |
int | ido2db_log_debug_info (int, int, const char *,...) |
int | ido2db_db_init (ido2db_idi *idi) |
int | ido2db_db_deinit (ido2db_idi *idi) |
int | ido2db_db_is_connected (ido2db_idi *idi) |
int | ido2db_db_reconnect (ido2db_idi *idi) |
int | ido2db_db_connect (ido2db_idi *idi) |
int | ido2db_db_disconnect (ido2db_idi *idi) |
int | ido2db_db_version_check (ido2db_idi *idi) |
int | ido2db_db_hello (ido2db_idi *idi) |
int | ido2db_thread_db_hello (ido2db_idi *idi) |
int | ido2db_db_goodbye (ido2db_idi *idi) |
int | ido2db_db_checkin (ido2db_idi *idi) |
char * | ido2db_db_escape_string (ido2db_idi *idi, char *buf) |
char * | ido2db_db_timet_to_sql (ido2db_idi *idi, time_t t) |
char * | ido2db_db_sql_to_timet (ido2db_idi *idi, char *field) |
int | ido2db_db_query (ido2db_idi *idi, char *buf) |
int | ido2db_db_free_query (ido2db_idi *idi) |
int | ido2db_handle_db_error (ido2db_idi *idi) |
int | ido2db_db_clear_table (ido2db_idi *idi, char *table_name) |
int | ido2db_db_get_latest_data_time (ido2db_idi *idi, char *table_name, char *field_name, unsigned long *t) |
int | ido2db_db_trim_data_table (ido2db_idi *idi, char *table_name, char *field_name, unsigned long t) |
int | ido2db_db_perform_maintenance (ido2db_idi *idi) |
Variables |
int | errno |
int | dummy |
ido2db_dbconfig | ido2db_db_settings |
time_t | ido2db_db_last_checkin_time |
char * | ido2db_db_rawtablenames [IDO2DB_MAX_DBTABLES] |
char * | ido2db_db_tablenames [IDO2DB_MAX_DBTABLES] |
Function Documentation
int ido2db_db_clear_table |
( |
ido2db_idi * |
idi, |
|
|
char * |
table_name |
|
) |
| |
Definition at line 404 of file db.c.
Definition at line 338 of file db.c.
char* ido2db_db_escape_string |
( |
ido2db_idi * |
idi, |
|
|
char * |
buf |
|
) |
| |
int ido2db_db_get_latest_data_time |
( |
ido2db_idi * |
idi, |
|
|
char * |
table_name, |
|
|
char * |
field_name, |
|
|
unsigned long * |
t |
|
) |
| |
Definition at line 214 of file db.c.
Definition at line 364 of file db.c.
int ido2db_db_perform_maintenance |
( |
ido2db_idi * |
idi | ) |
|
int ido2db_db_query |
( |
ido2db_idi * |
idi, |
|
|
char * |
buf |
|
) |
| |
Definition at line 384 of file db.c.
char* ido2db_db_sql_to_timet |
( |
ido2db_idi * |
idi, |
|
|
char * |
field |
|
) |
| |
char* ido2db_db_timet_to_sql |
( |
ido2db_idi * |
idi, |
|
|
time_t |
t |
|
) |
| |
int ido2db_db_trim_data_table |
( |
ido2db_idi * |
idi, |
|
|
char * |
table_name, |
|
|
char * |
field_name, |
|
|
unsigned long |
t |
|
) |
| |
int ido2db_log_debug_info |
( |
int |
, |
|
|
int |
, |
|
|
const char * |
, |
|
|
|
... |
|
) |
| |
Variable Documentation
Definition at line 23 of file db.c.
Definition at line 124 of file db.c.
Definition at line 200 of file db.c.