libdrizzle Developer Documentation

result_server.h
Go to the documentation of this file.
1 /*
2  * Drizzle Client & Protocol Library
3  *
4  * Copyright (C) 2008 Eric Day (eday@oddments.org)
5  * All rights reserved.
6  *
7  * Use and distribution licensed under the BSD license. See
8  * the COPYING file in this directory for full text.
9  */
10 
16 #ifndef __DRIZZLE_RESULT_SERVER_H
17 #define __DRIZZLE_RESULT_SERVER_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
36  drizzle_result_st *result, bool flush);
37 
42 void drizzle_result_set_row_size(drizzle_result_st *result, size_t size);
43 
49  const drizzle_field_t *field,
50  const size_t *size);
51 
56 void drizzle_result_set_eof(drizzle_result_st *result, bool eof);
57 
62 void drizzle_result_set_info(drizzle_result_st *result, const char *info);
63 
68 void drizzle_result_set_error(drizzle_result_st *result, const char *error);
69 
75  uint16_t error_code);
76 
82  const char *sqlstate);
83 
89  uint16_t warning_count);
90 
96  uint64_t insert_id);
97 
103  uint64_t affected_rows);
104 
110  uint16_t column_count);
111 
114 #ifdef __cplusplus
115 }
116 #endif
117 
118 #endif /* __DRIZZLE_RESULT_SERVER_H */