JunkBox_Lib 1.10.1
|
MySQL用ライブラリ ヘッダ More...
Go to the source code of this file.
Macros | |
#define | SQL_CONF_FILE "/etc/my.cnf" |
#define | SQL_DEFAULT_TIMEOUT 10 |
Functions | |
MYSQL * | sql_open (char *hostname, char *dbname, char *username, char *passwd, unsigned int tmot) |
void | sql_close (MYSQL *mysql) |
Definition in file mysql_tool.h.
#define SQL_CONF_FILE "/etc/my.cnf" |
Definition at line 22 of file mysql_tool.h.
Referenced by sql_open().
#define SQL_DEFAULT_TIMEOUT 10 |
Definition at line 23 of file mysql_tool.h.
Referenced by sql_open().
void sql_close | ( | MYSQL * | mysql | ) |
Definition at line 50 of file mysql_tool.c.
MYSQL * sql_open | ( | char * | hostname, |
char * | dbname, | ||
char * | username, | ||
char * | passwd, | ||
unsigned int | tmot ) |
Definition at line 14 of file mysql_tool.c.
References Buffer::buf, decomp_hostport(), file_exist(), free_Buffer(), make_Buffer_bystr, SQL_CONF_FILE, and SQL_DEFAULT_TIMEOUT.