mariadb_dyncol_check(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_check β€” bestie's guide to the MariaDB Connector/C manual πŸ’–

okay so real talk, this is the manual page for mariadb_dyncol_check from the MariaDB Connector/C docs, and we're gonna get you fluent in it, no cap. ✨


🌸 Name 🌸

mariadb_dyncol_check β€” checks if a dynamic column has correct format

Like, it's the vibe check for your dynamic column. 🫢


✨ Synopsis ✨

#include <mariadb_dyncol.h>

enum enum_dyncol_func_result
mariadb_dyncol_check(DYNAMIC_COLUMN *str);

literally just that one function, one arg, she's simple and she serves. πŸ’…


πŸ’œ Description πŸ’œ

so the function mariadb_dyncol_check() checks if a dynamic column has correct format. that's the whole job, that's her main character energy. πŸ‘‘

you can use it e.g. to check if a blob contains a dynamic column β€” like a lil "hey bestie, are you actually a dynamic column or are you lying to me" moment. πŸ¦‹


πŸŽ€ Parameter πŸŽ€

  • str β€” pointer to a DYNAMIC_COLUMN structure. that's it, that's the whole receipt. 🧾

🌈 Return value 🌈

  • returns ER_DYNCOL_OK if the dynamic column has correct format β€” slay, she passed the vibe check ✨
  • otherwise returns ER_DYNCOL_FORMAT β€” not slay, the format is giving chaos 😭

⭐ See also ⭐

  • mariadb_dyncol_count(3)

iykyk, go read that one next. πŸ“


lowkey important reminder: keep your DYNAMIC_COLUMN pointer valid before you pass it in, because we're not out here guessing at what's in memory. πŸ™ˆ

okay that's the whole page, you ate it, I'm obsessed. πŸ’– this was Version 3.4 of mariadb_dyncol_check(3) from the MariaDB Connector/C docs β€” periodt, go check those dynamic columns, bestie. 🧚 πŸ’œ

πŸ“¦ where this page comes from