~drizzle-trunk/drizzle/development

1836.3.1 by Monty Taylor
Removed libdrizzle doxygen. Put in function stubs in sphinx. Someone can
1
.. highlightlang:: c
2
3
Query Object
4
------------
5
6
.. index:: object: drizzle_query_st
7
8
These functions are used to issue queries on a connection. Single queries
9
are made using the drizzle_query function, or you can queue multiple queries
10
and run them concurrently using the other query functions.
11
12
13
.. c:function:: drizzle_result_st *   drizzle_query (drizzle_con_st *con, drizzle_result_st *result, const char *query, size_t size, drizzle_return_t *ret_ptr)
14
15
.. c:function:: drizzle_result_st *   drizzle_query_str (drizzle_con_st *con, drizzle_result_st *result, const char *query, drizzle_return_t *ret_ptr)
16
17
.. c:function:: drizzle_result_st *   drizzle_query_inc (drizzle_con_st *con, drizzle_result_st *result, const char *query, size_t size, size_t total, drizzle_return_t *ret_ptr)
18
19
.. c:function:: drizzle_query_st *  drizzle_query_add (drizzle_st *drizzle, drizzle_query_st *query, drizzle_con_st *con, drizzle_result_st *result, const char *query_string, size_t size, drizzle_query_options_t options, void *context)
20
21
.. c:function:: drizzle_query_st *  drizzle_query_create (drizzle_st *drizzle, drizzle_query_st *query)
22
23
.. c:function:: void  drizzle_query_free (drizzle_query_st *query)
24
25
.. c:function:: void  drizzle_query_free_all (drizzle_st *drizzle)
26
27
.. c:function:: drizzle_con_st *  drizzle_query_con (drizzle_query_st *query)
28
29
.. c:function:: void  drizzle_query_set_con (drizzle_query_st *query, drizzle_con_st *con)
30
31
.. c:function:: drizzle_result_st *   drizzle_query_result (drizzle_query_st *query)
32
33
.. c:function:: void  drizzle_query_set_result (drizzle_query_st *query, drizzle_result_st *result)
34
35
.. c:function:: char *  drizzle_query_string (drizzle_query_st *query, size_t *size)
36
37
.. c:function:: void  drizzle_query_set_string (drizzle_query_st *query, const char *string, size_t size)
38
39
.. c:function:: drizzle_query_options_t   drizzle_query_options (drizzle_query_st *query)
40
41
.. c:function:: void  drizzle_query_set_options (drizzle_query_st *query, drizzle_query_options_t options)
42
43
.. c:function:: void  drizzle_query_add_options (drizzle_query_st *query, drizzle_query_options_t options)
44
45
.. c:function:: void  drizzle_query_remove_options (drizzle_query_st *query, drizzle_query_options_t options)
46
47
.. c:function:: void *  drizzle_query_context (drizzle_query_st *query)
48
49
.. c:function:: void  drizzle_query_set_context (drizzle_query_st *query, void *context)
50
51
.. c:function:: void  drizzle_query_set_context_free_fn (drizzle_query_st *query,
52
53
.. c:function:: drizzle_query_context_free_fn *function)
54
55
.. c:function:: drizzle_query_st *  drizzle_query_run (drizzle_st *drizzle, drizzle_return_t *ret_ptr)
56
57
.. c:function:: drizzle_return_t  drizzle_query_run_all (drizzle_st *drizzle)
58
59
.. c:function:: size_t  drizzle_escape_string (char *to, const char *from, size_t from_size)
60
61
.. c:function:: size_t  drizzle_hex_string (char *to, const char *from, size_t from_size)
62
63
.. c:function:: void  drizzle_mysql_password_hash (char *to, const char *from, size_t from_size)
64