|
Data Structures |
struct | st_used_mem |
struct | st_mem_root |
struct | st_mysql_field |
struct | st_mysql_rows |
struct | st_mysql_data |
struct | st_mysql_options |
struct | st_mysql |
struct | st_mysql_res |
Defines |
#define | STDCALL |
#define | IS_PRI_KEY(n) ((n) & PRI_KEY_FLAG) |
#define | IS_NOT_NULL(n) ((n) & NOT_NULL_FLAG) |
#define | IS_BLOB(n) ((n) & BLOB_FLAG) |
#define | IS_NUM(t) ((t) <= FIELD_TYPE_INT24 || (t) == FIELD_TYPE_YEAR) |
#define | mysql_num_rows(res) (res)->row_count |
#define | mysql_num_fields(res) (res)->field_count |
#define | mysql_eof(res) (res)->eof |
#define | mysql_fetch_field_direct(res, fieldnr) ((res)->fields[fieldnr]) |
#define | mysql_fetch_fields(res) (res)->fields |
#define | mysql_row_tell(res) (res)->data_cursor |
#define | mysql_field_tell(res) (res)->current_field |
#define | mysql_affected_rows(mysql) (mysql)->affected_rows |
#define | mysql_insert_id(mysql) (mysql)->insert_id |
#define | mysql_error(mysql) (mysql)->net.last_error |
#define | mysql_errno(mysql) (mysql)->net.last_errno |
#define | mysql_info(mysql) (mysql)->info |
#define | mysql_reload(mysql) mysql_refresh((mysql),REFRESH_GRANT) |
#define | mysql_thread_id(mysql) (mysql)->thread_id |
#define | HAVE_MYSQL_REAL_CONNECT |
Typedefs |
typedef char | my_bool |
typedef char * | gptr |
typedef st_used_mem | USED_MEM |
typedef st_mem_root | MEM_ROOT |
typedef int | Socket |
typedef st_mysql_field | MYSQL_FIELD |
typedef char ** | MYSQL_ROW |
typedef unsigned int | MYSQL_FIELD_OFFSET |
typedef st_mysql_rows | MYSQL_ROWS |
typedef MYSQL_ROWS * | MYSQL_ROW_OFFSET |
typedef st_mysql_data | MYSQL_DATA |
typedef st_mysql | MYSQL |
typedef st_mysql_res | MYSQL_RES |
Enumerations |
enum | mysql_option { MYSQL_OPT_CONNECT_TIMEOUT,
MYSQL_OPT_COMPRESS
} |
enum | mysql_status { MYSQL_STATUS_READY,
MYSQL_STATUS_GET_RESULT,
MYSQL_STATUS_USE_RESULT
} |
Functions |
MYSQL *STDCALL | mysql_init (MYSQL *mysql) |
MYSQL *STDCALL | mysql_connect (MYSQL *mysql, const char *host, const char *user, const char *passwd) |
MYSQL *STDCALL | mysql_real_connect (MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, unsigned int port, const char *unix_socket, unsigned int clientflag) |
void STDCALL | mysql_close (MYSQL *sock) |
int STDCALL | mysql_select_db (MYSQL *mysql, const char *db) |
int STDCALL | mysql_query (MYSQL *mysql, const char *q) |
int STDCALL | mysql_real_query (MYSQL *mysql, const char *q, unsigned int length) |
int STDCALL | mysql_create_db (MYSQL *mysql, const char *DB) |
int STDCALL | mysql_drop_db (MYSQL *mysql, const char *DB) |
int STDCALL | mysql_shutdown (MYSQL *mysql) |
int STDCALL | mysql_dump_debug_info (MYSQL *mysql) |
int STDCALL | mysql_refresh (MYSQL *mysql, unsigned int refresh_options) |
int STDCALL | mysql_kill (MYSQL *mysql, unsigned long pid) |
int STDCALL | mysql_ping (MYSQL *mysql) |
char *STDCALL | mysql_stat (MYSQL *mysql) |
char *STDCALL | mysql_get_server_info (MYSQL *mysql) |
char *STDCALL | mysql_get_client_info (void) |
char *STDCALL | mysql_get_host_info (MYSQL *mysql) |
unsigned int STDCALL | mysql_get_proto_info (MYSQL *mysql) |
MYSQL_RES *STDCALL | mysql_list_dbs (MYSQL *mysql, const char *wild) |
MYSQL_RES *STDCALL | mysql_list_tables (MYSQL *mysql, const char *wild) |
MYSQL_RES *STDCALL | mysql_list_fields (MYSQL *mysql, const char *table, const char *wild) |
MYSQL_RES *STDCALL | mysql_list_processes (MYSQL *mysql) |
MYSQL_RES *STDCALL | mysql_store_result (MYSQL *mysql) |
MYSQL_RES *STDCALL | mysql_use_result (MYSQL *mysql) |
int STDCALL | mysql_options (MYSQL *mysql, enum mysql_option option, const char *arg) |
void STDCALL | mysql_free_result (MYSQL_RES *result) |
void STDCALL | mysql_data_seek (MYSQL_RES *mysql, unsigned int offset) |
MYSQL_ROW_OFFSET STDCALL | mysql_row_seek (MYSQL_RES *mysql, MYSQL_ROW_OFFSET) |
MYSQL_FIELD_OFFSET STDCALL | mysql_field_seek (MYSQL_RES *mysql, MYSQL_FIELD_OFFSET offset) |
MYSQL_ROW STDCALL | mysql_fetch_row (MYSQL_RES *mysql) |
unsigned int *STDCALL | mysql_fetch_lengths (MYSQL_RES *mysql) |
MYSQL_FIELD *STDCALL | mysql_fetch_field (MYSQL_RES *handle) |
unsigned int STDCALL | mysql_escape_string (char *to, const char *from, unsigned int from_length) |
void STDCALL | mysql_debug (char *debug) |
Variables |
unsigned int | mysql_port |
char * | mysql_unix_port |