mariadb\_dyncol\_unpack(3) MariaDB Connector/C mariadb\_dyncol\_unpack(3)

## [Name](#Name)

mariadb\_dyncol\_unpack - extracts keys and values of all columns

## [Synopsis](#Synopsis)

```
#include <mariadb_dyncol.h>
enum enum_dyncol_func_result
mariadb_dyncol_unpack(DYNAMIC_COLUMN *str,


                      uint *column_count,


                      MYSQL_LEX_STRING **column_keys,


                      DYNAMIC_COLUMN_VALUE **values);
    
```

## [Description](#Description)

The mariadb\_dyncol\_unpack() function extracts all keys and values of a dynamic column.

## [Parameter](#Parameter)

•

str - Pointer to a DYNAMIC\_COLUMN structure

•

column count - Pointer to an unsigned integer which will receive the number of columns

•

column\_keys - Pointer of an array of MYSQL\_LEX\_STRING structures, which will contain the column keys

•

values - Pointer of an array of DYNAMIC\_COLUMN\_VALUE structures, which will contain the values.

## [Return value](#Return_value)

Returns ER\_DYNCOL\_OK on success, otherwise an error.

## [Notes](#Notes)

•

The column\_keys and values arrays will be allocated by mariadb\_dyncol\_unpack() and must be freed by application.

## [See also](#See_also)

•

[**mariadb\_dyncol\_get(3)**](/man/os/mariadb-13.1/mariadb_dyncol_get.3)

•

[**mariadb\_dyncol\_list(3)**](/man/os/mariadb-13.1/mariadb_dyncol_list.3)

Version 3.4

---

Document: mariadb_dyncol_unpack(3) from mariadb-13.1 13.1.1-r2 (Chainguard OS)
