2
* Drizzle Client & Protocol Library
4
* Copyright (C) 2008 Eric Day (eday@oddments.org)
7
* Use and distribution licensed under the BSD license. See
8
* the COPYING file in this directory for full text.
13
* @brief Column Declarations for Clients
16
#ifndef __DRIZZLE_COLUMN_CLIENT_H
17
#define __DRIZZLE_COLUMN_CLIENT_H
24
* @addtogroup drizzle_column_client Column Declarations for Clients
25
* @ingroup drizzle_client_interface
27
* These functions are used to get detailed column information. This information
28
* is usually sent as the first part of a result set. There are both buffered
29
* and unbuffered functions provided.
34
* Skip all columns in result.
37
drizzle_return_t drizzle_column_skip(drizzle_result_st *result);
40
* Read column information.
43
drizzle_column_st *drizzle_column_read(drizzle_result_st *result,
44
drizzle_column_st *column,
45
drizzle_return_t *ret_ptr);
48
* Buffer all columns in result structure.
51
drizzle_return_t drizzle_column_buffer(drizzle_result_st *result);
54
* Get next buffered column from a result structure.
57
drizzle_column_st *drizzle_column_next(drizzle_result_st *result);
60
* Get previous buffered column from a result structure.
63
drizzle_column_st *drizzle_column_prev(drizzle_result_st *result);
66
* Seek to the given buffered column in a result structure.
69
void drizzle_column_seek(drizzle_result_st *result, uint16_t column);
72
* Get the given buffered column from a result structure.
75
drizzle_column_st *drizzle_column_index(drizzle_result_st *result,
79
* Get current column number in a buffered or unbuffered result.
82
uint16_t drizzle_column_current(drizzle_result_st *result);
90
#endif /* __DRIZZLE_COLUMN_CLIENT_H */