178
224
void drizzle_query_set_string(drizzle_query_st *query, const char *string,
185
236
int drizzle_query_options(drizzle_query_st *query)
190
246
void drizzle_query_set_options(drizzle_query_st *query,
196
257
void drizzle_query_add_options(drizzle_query_st *query,
199
265
query->options|= options;
202
268
void drizzle_query_remove_options(drizzle_query_st *query,
205
276
query->options&= ~options;
208
279
void *drizzle_query_context(drizzle_query_st *query)
213
289
void drizzle_query_set_context(drizzle_query_st *query, void *context)
218
299
void drizzle_query_set_context_free_fn(drizzle_query_st *query,
219
300
drizzle_query_context_free_fn *function)
221
307
query->context_free_fn= function;
224
310
static void drizzle_query_run_state(drizzle_query_st* query,
225
311
drizzle_return_t* ret_ptr)
229
320
case DRIZZLE_QUERY_STATE_INIT:
230
321
query->state= DRIZZLE_QUERY_STATE_QUERY;
231
323
case DRIZZLE_QUERY_STATE_QUERY:
232
324
query->result= drizzle_query(query->con, query->result, query->string,