Anope IRC Services  Version 1.8
Macros | Functions
rdb.c File Reference
#include "services.h"
Include dependency graph for rdb.c:

Go to the source code of this file.

Macros

#define LOAD_DBASE(num, name, func)
 

Functions

int rdb_init ()
 
int rdb_open ()
 
int rdb_close ()
 
char * rdb_quote (char *str)
 
int rdb_tag_table (char *table)
 
int rdb_tag_table_where (char *table, char *clause)
 
int rdb_empty_table (char *table)
 
int rdb_clean_table (char *table)
 
int rdb_clean_table_where (char *table, char *clause)
 
int rdb_scrub_table (char *table, char *clause)
 
int rdb_direct_query (char *query)
 
int rdb_ns_set_display (char *newnick, char *oldnick)
 
int rdb_save_ns_core (NickCore *nc)
 
int rdb_save_ns_alias (NickAlias *na)
 
int rdb_save_ns_req (NickRequest *nr)
 
int rdb_save_cs_info (ChannelInfo *ci)
 
int rdb_save_bs_core (BotInfo *bi)
 
int rdb_save_hs_core (HostCore *hc)
 
int rdb_save_os_db (unsigned int maxucnt, unsigned int maxutime, SList *ak, SList *sgl, SList *sql, SList *szl)
 
int rdb_save_news (NewsItem *ni)
 
int rdb_load_bs_dbase (void)
 
int rdb_load_hs_dbase (void)
 
int rdb_load_ns_dbase (void)
 
int rdb_load_news (void)
 
int rdb_load_exceptions (void)
 
int rdb_load_cs_dbase (void)
 
int rdb_load_os_dbase (void)
 
int rdb_load_ns_req_dbase (void)
 
int rdb_load_dbases (void)
 
int rdb_save_exceptions (Exception *e)
 

Macro Definition Documentation

#define LOAD_DBASE (   num,
  name,
  func 
)
Value:
{\
if (!func) {\
alog("RDB unable to load %s database (%d/8) !!!", name, num);\
return 0;\
}\
if (debug)\
alog("debug: RDB Loaded %s DataBase (%d/8)", name, num);\
}
E void alog(const char *fmt,...) FORMAT(printf
E int debug
Definition: extern.h:775

Definition at line 446 of file rdb.c.

Referenced by rdb_load_dbases().

Function Documentation

int rdb_clean_table ( char *  table)
int rdb_clean_table_where ( char *  table,
char *  clause 
)

Definition at line 123 of file rdb.c.

References db_mysql_try().

Referenced by save_cs_rdb_dbase(), and save_ns_rdb_dbase().

int rdb_close ( )
int rdb_direct_query ( char *  query)

Definition at line 153 of file rdb.c.

References alog(), and db_mysql_query().

int rdb_empty_table ( char *  table)

Definition at line 100 of file rdb.c.

References db_mysql_try().

Referenced by save_os_rdb_dbase().

int rdb_init ( )

Definition at line 18 of file rdb.c.

References db_mysql_init().

Referenced by do_set(), and init_secondary().

int rdb_load_bs_dbase ( void  )

Definition at line 350 of file rdb.c.

References db_mysql_load_bs_dbase().

Referenced by rdb_load_dbases().

int rdb_load_cs_dbase ( void  )

Definition at line 410 of file rdb.c.

References db_mysql_load_cs_dbase().

Referenced by rdb_load_dbases().

int rdb_load_dbases ( void  )
int rdb_load_exceptions ( void  )

Definition at line 398 of file rdb.c.

References db_mysql_load_exceptions().

Referenced by rdb_load_dbases().

int rdb_load_hs_dbase ( void  )

Definition at line 362 of file rdb.c.

References db_mysql_load_hs_dbase().

Referenced by rdb_load_dbases().

int rdb_load_news ( void  )

Definition at line 386 of file rdb.c.

References db_mysql_load_news().

Referenced by rdb_load_dbases().

int rdb_load_ns_dbase ( void  )

Definition at line 374 of file rdb.c.

References db_mysql_load_ns_dbase().

Referenced by rdb_load_dbases().

int rdb_load_ns_req_dbase ( void  )

Definition at line 434 of file rdb.c.

References db_mysql_load_ns_req_dbase().

Referenced by rdb_load_dbases().

int rdb_load_os_dbase ( void  )

Definition at line 422 of file rdb.c.

References db_mysql_load_os_dbase().

Referenced by rdb_load_dbases().

int rdb_ns_set_display ( char *  newnick,
char *  oldnick 
)

Definition at line 171 of file rdb.c.

References AK_ISNICK, db_mysql_try(), and rdb_quote().

Referenced by change_core_display().

int rdb_open ( )
char* rdb_quote ( char *  str)

Definition at line 60 of file rdb.c.

References db_mysql_quote(), and sstrdup().

Referenced by delcore(), delHostCore(), delnick(), and rdb_ns_set_display().

int rdb_save_bs_core ( BotInfo bi)

Definition at line 301 of file rdb.c.

References db_mysql_save_bs_core().

Referenced by save_bs_rdb_dbase().

int rdb_save_cs_info ( ChannelInfo ci)

Definition at line 289 of file rdb.c.

References db_mysql_save_cs_info().

Referenced by save_cs_rdb_dbase().

int rdb_save_exceptions ( Exception e)

Definition at line 488 of file rdb.c.

References db_mysql_save_exceptions().

Referenced by save_rdb_exceptions().

int rdb_save_hs_core ( HostCore hc)

Definition at line 313 of file rdb.c.

References db_mysql_save_hs_core().

Referenced by save_hs_rdb_dbase().

int rdb_save_news ( NewsItem ni)

Definition at line 338 of file rdb.c.

References db_mysql_save_news().

Referenced by save_rdb_news().

int rdb_save_ns_alias ( NickAlias na)

Definition at line 265 of file rdb.c.

References db_mysql_save_ns_alias().

Referenced by do_group(), and save_ns_rdb_dbase().

int rdb_save_ns_core ( NickCore nc)

Definition at line 253 of file rdb.c.

References db_mysql_save_ns_core().

Referenced by save_ns_rdb_dbase().

int rdb_save_ns_req ( NickRequest nr)

Definition at line 277 of file rdb.c.

References db_mysql_save_ns_req().

Referenced by save_ns_req_rdb_dbase().

int rdb_save_os_db ( unsigned int  maxucnt,
unsigned int  maxutime,
SList ak,
SList sgl,
SList sql,
SList szl 
)

Definition at line 325 of file rdb.c.

References db_mysql_save_os_db(), maxusercnt, and maxusertime.

Referenced by save_os_rdb_dbase().

int rdb_scrub_table ( char *  table,
char *  clause 
)

Definition at line 138 of file rdb.c.

References db_mysql_try().

Referenced by delcore(), delHostCore(), and delnick().

int rdb_tag_table ( char *  table)
int rdb_tag_table_where ( char *  table,
char *  clause 
)

Definition at line 86 of file rdb.c.

References db_mysql_try().

Referenced by save_cs_rdb_dbase(), and save_ns_rdb_dbase().