mariadb_dyn...column_count(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_column_count β€” bestie, this one gets you the number of columns in a dynamic column blob. That's it. That's the whole job. πŸ’–

This is from the MariaDB Connector/C manual, page mariadb_dyn...column_count(3), iykyk.


🌸 Synopsis 🌸

#include <mariadb_dyncol.h>

enum enum_dyncol_func_result
mariadb_dyncol_column_count(DYNAMIC_COLUMN *str,
                            unsigned int *column_count);

πŸŽ€ Description πŸŽ€

okay so picture this: you've got a dynamic column blob, right? and you're like "how many columns are in here fr fr" β€” that's literally what this function does. It gets the number of columns in a dynamic column blob. no cap. πŸ¦‹


πŸ’… Parameter πŸ’…

  • *str β€” a pointer to a DYNAMIC_COLUMN structure. your little blob container, your main character. πŸ‘‘
  • column_count β€” an unsigned integer pointer where the number of columns is gonna get stored. it's giving "output goes here". ✨

πŸ’– Return value πŸ’–

Returns ER_DYNCOL_OK on success. Otherwise? error. that's the whole vibe check. 😭


🌈 Notes 🌈

  • heads up bestie β€” mariadb_dyncol_column_count() doesn't count NULL values. so if you were expecting those to show up in your count... they're not invited to the party. πŸ’€ not me finding that out the hard way.

🫢 See also 🫢

  • Dynamic Column Error Codes

and that's the tea, babe β˜• β€” this was page mariadb_dyn...column_count(3), straight outta Version 3.4 of the MariaDB Connector/C docs. go forth and count those columns, you absolute icon πŸ‘‘βœ¨πŸ’œ

πŸ“¦ where this page comes from