mariadb_dyn..._many_named(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

πŸ’– NAME πŸ’–

mariadb_dyncol_create_many_named β€” bestie, this one creates a dynamic column with named keys ✨

Oh and hey, this whole thing lives in the MariaDB Connector/C manual, section 3, iykyk πŸŽ€


✨ SYNOPSIS ✨

#include <mariadb_dyncol.h>

enum enum_dyncol_func_result
mariadb_dyncol_create_many_named(DYNAMIC_COLUMN *str,
                                 uint column_count,
                                 MYSQL_LEX_STRING *column_keys,
                                 DYNAMIC_COLUMN_VALUE *values,
                                 my_bool new_string);

🌸 DESCRIPTION 🌸

Okay so. This function creates a dynamic column out of arrays β€” one array of values, one array of names. That's it, that's the vibe πŸ’…


πŸ¦‹ PARAMETER πŸ¦‹

  • *str β€” a pointer to a dynamic column structure 🫢
  • column_count β€” the number of columns, fr fr
  • *column_keys β€” an array of column keys πŸ”‘
  • *values β€” an array of values ⭐
  • new_string β€” if it's set, str gets reinitialized (not freed, bestie, reinitialized) before usage πŸ‘‘

πŸ’œ RETURN VALUE πŸ’œ

Returns ER_DYNCOL_OK on success. Otherwise? Error. That's the whole tea 😭


πŸŽ€ NOTES πŸŽ€

  • If you wanna delete, update or insert new columns into an existing dynamic column, you need mariadb_dyncol_update_many_named instead. Different function, different moment πŸ’…

🌈 SEE ALSO 🌈

  • mariadb_dyncol_create_many_num
  • mariadb_dyncol_update_many_named
  • Dynamic Column Error Codes

no cap, that's literally the entire page 🫢 go slay πŸ’–

Version 3.4 β€” MariaDB Connector/C, page mariadb_dyn..._many_named(3). Bye bestie, love u, read ur man pages βœ¨πŸ§šπŸ’œ

πŸ“¦ where this page comes from