G:/ScriptBasic/source/extensions/mysql/mysql.h File Reference

#include <sys/types.h>
#include "mysql_com.h"
#include "mysql_version.h"

Go to the source code of this file.

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_ROWSMYSQL_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


Define Documentation

#define HAVE_MYSQL_REAL_CONNECT
 

Definition at line 206 of file mysql.h.

#define IS_BLOB  )     ((n) & BLOB_FLAG)
 

Definition at line 54 of file mysql.h.

#define IS_NOT_NULL  )     ((n) & NOT_NULL_FLAG)
 

Definition at line 53 of file mysql.h.

#define IS_NUM  )     ((t) <= FIELD_TYPE_INT24 || (t) == FIELD_TYPE_YEAR)
 

Definition at line 55 of file mysql.h.

#define IS_PRI_KEY  )     ((n) & PRI_KEY_FLAG)
 

Definition at line 52 of file mysql.h.

#define mysql_affected_rows mysql   )     (mysql)->affected_rows
 

Definition at line 138 of file mysql.h.

#define mysql_eof res   )     (res)->eof
 

Definition at line 132 of file mysql.h.

#define mysql_errno mysql   )     (mysql)->net.last_errno
 

Definition at line 141 of file mysql.h.

#define mysql_error mysql   )     (mysql)->net.last_error
 

Definition at line 140 of file mysql.h.

#define mysql_fetch_field_direct res,
fieldnr   )     ((res)->fields[fieldnr])
 

Definition at line 133 of file mysql.h.

#define mysql_fetch_fields res   )     (res)->fields
 

Definition at line 134 of file mysql.h.

#define mysql_field_tell res   )     (res)->current_field
 

Definition at line 136 of file mysql.h.

#define mysql_info mysql   )     (mysql)->info
 

Definition at line 142 of file mysql.h.

#define mysql_insert_id mysql   )     (mysql)->insert_id
 

Definition at line 139 of file mysql.h.

#define mysql_num_fields res   )     (res)->field_count
 

Definition at line 131 of file mysql.h.

#define mysql_num_rows res   )     (res)->row_count
 

Definition at line 130 of file mysql.h.

#define mysql_reload mysql   )     mysql_refresh((mysql),REFRESH_GRANT)
 

Definition at line 143 of file mysql.h.

#define mysql_row_tell res   )     (res)->data_cursor
 

Definition at line 135 of file mysql.h.

#define mysql_thread_id mysql   )     (mysql)->thread_id
 

Definition at line 144 of file mysql.h.

#define STDCALL
 

Definition at line 16 of file mysql.h.


Typedef Documentation

typedef char* gptr
 

Definition at line 20 of file mysql.h.

typedef struct st_mem_root MEM_ROOT
 

typedef char my_bool
 

Definition at line 14 of file mysql.h.

typedef struct st_mysql MYSQL
 

typedef struct st_mysql_data MYSQL_DATA
 

typedef struct st_mysql_field MYSQL_FIELD
 

typedef unsigned int MYSQL_FIELD_OFFSET
 

Definition at line 69 of file mysql.h.

typedef struct st_mysql_res MYSQL_RES
 

typedef char** MYSQL_ROW
 

Definition at line 68 of file mysql.h.

typedef MYSQL_ROWS* MYSQL_ROW_OFFSET
 

Definition at line 76 of file mysql.h.

typedef struct st_mysql_rows MYSQL_ROWS
 

typedef int Socket
 

Definition at line 42 of file mysql.h.

typedef struct st_used_mem USED_MEM
 


Enumeration Type Documentation

enum mysql_option
 

Enumerator:
MYSQL_OPT_CONNECT_TIMEOUT 
MYSQL_OPT_COMPRESS 

Definition at line 90 of file mysql.h.

enum mysql_status
 

Enumerator:
MYSQL_STATUS_READY 
MYSQL_STATUS_GET_RESULT 
MYSQL_STATUS_USE_RESULT 

Definition at line 92 of file mysql.h.


Function Documentation

void STDCALL mysql_close MYSQL sock  ) 
 

MYSQL* STDCALL mysql_connect MYSQL mysql,
const char *  host,
const char *  user,
const char *  passwd
 

int STDCALL mysql_create_db MYSQL mysql,
const char *  DB
 

void STDCALL mysql_data_seek MYSQL_RES mysql,
unsigned int  offset
 

void STDCALL mysql_debug char *  debug  ) 
 

int STDCALL mysql_drop_db MYSQL mysql,
const char *  DB
 

int STDCALL mysql_dump_debug_info MYSQL mysql  ) 
 

unsigned int STDCALL mysql_escape_string char *  to,
const char *  from,
unsigned int  from_length
 

MYSQL_FIELD* STDCALL mysql_fetch_field MYSQL_RES handle  ) 
 

unsigned int* STDCALL mysql_fetch_lengths MYSQL_RES mysql  ) 
 

MYSQL_ROW STDCALL mysql_fetch_row MYSQL_RES mysql  ) 
 

MYSQL_FIELD_OFFSET STDCALL mysql_field_seek MYSQL_RES mysql,
MYSQL_FIELD_OFFSET  offset
 

void STDCALL mysql_free_result MYSQL_RES result  ) 
 

Referenced by besFUNCTION().

char* STDCALL mysql_get_client_info void   ) 
 

char* STDCALL mysql_get_host_info MYSQL mysql  ) 
 

unsigned int STDCALL mysql_get_proto_info MYSQL mysql  ) 
 

char* STDCALL mysql_get_server_info MYSQL mysql  ) 
 

MYSQL* STDCALL mysql_init MYSQL mysql  ) 
 

int STDCALL mysql_kill MYSQL mysql,
unsigned long  pid
 

MYSQL_RES* STDCALL mysql_list_dbs 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_list_tables MYSQL mysql,
const char *  wild
 

int STDCALL mysql_options MYSQL mysql,
enum mysql_option  option,
const char *  arg
 

int STDCALL mysql_ping MYSQL mysql  ) 
 

int STDCALL mysql_query MYSQL mysql,
const char *  q
 

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
 

int STDCALL mysql_real_query MYSQL mysql,
const char *  q,
unsigned int  length
 

int STDCALL mysql_refresh MYSQL mysql,
unsigned int  refresh_options
 

MYSQL_ROW_OFFSET STDCALL mysql_row_seek MYSQL_RES mysql,
MYSQL_ROW_OFFSET 
 

int STDCALL mysql_select_db MYSQL mysql,
const char *  db
 

int STDCALL mysql_shutdown MYSQL mysql  ) 
 

char* STDCALL mysql_stat MYSQL mysql  ) 
 

MYSQL_RES* STDCALL mysql_store_result MYSQL mysql  ) 
 

MYSQL_RES* STDCALL mysql_use_result MYSQL mysql  ) 
 


Variable Documentation

unsigned int mysql_port
 

char* mysql_unix_port
 


Generated on Sun Mar 12 23:56:36 2006 for ScriptBasic by  doxygen 1.4.6-NO