Eneboo - Documentación para desarrolladores
|
#include <my_global.h>
#include "mysql.h"
#include <my_sys.h>
#include <mysys_err.h>
#include <m_string.h>
#include <m_ctype.h>
#include "mysql_version.h"
#include "mysqld_error.h"
#include "errmsg.h"
#include <violite.h>
#include <sys/stat.h>
#include <signal.h>
#include <time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include "client_settings.h"
#include <sql_common.h>
'defines' | |
#define | CLI_MYSQL_REAL_CONNECT mysql_real_connect |
#define | INADDR_NONE -1 |
#define | SOCKET_ERROR -1 |
#define | CONNECT_TIMEOUT 0 |
#define | strdup_if_not_null(A) (A) == 0 ? 0 : my_strdup((A),MYF(MY_WME)) |
Funciones | |
int | my_connect (my_socket fd, const struct sockaddr *name, uint namelen, uint timeout) |
ulong | net_safe_read (MYSQL *mysql) |
void | free_rows (MYSQL_DATA *cur) |
my_bool | cli_advanced_command (MYSQL *mysql, enum enum_server_command command, const char *header, ulong header_length, const char *arg, ulong arg_length, my_bool skip_check) |
void | free_old_query (MYSQL *mysql) |
void | set_mysql_error (MYSQL *mysql, int errcode, const char *sqlstate) |
void | end_server (MYSQL *mysql) |
void STDCALL | mysql_free_result (MYSQL_RES *result) |
void | mysql_read_default_options (struct st_mysql_options *options, const char *filename, const char *group) |
MYSQL_FIELD * | unpack_fields (MYSQL_DATA *data, MEM_ROOT *alloc, uint fields, my_bool default_value, uint server_capabilities) |
MYSQL_DATA * | cli_read_rows (MYSQL *mysql, MYSQL_FIELD *mysql_fields, unsigned int fields) |
MYSQL *STDCALL | mysql_init (MYSQL *mysql) |
my_bool STDCALL | mysql_ssl_set (MYSQL *mysql __attribute__((unused)), const char *key __attribute__((unused)), const char *cert __attribute__((unused)), const char *ca __attribute__((unused)), const char *capath __attribute__((unused)), const char *cipher __attribute__((unused))) |
MYSQL *STDCALL | CLI_MYSQL_REAL_CONNECT (MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, uint port, const char *unix_socket, ulong client_flag) |
my_bool | mysql_reconnect (MYSQL *mysql) |
int STDCALL | mysql_select_db (MYSQL *mysql, const char *db) |
void | mysql_detach_stmt_list (LIST **stmt_list __attribute__((unused))) |
void STDCALL | mysql_close (MYSQL *mysql) |
int STDCALL | mysql_send_query (MYSQL *mysql, const char *query, ulong length) |
int STDCALL | mysql_real_query (MYSQL *mysql, const char *query, ulong length) |
MYSQL_RES *STDCALL | mysql_store_result (MYSQL *mysql) |
MYSQL_ROW STDCALL | mysql_fetch_row (MYSQL_RES *res) |
int STDCALL | mysql_options (MYSQL *mysql, enum mysql_option option, const char *arg) |
my_ulonglong STDCALL | mysql_num_rows (MYSQL_RES *res) |
unsigned int STDCALL | mysql_num_fields (MYSQL_RES *res) |
uint STDCALL | mysql_errno (MYSQL *mysql) |
const char *STDCALL | mysql_error (MYSQL *mysql) |
Variables | |
uint | mysql_port = 0 |
char * | mysql_unix_port = 0 |
const char * | unknown_sqlstate = "HY000" |
const char * | not_error_sqlstate = "00000" |
const char * | sql_protocol_names_lib [] |
TYPELIB | sql_protocol_typelib |
#define CLI_MYSQL_REAL_CONNECT mysql_real_connect |
#define CONNECT_TIMEOUT 0 |
#define INADDR_NONE -1 |
defined(MSDOS) && !defined(__WIN__)
#define SOCKET_ERROR -1 |
#define strdup_if_not_null | ( | A | ) | (A) == 0 ? 0 : my_strdup((A),MYF(MY_WME)) |
my_bool cli_advanced_command | ( | MYSQL * | mysql, |
enum enum_server_command | command, | ||
const char * | header, | ||
ulong | header_length, | ||
const char * | arg, | ||
ulong | arg_length, | ||
my_bool | skip_check | ||
) |
MYSQL* STDCALL CLI_MYSQL_REAL_CONNECT | ( | MYSQL * | mysql, |
const char * | host, | ||
const char * | user, | ||
const char * | passwd, | ||
const char * | db, | ||
uint | port, | ||
const char * | unix_socket, | ||
ulong | client_flag | ||
) |
MYSQL_DATA* cli_read_rows | ( | MYSQL * | mysql, |
MYSQL_FIELD * | mysql_fields, | ||
unsigned int | fields | ||
) |
void end_server | ( | MYSQL * | mysql | ) |
void free_old_query | ( | MYSQL * | mysql | ) |
void free_rows | ( | MYSQL_DATA * | cur | ) |
void STDCALL mysql_close | ( | MYSQL * | mysql | ) |
void mysql_detach_stmt_list | ( | LIST **stmt_list | __attribute__(unused) | ) |
const char* STDCALL mysql_error | ( | MYSQL * | mysql | ) |
void STDCALL mysql_free_result | ( | MYSQL_RES * | result | ) |
my_ulonglong STDCALL mysql_num_rows | ( | MYSQL_RES * | res | ) |
int STDCALL mysql_options | ( | MYSQL * | mysql, |
enum mysql_option | option, | ||
const char * | arg | ||
) |
void mysql_read_default_options | ( | struct st_mysql_options * | options, |
const char * | filename, | ||
const char * | group | ||
) |
my_bool STDCALL mysql_ssl_set | ( | MYSQL *mysql | __attribute__(unused), |
const char *key | __attribute__(unused), | ||
const char *cert | __attribute__(unused), | ||
const char *ca | __attribute__(unused), | ||
const char *capath | __attribute__(unused), | ||
const char *cipher | __attribute__(unused) | ||
) |
MYSQL_FIELD* unpack_fields | ( | MYSQL_DATA * | data, |
MEM_ROOT * | alloc, | ||
uint | fields, | ||
my_bool | default_value, | ||
uint | server_capabilities | ||
) |
uint mysql_port = 0 |
char* mysql_unix_port = 0 |
const char* not_error_sqlstate = "00000" |
const char* sql_protocol_names_lib[] |
{ "TCP", "SOCKET", "PIPE", "MEMORY", NullS }
const char* unknown_sqlstate = "HY000" |