aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mysql_lib.h
diff options
context:
space:
mode:
authorChristophe Genevey Metat <genevey.christophe@gmail.com>2016-06-28 09:47:01 +0000
committerChristophe Genevey Metat <genevey.christophe@gmail.com>2016-06-28 09:47:01 +0000
commit9a514bfb0dd7b656d9c4eb14aa196102c1e3593b (patch)
treef8b4d3cb62f6dcd0abfafcad02b1d88fa9fba830 /src/include/gnunet_mysql_lib.h
parente3ae6d9f6ac5f5e121f252cdd1d1796933d3fc42 (diff)
downloadgnunet-9a514bfb0dd7b656d9c4eb14aa196102c1e3593b.tar.gz
gnunet-9a514bfb0dd7b656d9c4eb14aa196102c1e3593b.zip
delete mysql function
Diffstat (limited to 'src/include/gnunet_mysql_lib.h')
-rw-r--r--src/include/gnunet_mysql_lib.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/include/gnunet_mysql_lib.h b/src/include/gnunet_mysql_lib.h
index fc0bfdfac..fc6f42f86 100644
--- a/src/include/gnunet_mysql_lib.h
+++ b/src/include/gnunet_mysql_lib.h
@@ -137,69 +137,6 @@ GNUNET_MYSQL_statement_run (struct GNUNET_MYSQL_Context *mc,
137 const char *sql); 137 const char *sql);
138 138
139 139
140/**
141 * Run a prepared SELECT statement.
142 *
143 * @param sh handle to SELECT statment
144 * @param result_size number of elements in results array
145 * @param results pointer to already initialized MYSQL_BIND
146 * array (of sufficient size) for passing results
147 * @param processor function to call on each result
148 * @param processor_cls extra argument to processor
149 * @param ... pairs and triplets of "MYSQL_TYPE_XXX" keys and their respective
150 * values (size + buffer-reference for pointers); terminated
151 * with "-1"
152 * @return GNUNET_SYSERR on error, otherwise
153 * the number of successfully affected (or queried) rows
154 */
155int
156GNUNET_MYSQL_statement_run_prepared_select (struct GNUNET_MYSQL_StatementHandle *sh,
157 unsigned int result_size, MYSQL_BIND * results,
158 GNUNET_MYSQL_DataProcessor processor,
159 void *processor_cls, ...);
160
161
162/**
163 * Run a prepared SELECT statement.
164 *
165 * @param s statement to run
166 * @param result_size number of elements in results array
167 * @param results pointer to already initialized MYSQL_BIND
168 * array (of sufficient size) for passing results
169 * @param processor function to call on each result
170 * @param processor_cls extra argument to processor
171 * @param ap pairs and triplets of "MYSQL_TYPE_XXX" keys and their respective
172 * values (size + buffer-reference for pointers); terminated
173 * with "-1"
174 * @return GNUNET_SYSERR on error, otherwise
175 * the number of successfully affected (or queried) rows
176 */
177int
178GNUNET_MYSQL_statement_run_prepared_select_va (struct GNUNET_MYSQL_StatementHandle *s,
179 unsigned int result_size,
180 MYSQL_BIND * results,
181 GNUNET_MYSQL_DataProcessor processor,
182 void *processor_cls,
183 va_list ap);
184
185
186/**
187 * Run a prepared statement that does NOT produce results.
188 *
189 * @param sh handle to statment
190 * @param insert_id NULL or address where to store the row ID of whatever
191 * was inserted (only for INSERT statements!)
192 * @param ... pairs and triplets of "MYSQL_TYPE_XXX" keys and their respective
193 * values (size + buffer-reference for pointers); terminated
194 * with "-1"
195 * @return GNUNET_SYSERR on error, otherwise
196 * the number of successfully affected rows
197 */
198int
199GNUNET_MYSQL_statement_run_prepared (struct GNUNET_MYSQL_StatementHandle *sh,
200 unsigned long long *insert_id, ...);
201
202
203#if 0 /* keep Emacsens' auto-indent happy */ 140#if 0 /* keep Emacsens' auto-indent happy */
204{ 141{
205#endif 142#endif