mariadb_dyncol_exists_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

✨ NAME ✨

mariadb_dyncol_exists_num β€” bestie, this is the lil function that checks if a column with a given number exists πŸ’… (it lives in the MariaDB Connector/C world, section 3 of the manual, iykyk)


πŸŽ€ SYNOPSIS πŸŽ€

enum enum_dyncol_func_result
mariadb_dyncol_exists_num(DYNAMIC_COLUMN *str,
                          uint column_number);

Like... that's the whole vibe. Two args, one enum-y answer. Slay 🌸


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea β˜•: this function checks if a column with the specified column key exists. That's it, that's the job. You hand it your dynamic column situation, you tell it which number you're looking for, and it tells you whether that column is there or not there. Main character energy, honestly πŸ‘‘

No cap, it's just a yes/no vibe check on your dynamic column. ✨


πŸ’– PARAMETER πŸ’–

  • *str β€” the dynamic column, aka the thing you're snooping through πŸ”
  • column_number β€” the column number you're searching for, like calling out a name in a group chat and seeing who answers πŸ“£

πŸ”₯ RETURN VALUE πŸ”₯

  • ER_DYNCOL_YES β€” yesss, a column with that given number exists, we ate πŸ’…βœ¨
  • ER_DYNCOL_NO β€” nope, no column exists... or there was an error 😭 (fr fr, the original says both live under this one, so don't come for me)

🌈 SEE ALSO 🌈

  • mariadb_dyncol_exists_named β€” the named twin, go say hi 🫢
  • Dynamic Column Error Codes β€” the lore you'll need if things go sideways πŸ’€

Version 3.4 of the MariaDB Connector/C docs, bestie β€” that's the whole page, thanks for coming to my TED talk, mwah πŸŽ€πŸ’–πŸ¦‹β­

πŸ“¦ where this page comes from