Eneboo - Documentación para desarrolladores
'defines' | Funciones | Variables
Referencia del Archivo src/libmysql_std/client.c
#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   STDCALL mysql_real_connect
#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 cli_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, MYSQL_STMT *stmt __attribute__((unused)))
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_FIELDunpack_fields (MYSQL_DATA *data, MEM_ROOT *alloc, uint fields, my_bool default_value, uint server_capabilities)
MYSQL_DATAcli_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)))
const char *STDCALL mysql_get_ssl_cipher (MYSQL *mysql)
C_MODE_START int mysql_init_character_set (MYSQL *mysql)
C_MODE_END 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)
ulong *STDCALL mysql_fetch_lengths (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)
ulong STDCALL mysql_get_server_version (MYSQL *mysql)
int STDCALL mysql_set_character_set (MYSQL *mysql, const char *cs_name)

Variables

uint mysql_port = 0
char * mysql_unix_port = 0
const char * unknown_sqlstate = "HY000"
const char * not_error_sqlstate = "00000"
CHARSET_INFOdefault_client_charset_info = &my_charset_latin1
const char * sql_protocol_names_lib [] = { "TCP", "SOCKET", "PIPE", "MEMORY", NullS }
TYPELIB sql_protocol_typelib

Documentación de los 'defines'

#define CLI_MYSQL_REAL_CONNECT   STDCALL mysql_real_connect
#define CONNECT_TIMEOUT   0
#define SOCKET_ERROR   -1

defined(MSDOS) && !defined(__WIN__)

#define strdup_if_not_null (   A)    (A) == 0 ? 0 : my_strdup((A),MYF(MY_WME))

Documentación de las funciones

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_STMT *stmt   __attribute__(unused) 
)
C_MODE_END 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 
)
ulong cli_safe_read ( MYSQL mysql)
void end_server ( MYSQL mysql)
void free_old_query ( MYSQL mysql)
void free_rows ( MYSQL_DATA cur)
int my_connect ( my_socket  fd,
const struct sockaddr *  name,
uint  namelen,
uint  timeout 
)
void STDCALL mysql_close ( MYSQL mysql)
void mysql_detach_stmt_list ( LIST **stmt_list   __attribute__(unused))
uint STDCALL mysql_errno ( MYSQL mysql)
const char* STDCALL mysql_error ( MYSQL mysql)
ulong* STDCALL mysql_fetch_lengths ( MYSQL_RES res)
MYSQL_ROW STDCALL mysql_fetch_row ( MYSQL_RES res)
void STDCALL mysql_free_result ( MYSQL_RES result)
ulong STDCALL mysql_get_server_version ( MYSQL mysql)
const char* STDCALL mysql_get_ssl_cipher ( MYSQL mysql)
MYSQL* STDCALL mysql_init ( MYSQL mysql)
C_MODE_START int mysql_init_character_set ( MYSQL mysql)
unsigned int STDCALL mysql_num_fields ( MYSQL_RES res)
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 
)
int STDCALL mysql_real_query ( MYSQL mysql,
const char *  query,
ulong  length 
)
my_bool mysql_reconnect ( MYSQL mysql)
int STDCALL mysql_select_db ( MYSQL mysql,
const char *  db 
)
int STDCALL mysql_send_query ( MYSQL mysql,
const char *  query,
ulong  length 
)
int STDCALL mysql_set_character_set ( MYSQL mysql,
const char *  cs_name 
)
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_RES* STDCALL mysql_store_result ( MYSQL mysql)
void set_mysql_error ( MYSQL mysql,
int  errcode,
const char *  sqlstate 
)
MYSQL_FIELD* unpack_fields ( MYSQL_DATA data,
MEM_ROOT alloc,
uint  fields,
my_bool  default_value,
uint  server_capabilities 
)

Documentación de las variables

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"
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'