| #define DRIZZLE_SHUTDOWN_DEFAULT 0 |
Definition at line 138 of file conn_client.h.
| DRIZZLE_API drizzle_result_st* drizzle_con_command_write | ( | drizzle_con_st * | con, |
| drizzle_result_st * | result, | ||
| drizzle_command_t | command, | ||
| const void * | data, | ||
| size_t | size, | ||
| size_t | total, | ||
| drizzle_return_t * | ret_ptr | ||
| ) |
Send raw command to server, possibly in parts.
| [in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
| [in] | result | Caller allocated structure, or NULL to allocate one. |
| [in] | command | Command to run on server. |
| [in] | data | Data to send along with the command. |
| [in] | size | Size of the current chunk of data being sent. |
| [in] | total | Total size of all data being sent for command. |
| [out] | ret_ptr | Standard drizzle return value. |
Definition at line 481 of file conn.c.
References drizzle_con_connect(), drizzle_result_create(), drizzle_result_free(), drizzle_set_error(), drizzle_state_loop(), drizzle_state_none(), and drizzle_state_push().
Referenced by drizzle_con_ping(), drizzle_con_quit(), drizzle_con_select_db(), drizzle_con_shutdown(), drizzle_query(), drizzle_query_inc(), and drizzle_query_str().
| DRIZZLE_API drizzle_return_t drizzle_con_connect | ( | drizzle_con_st * | con | ) |
Connect to server.
| [in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
Definition at line 381 of file conn.c.
References drizzle_state_loop(), drizzle_state_none(), and drizzle_state_push().
Referenced by drizzle_con_command_write(), and slave::QueueProducer::openConnection().
| DRIZZLE_API drizzle_result_st* drizzle_con_ping | ( | drizzle_con_st * | con, |
| drizzle_result_st * | result, | ||
| drizzle_return_t * | ret_ptr | ||
| ) |
Send a ping request to the server.
| [in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
| [in] | result | Caller allocated structure, or NULL to allocate one. |
| [out] | ret_ptr | Standard drizzle return value. |
Definition at line 466 of file conn.c.
References drizzle_con_command_write().
Referenced by drizzle_ping().
| DRIZZLE_API drizzle_result_st* drizzle_con_quit | ( | drizzle_con_st * | con, |
| drizzle_result_st * | result, | ||
| drizzle_return_t * | ret_ptr | ||
| ) |
Send quit command to server for a connection.
| [in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
| [in] | result | Caller allocated structure, or NULL to allocate one. |
| [out] | ret_ptr | Standard drizzle return value. |
Definition at line 401 of file conn.c.
References drizzle_con_command_write().
Referenced by drizzle_quit().
| DRIZZLE_API drizzle_result_st* drizzle_con_select_db | ( | drizzle_con_st * | con, |
| drizzle_result_st * | result, | ||
| const char * | db, | ||
| drizzle_return_t * | ret_ptr | ||
| ) |
Select a new default database for a connection.
| [in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
| [in] | result | Caller allocated structure, or NULL to allocate one. |
| [in] | db | Default database to select. |
| [out] | ret_ptr | Standard drizzle return value. |
Definition at line 416 of file conn.c.
References drizzle_con_command_write(), and drizzle_con_set_db().
Referenced by drizzle_select_db().
| DRIZZLE_API drizzle_result_st* drizzle_con_shutdown | ( | drizzle_con_st * | con, |
| drizzle_result_st * | result, | ||
| drizzle_return_t * | ret_ptr | ||
| ) |
Send a shutdown message to the server.
| [in] | con | Connection structure previously initialized with drizzle_con_create(), drizzle_con_clone(), or related functions. |
| [in] | result | Caller allocated structure, or NULL to allocate one. |
| [out] | ret_ptr | Standard drizzle return value. |
Definition at line 434 of file conn.c.
References drizzle_con_command_write().
| DRIZZLE_API drizzle_result_st* drizzle_ping | ( | drizzle_con_st * | con, |
| drizzle_result_st * | result, | ||
| drizzle_return_t * | ret_ptr | ||
| ) |
Definition at line 474 of file conn.c.
References drizzle_con_ping().
| DRIZZLE_API drizzle_result_st* drizzle_quit | ( | drizzle_con_st * | con, |
| drizzle_result_st * | result, | ||
| drizzle_return_t * | ret_ptr | ||
| ) |
Definition at line 409 of file conn.c.
References drizzle_con_quit().
Referenced by slave::QueueProducer::closeConnection().
| DRIZZLE_API drizzle_result_st* drizzle_select_db | ( | drizzle_con_st * | con, |
| drizzle_result_st * | result, | ||
| const char * | db, | ||
| drizzle_return_t * | ret_ptr | ||
| ) |
Definition at line 426 of file conn.c.
References drizzle_con_select_db().