75
75
* @return On success, a pointer to the (possibly allocated) structure. On
76
76
* failure this will be NULL.
79
78
drizzle_result_st *drizzle_command_write(drizzle_st *con,
80
79
drizzle_result_st *result,
81
80
drizzle_command_t command,
82
81
const void *data, size_t size,
84
83
drizzle_return_t *ret_ptr);
85
* Set TCP host and port for a connection.
87
* @param[in] con Connection structure previously initialized with
88
* drizzle_create(), drizzle_clone(), or related functions.
89
* @param[in] host Host to use for this connection, NULL for default value.
90
* @param[in] port Port to use for this connection, 0 for default value.
92
void drizzle_set_tcp(drizzle_st *con, const char *host, in_port_t port);
95
* Get unix domain socket for a connection.
97
* @param[in] con Connection structure previously initialized with
98
* drizzle_create(), drizzle_clone(), or related functions.
99
* @return Unix domain socket set for this connection, NULL if not set.
101
const char *drizzle_uds(const drizzle_st *con);
104
* Set username and password for a connection.
106
* @param[in] con Connection structure previously initialized with
107
* drizzle_create(), drizzle_clone(), or related functions.
108
* @param[in] user Username to use for this connection.
109
* @param[in] password Password to use for this connection.
111
void drizzle_set_auth(drizzle_st *con, const char *user, const char *password);
114
* Set database for a connection.
116
* @param[in] con Connection structure previously initialized with
117
* drizzle_create(), drizzle_clone(), or related functions.
118
* @param[in] db Database to use with this connection.
120
void drizzle_set_db(drizzle_st *con, const char *db);
87
123
* Check if state stack is empty.