These are core result functions used by both clients and servers.
Options for drizzle_result_st.
DRIZZLE_RESULT_NONE | |
DRIZZLE_RESULT_ALLOCATED | |
DRIZZLE_RESULT_SKIP_COLUMN | |
DRIZZLE_RESULT_BUFFER_COLUMN | |
DRIZZLE_RESULT_BUFFER_ROW | |
DRIZZLE_RESULT_EOF_PACKET | |
DRIZZLE_RESULT_ROW_BREAK |
Definition at line 289 of file constants.h.
drizzle_result_st* drizzle_result_create | ( | drizzle_con_st * | con, |
drizzle_result_st * | result | ||
) |
Initialize a result structure.
drizzle_result_st* drizzle_result_clone | ( | drizzle_con_st * | con, |
drizzle_result_st * | result, | ||
drizzle_result_st * | from | ||
) |
Clone a connection structure.
void drizzle_result_free | ( | drizzle_result_st * | result | ) |
Free a result structure.
void drizzle_result_free_all | ( | drizzle_con_st * | con | ) |
Free all result structures.
drizzle_con_st* drizzle_result_drizzle_con | ( | drizzle_result_st * | result | ) |
Get the drizzle_con_st struct that the result belongs to.
bool drizzle_result_eof | ( | drizzle_result_st * | result | ) |
Get EOF flag for a result.
const char* drizzle_result_info | ( | drizzle_result_st * | result | ) |
Get information string for a result.
const char* drizzle_result_error | ( | drizzle_result_st * | result | ) |
Get error string for a result.
uint16_t drizzle_result_error_code | ( | drizzle_result_st * | result | ) |
Get server defined error code for a result.
const char* drizzle_result_sqlstate | ( | drizzle_result_st * | result | ) |
Get SQL state code for a result.
uint16_t drizzle_result_warning_count | ( | drizzle_result_st * | result | ) |
Get the number of warnings encounted during a command.
uint64_t drizzle_result_insert_id | ( | drizzle_result_st * | result | ) |
Get inet ID of the last command, if any.
uint64_t drizzle_result_affected_rows | ( | drizzle_result_st * | result | ) |
Get the number of affected rows during the command.
uint16_t drizzle_result_column_count | ( | drizzle_result_st * | result | ) |
Get the number of columns in a result set.
uint64_t drizzle_result_row_count | ( | drizzle_result_st * | result | ) |
Get the number of rows returned for the command.