1mariadb_dyncol_unpack(3)      MariaDB Connector/C     mariadb_dyncol_unpack(3)
2
3
4
5   Name
6       mariadb_dyncol_unpack - extracts keys and values of all columns
7
8   Synopsis
9              #include <mariadb_dyncol.h>
10
11              enum enum_dyncol_func_result
12              mariadb_dyncol_unpack(DYNAMIC_COLUMN *str,
13                                    uint *column_count,
14                                    MYSQL_LEX_STRING **column_keys,
15                                    DYNAMIC_COLUMN_VALUE **values);
16
17   Description
18       The  mariadb_dyncol_unpack() function extracts all keys and values of a
19       dynamic column.
20
21   Parameter
22       • str - Pointer to a DYNAMIC_COLUMN structure
23
24       • column count - Pointer to an unsigned integer which will receive  the
25         number of columns
26
27       • column_keys  -  Pointer  of  an array of MYSQL_LEX_STRING structures,
28         which will contain the column keys
29
30       • values - Pointer of  an  array  of  DYNAMIC_COLUMN_VALUE  structures,
31         which will contain the values.
32
33   Return value
34       Returns ER_DYNCOL_OK on success, otherwise an error.
35
36   Notes
37       • The  column_keys  and values arrays will be allocated by mariadb_dyn‐
38         col_unpack() and must be freed by application.
39
40   See also
41       • mariadb_dyncol_get(3)
42
43       • mariadb_dyncol_list(3)
44
45
46
47Version 3.2.2                                         mariadb_dyncol_unpack(3)
Impressum