libtools
mysql.h
Go to the documentation of this file.
1 
20 #ifndef __TOOLS_MYSQL_H
21 #define __TOOLS_MYSQL_H
22 
23 #include <stdarg.h>
24 #include <mysql/mysql.h>
25 
36 char *mysql_vasprintf(MYSQL *mysql, char **str, const char *format, va_list args);
37 
67 char *mysql_asprintf(MYSQL *mysql, char **str, const char *format, ...);
68 
76 int mysql_transaction(MYSQL *mysql);
77 
89 int mysql_qprintf(MYSQL *mysql, const char *format, ...);
90 
93 #endif /* __TOOLS_MYSQL_H */
char * mysql_asprintf(MYSQL *mysql, char **str, const char *format,...)
allocate and format mysql query string
char * mysql_vasprintf(MYSQL *mysql, char **str, const char *format, va_list args)
allocate and format mysql query string
int mysql_transaction(MYSQL *mysql)
Start new transaction.
int mysql_qprintf(MYSQL *mysql, const char *format,...)
Send a MySQL query.