Drizzled Public API Documentation

result.h

Go to the documentation of this file.
00001 /*
00002  * Drizzle Client & Protocol Library
00003  *
00004  * Copyright (C) 2008 Eric Day (eday@oddments.org)
00005  * All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions are
00009  * met:
00010  *
00011  *     * Redistributions of source code must retain the above copyright
00012  * notice, this list of conditions and the following disclaimer.
00013  *
00014  *     * Redistributions in binary form must reproduce the above
00015  * copyright notice, this list of conditions and the following disclaimer
00016  * in the documentation and/or other materials provided with the
00017  * distribution.
00018  *
00019  *     * The names of its contributors may not be used to endorse or
00020  * promote products derived from this software without specific prior
00021  * written permission.
00022  *
00023  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00024  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00025  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00026  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00027  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00028  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00029  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00030  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00031  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00032  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00033  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00034  *
00035  */
00036 
00042 #ifndef __DRIZZLE_RESULT_H
00043 #define __DRIZZLE_RESULT_H
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048 
00061 DRIZZLE_API
00062 drizzle_result_st *drizzle_result_create(drizzle_con_st *con,
00063                                          drizzle_result_st *result);
00064 
00068 DRIZZLE_API
00069 drizzle_result_st *drizzle_result_clone(drizzle_con_st *con,
00070                                         drizzle_result_st *result,
00071                                         drizzle_result_st *from);
00072 
00076 DRIZZLE_API
00077 void drizzle_result_free(drizzle_result_st *result);
00078 
00082 DRIZZLE_API
00083 void drizzle_result_free_all(drizzle_con_st *con);
00084 
00088 DRIZZLE_API
00089 drizzle_con_st *drizzle_result_drizzle_con(drizzle_result_st *result);
00090 
00094 DRIZZLE_API
00095 bool drizzle_result_eof(drizzle_result_st *result);
00096 
00100 DRIZZLE_API
00101 const char *drizzle_result_info(drizzle_result_st *result);
00102 
00106 DRIZZLE_API
00107 const char *drizzle_result_error(drizzle_result_st *result);
00108 
00112 DRIZZLE_API
00113 uint16_t drizzle_result_error_code(drizzle_result_st *result);
00114 
00118 DRIZZLE_API
00119 const char *drizzle_result_sqlstate(drizzle_result_st *result);
00120 
00124 DRIZZLE_API
00125 uint16_t drizzle_result_warning_count(drizzle_result_st *result);
00126 
00130 DRIZZLE_API
00131 uint64_t drizzle_result_insert_id(drizzle_result_st *result);
00132 
00136 DRIZZLE_API
00137 uint64_t drizzle_result_affected_rows(drizzle_result_st *result);
00138 
00142 DRIZZLE_API
00143 uint16_t drizzle_result_column_count(drizzle_result_st *result);
00144 
00148 DRIZZLE_API
00149 uint64_t drizzle_result_row_count(drizzle_result_st *result);
00150 
00153 #ifdef __cplusplus
00154 }
00155 #endif
00156 
00157 #endif /* __DRIZZLE_RESULT_H */