mariadb_dyncol_list_named(3)
π mariadb_dyncol_list_named(3) π
okay bestie, so this one lives in the MariaDB Connector/C manual, and it's literally the function you call when you wanna know which keys are chillin' inside a dynamic column. not the values, not the numbers β the names. the receipts. the guest list. π
β¨ Name β¨
mariadb_dyncol_list_named β Lists column keys in dynamic column
like... that's the whole job. she lists. she names. she slays. π
β¨ Synopsis β¨
#include <mariadb_dyncol.h>
enum enum_dyncol_func_result
mariadb_dyncol_list_named(DYNAMIC_COLUMN *str,
uint *column_count,
MYSQL_LEX_STRING **column_keys);
no cap, that's the exact shape. copy it character for character, don't get cute with it. π
β¨ Description β¨
Lists the column keys inside a dynamic column.
that's it. that's the vibe. you hand her a dynamic column, she hands you back the names of everything inside it. not the values, bestie β just the keys. the labels. the β¨table of contentsβ¨.
β¨ Notes β¨
- β οΈ the application program needs to free the allocated memory for
column_countandcolumn_keysparameter.
π«Ά fr fr, this is the part people forget and then their memory just... leaks. you allocated it, you free it. the function is not your mom, she will not clean up after you. free bothcolumn_countandcolumn_keyswhen you're done. periodt.
β¨ Parameter β¨
*strβ Dynamic column π¦ β the actual dynamic column you're snooping through.*column_countβ A pointer to an unsigned integer which stores the number of columns π β basically she writes back "hey, there are this many keys in there" into the integer you pointed at.**column_keysβ A pointer to an array of column keys, which stores the keys πΈ β double pointer energy. she points you at an array, and that array is holding all the key names.
β¨ Return value β¨
Returns ER_DYNCOL_OK on success, otherwise error. π
so like β ER_DYNCOL_OK = we ate, everything's good. anything else = something went sideways, go check your error handling bestie. π
β¨ See also β¨
mariadb_dyncol_list_numβ when you want the numbers instead of the names π’mariadb_dyncol_list_jsonβ when you want the whole thing served up as JSON π
and that's the page!! go forth and list your keys, you absolute icon. π§
Version 3.4 β MariaDB Connector/C. mwah, sending you a forehead kiss and a clean valgrind report. π
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms