Functions | |
drizzle_con_st * | drizzle_con_add_tcp (drizzle_st *drizzle, drizzle_con_st *con, const char *host, in_port_t port, const char *user, const char *password, const char *db, drizzle_con_options_t options) |
drizzle_con_st * | drizzle_con_add_uds (drizzle_st *drizzle, drizzle_con_st *con, const char *uds, const char *user, const char *password, const char *db, drizzle_con_options_t options) |
drizzle_con_st* drizzle_con_add_tcp | ( | drizzle_st * | drizzle, |
drizzle_con_st * | con, | ||
const char * | host, | ||
in_port_t | port, | ||
const char * | user, | ||
const char * | password, | ||
const char * | db, | ||
drizzle_con_options_t | options | ||
) |
Add TCP (IPv4 or IPv6) connection with common arguments.
[in] | drizzle | Drizzle structure previously initialized with drizzle_create() or drizzle_clone(). |
[in] | con | Caller allocated structure, or NULL to allocate one. |
[in] | host | Host to connect to. This may be a hostname to resolve, an IPv4 address, or an IPv6 address. This is passed directly to getaddrinfo(). |
[in] | port | Remote port to connect to. |
[in] | user | User to use while establishing the connection. |
[in] | password | Password to use while establishing the connection. |
[in] | db | Initial database to connect to. |
[in] | options | Drizzle connection options to add. |
drizzle_con_st* drizzle_con_add_uds | ( | drizzle_st * | drizzle, |
drizzle_con_st * | con, | ||
const char * | uds, | ||
const char * | user, | ||
const char * | password, | ||
const char * | db, | ||
drizzle_con_options_t | options | ||
) |
Add unix domain socket connection with common arguments.
[in] | drizzle | Drizzle structure previously initialized with drizzle_create() or drizzle_clone(). |
[in] | con | Caller allocated structure, or NULL to allocate one. |
[in] | uds | Path to unix domain socket to use for connection. |
[in] | user | User to use while establishing the connection. |
[in] | password | Password to use while establishing the connection. |
[in] | db | Initial database to connect to. |
[in] | options | Drizzle connection options to add. |