304
304
Should definitely be used if one uses shared libraries.
307
uint64_t STDCALL drizzle_num_rows(DRIZZLE_RES *res);
308
unsigned int STDCALL drizzle_num_fields(DRIZZLE_RES *res);
309
bool STDCALL drizzle_eof(DRIZZLE_RES *res);
310
DRIZZLE_FIELD *STDCALL drizzle_fetch_field_direct(DRIZZLE_RES *res,
307
uint64_t STDCALL drizzle_num_rows(const DRIZZLE_RES *res);
308
unsigned int STDCALL drizzle_num_fields(const DRIZZLE_RES *res);
309
bool STDCALL drizzle_eof(const DRIZZLE_RES *res);
310
const DRIZZLE_FIELD *STDCALL drizzle_fetch_field_direct(const DRIZZLE_RES *res,
311
311
unsigned int fieldnr);
312
DRIZZLE_FIELD * STDCALL drizzle_fetch_fields(DRIZZLE_RES *res);
313
DRIZZLE_ROW_OFFSET STDCALL DRIZZLE_ROW_tell(DRIZZLE_RES *res);
314
DRIZZLE_FIELD_OFFSET STDCALL drizzle_field_tell(DRIZZLE_RES *res);
312
const DRIZZLE_FIELD * STDCALL drizzle_fetch_fields(const DRIZZLE_RES *res);
313
DRIZZLE_ROW_OFFSET STDCALL drizzle_row_tell(const DRIZZLE_RES *res);
314
DRIZZLE_FIELD_OFFSET STDCALL drizzle_field_tell(const DRIZZLE_RES *res);
316
uint32_t STDCALL drizzle_field_count(DRIZZLE *drizzle);
317
uint64_t STDCALL drizzle_affected_rows(DRIZZLE *drizzle);
318
uint64_t STDCALL drizzle_insert_id(DRIZZLE *drizzle);
319
uint32_t STDCALL drizzle_errno(DRIZZLE *drizzle);
320
const char * STDCALL drizzle_error(DRIZZLE *drizzle);
321
const char *STDCALL drizzle_sqlstate(DRIZZLE *drizzle);
322
uint32_t STDCALL drizzle_warning_count(DRIZZLE *drizzle);
323
const char * STDCALL drizzle_info(DRIZZLE *drizzle);
324
uint32_t STDCALL drizzle_thread_id(DRIZZLE *drizzle);
325
const char * STDCALL drizzle_character_set_name(DRIZZLE *drizzle);
316
uint32_t STDCALL drizzle_field_count(const DRIZZLE *drizzle);
317
uint64_t STDCALL drizzle_affected_rows(const DRIZZLE *drizzle);
318
uint64_t STDCALL drizzle_insert_id(const DRIZZLE *drizzle);
319
uint32_t STDCALL drizzle_errno(const DRIZZLE *drizzle);
320
const char * STDCALL drizzle_error(const DRIZZLE *drizzle);
321
const char *STDCALL drizzle_sqlstate(const DRIZZLE *drizzle);
322
uint32_t STDCALL drizzle_warning_count(const DRIZZLE *drizzle);
323
const char * STDCALL drizzle_info(const DRIZZLE *drizzle);
324
uint32_t STDCALL drizzle_thread_id(const DRIZZLE *drizzle);
325
const char * STDCALL drizzle_character_set_name(const DRIZZLE *drizzle);
326
326
int32_t STDCALL drizzle_set_character_set(DRIZZLE *drizzle, const char *csname);
328
328
DRIZZLE * STDCALL drizzle_create(DRIZZLE *drizzle);
342
342
DRIZZLE_RES * STDCALL drizzle_store_result(DRIZZLE *drizzle);
343
343
DRIZZLE_RES * STDCALL drizzle_use_result(DRIZZLE *drizzle);
345
void STDCALL drizzle_get_character_set_info(DRIZZLE *drizzle,
345
void STDCALL drizzle_get_character_set_info(const DRIZZLE *drizzle,
346
346
MY_CHARSET_INFO *charset);
348
348
/* local infile support */
366
366
int32_t STDCALL drizzle_set_server_option(DRIZZLE *drizzle, enum enum_drizzle_set_option option);
367
367
int32_t STDCALL drizzle_ping(DRIZZLE *drizzle);
368
368
const char * STDCALL drizzle_stat(DRIZZLE *drizzle);
369
const char * STDCALL drizzle_get_server_info(DRIZZLE *drizzle);
369
const char * STDCALL drizzle_get_server_info(const DRIZZLE *drizzle);
370
370
const char * STDCALL drizzle_get_client_info(void);
371
371
uint32_t STDCALL drizzle_get_client_version(void);
372
const char * STDCALL drizzle_get_host_info(DRIZZLE *drizzle);
373
uint32_t STDCALL drizzle_get_server_version(DRIZZLE *drizzle);
374
uint32_t STDCALL drizzle_get_proto_info(DRIZZLE *drizzle);
372
const char * STDCALL drizzle_get_host_info(const DRIZZLE *drizzle);
373
uint32_t STDCALL drizzle_get_server_version(const DRIZZLE *drizzle);
374
uint32_t STDCALL drizzle_get_proto_info(const DRIZZLE *drizzle);
375
375
DRIZZLE_RES * STDCALL drizzle_list_dbs(DRIZZLE *drizzle,const char *wild);
376
376
DRIZZLE_RES * STDCALL drizzle_list_tables(DRIZZLE *drizzle,const char *wild);
377
377
DRIZZLE_RES * STDCALL drizzle_list_processes(DRIZZLE *drizzle);
387
387
uint32_t STDCALL drizzle_escape_string(char *to,const char *from, uint32_t from_length);
388
388
uint32_t STDCALL drizzle_hex_string(char *to,const char *from, uint32_t from_length);
389
389
uint32_t STDCALL drizzle_real_escape_string(DRIZZLE *drizzle, char *to, const char *from, uint32_t length);
390
void STDCALL myodbc_remove_escape(DRIZZLE *drizzle,char *name);
390
void STDCALL myodbc_remove_escape(const DRIZZLE *drizzle, char *name);
391
391
uint32_t STDCALL drizzle_thread_safe(void);
392
392
bool STDCALL drizzle_embedded(void);
393
393
bool STDCALL drizzle_read_query_result(DRIZZLE *drizzle);
412
412
int32_t (*unbuffered_fetch)(DRIZZLE *drizzle, char **row);
413
413
const char *(*read_statistics)(DRIZZLE *drizzle);
414
414
bool (*next_result)(DRIZZLE *drizzle);
415
int32_t (*read_change_user_result)(DRIZZLE *drizzle, char *buff, const char *passwd);
415
int32_t (*read_change_user_result)(DRIZZLE *drizzle);
416
416
} DRIZZLE_METHODS;
419
419
bool STDCALL drizzle_commit(DRIZZLE *drizzle);
420
420
bool STDCALL drizzle_rollback(DRIZZLE *drizzle);
421
421
bool STDCALL drizzle_autocommit(DRIZZLE *drizzle, bool auto_mode);
422
bool STDCALL drizzle_more_results(DRIZZLE *drizzle);
422
bool STDCALL drizzle_more_results(const DRIZZLE *drizzle);
423
423
int STDCALL drizzle_next_result(DRIZZLE *drizzle);
424
424
void STDCALL drizzle_close(DRIZZLE *sock);