mariadb_dyncol_list_num(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– mariadb_dyncol_list_num πŸ’–

okay so bestie, welcome to the MariaDB Connector/C corner of the man pages, and today's main character is mariadb_dyncol_list_num β€” yes she's giving dynamic column energy and yes she is literally about to hand you a whole list of numbers. no cap. πŸŽ€


✨ Name ✨

mariadb_dyncol_list_num β€” lists numeric column keys in a dynamic column πŸ¦‹


✨ Synopsis ✨

#include <mariadb_dyncol.h>

enum enum_dyncol_func_result
mariadb_dyncol_list_named(DYNAMIC_COLUMN *str,
                          uint *column_count,
                          uint **column_numbers);

✨ Description ✨

she lists the column numbers inside a dynamic column. that's it, that's the vibe. πŸ’…


✨ Parameter ✨

  • *str β€” the dynamic column. the actual thing we're snooping through 🌸
  • *column_count β€” a pointer to an unsigned integer, and that integer is where the number of columns lives 🫢
  • **column_numbers β€” a pointer to an array of column numbers, and that array is where the numbers themselves live. double pointer behavior, she's iconic like that ⭐

✨ Return value ✨

returns ER_DYNCOL_OK when it goes well, otherwise it's an error. periodt. 😭


✨ Notes ✨

  • the application program needs to free the allocated memory for the column_count and column_numbers parameters. do not forget this one bestie β€” that memory is yours to release, not hers πŸ™ˆ

✨ See also ✨

  • mariadb_dyncol_list_named
  • mariadb_dyncol_list_json

Version 3.4 of the MariaDB Connector/C man pages, mwah, that's the whole page β€” stay hydrated, free your memory, and slay the rest of your day πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from