Options for drizzle_con_st.
Definition at line 131 of file constants.h.
enum drizzle_con_socket_t |
Socket types for drizzle_con_st.
Definition at line 149 of file constants.h.
enum drizzle_con_status_t |
Status flags for drizle_con_st.
Definition at line 159 of file constants.h.
Capabilities for drizzle_con_st.
Definition at line 178 of file constants.h.
int drizzle_con_fd | ( | const drizzle_con_st * | con | ) |
Get file descriptor for connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
drizzle_return_t drizzle_con_set_fd | ( | drizzle_con_st * | con, |
int | fd | ||
) |
Use given file descriptor for connction.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | fd | File descriptor for connection. |
void drizzle_con_close | ( | drizzle_con_st * | con | ) |
Close a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
drizzle_return_t drizzle_con_set_events | ( | drizzle_con_st * | con, |
short | events | ||
) |
Set events to be watched for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | events | Bitfield of poll() events to watch. |
drizzle_return_t drizzle_con_set_revents | ( | drizzle_con_st * | con, |
short | revents | ||
) |
Set events that are ready for a connection. This is used with the external event callbacks. See drizzle_set_event_watch_fn().
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | revents | Bitfield of poll() events that were detected. |
drizzle_st* drizzle_con_drizzle | ( | const drizzle_con_st * | con | ) |
Get the drizzle_st struct that the connection belongs to.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
const char* drizzle_con_error | ( | const drizzle_con_st * | con | ) |
Return an error string for last error encountered.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
int drizzle_con_errno | ( | const drizzle_con_st * | con | ) |
Value of errno in the case of a DRIZZLE_RETURN_ERRNO return value.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
uint16_t drizzle_con_error_code | ( | const drizzle_con_st * | con | ) |
Get server defined error code for the last result read.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
const char* drizzle_con_sqlstate | ( | const drizzle_con_st * | con | ) |
Get SQL state code for the last result read.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
drizzle_con_options_t drizzle_con_options | ( | const drizzle_con_st * | con | ) |
Get options for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
void drizzle_con_set_options | ( | drizzle_con_st * | con, |
drizzle_con_options_t | options | ||
) |
Set options for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | options | Available options for connection structure to set. |
void drizzle_con_add_options | ( | drizzle_con_st * | con, |
drizzle_con_options_t | options | ||
) |
Add options for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | options | Available options for connection structure to set. |
void drizzle_con_remove_options | ( | drizzle_con_st * | con, |
drizzle_con_options_t | options | ||
) |
Remove options for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | options | Available options for connection structure to remove. |
const char* drizzle_con_host | ( | const drizzle_con_st * | con | ) |
Get TCP host for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
in_port_t drizzle_con_port | ( | const drizzle_con_st * | con | ) |
Get TCP port for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
void drizzle_con_set_tcp | ( | drizzle_con_st * | con, |
const char * | host, | ||
in_port_t | port | ||
) |
Set TCP host and port for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | host | Host to use for this connection, NULL for default value. |
[in] | port | Port to use for this connection, 0 for default value. |
const char* drizzle_con_uds | ( | const drizzle_con_st * | con | ) |
Get unix domain socket for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
Definition at line 18 of file conn_uds.c.
void drizzle_con_set_uds | ( | drizzle_con_st * | con, |
const char * | uds | ||
) |
Set unix domain socket for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | uds | Unix domain socket to use for this connection, NULL for defailt value. |
Definition at line 34 of file conn_uds.c.
const char* drizzle_con_user | ( | const drizzle_con_st * | con | ) |
Get username for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
const char* drizzle_con_password | ( | const drizzle_con_st * | con | ) |
Get password for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
void drizzle_con_set_auth | ( | drizzle_con_st * | con, |
const char * | user, | ||
const char * | password | ||
) |
Set username and password for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | user | Username to use for this connection. |
[in] | password | Password to use for this connection. |
const char* drizzle_con_db | ( | const drizzle_con_st * | con | ) |
Get database for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
void drizzle_con_set_db | ( | drizzle_con_st * | con, |
const char * | db | ||
) |
Set database for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | db | Database to use with this connection. |
void* drizzle_con_context | ( | const drizzle_con_st * | con | ) |
Get application context pointer for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
void drizzle_con_set_context | ( | drizzle_con_st * | con, |
void * | context | ||
) |
Set application context pointer for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | context | Application context to use with this connection. |
void drizzle_con_set_context_free_fn | ( | drizzle_con_st * | con, |
drizzle_con_context_free_fn * | function | ||
) |
Set callback function when the context pointer should be freed.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
[in] | function | Function to call to clean up connection context. |
uint8_t drizzle_con_protocol_version | ( | const drizzle_con_st * | con | ) |
Get protocol version for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
const char* drizzle_con_server_version | ( | const drizzle_con_st * | con | ) |
Get server version string for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
uint32_t drizzle_con_server_version_number | ( | const drizzle_con_st * | con | ) |
Get server version number for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
uint32_t drizzle_con_thread_id | ( | const drizzle_con_st * | con | ) |
Get thread ID for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
const uint8_t* drizzle_con_scramble | ( | const drizzle_con_st * | con | ) |
Get scramble buffer for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
drizzle_capabilities_t drizzle_con_capabilities | ( | const drizzle_con_st * | con | ) |
Get capabilities for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
drizzle_charset_t drizzle_con_charset | ( | const drizzle_con_st * | con | ) |
Get character set for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
drizzle_con_status_t drizzle_con_status | ( | const drizzle_con_st * | con | ) |
Get status for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
uint32_t drizzle_con_max_packet_size | ( | const drizzle_con_st * | con | ) |
Get max packet size for a connection.
[in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |