mysql_stmt_result_metadata(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 πŸ’–

okay bestie, welcome to the MariaDB Connector/C manual page for mysql_stmt_result_metadata(3) β€” and yes, it does exactly what it says on the tin: it returns result set metadata from a prepared statement. iconic behavior, honestly. πŸŽ€


πŸ“œ SYNOPSIS πŸ“œ

#include <mysql.h>

MYSQL_RES * mysql_stmt_result_metadata(MYSQL_STMT * stmt);

🌸 DESCRIPTION 🌸

so here's the tea: if you pass a statement to mysql_stmt_prepare(3) and that statement is one that produces a result set, then mysql_stmt_result_metadata() hands you back the result set you need to process the meta info. we're talking total number of fields and individual field information. it's giving backstage pass to the metadata, no rows invited. πŸ’…


🫢 PARAMETER 🫢

  • stmt β€” a statement handle, which was previously allocated by mysql_stmt_init(3). don't just roll up with any old pointer, bestie, it has to be one that mysql_stmt_init(3) already set you up with. ✨

πŸ‘‘ RETURN VALUE πŸ‘‘

Returns a result set that can be used to process metadata information. that's it, that's the whole gift. 🎁


πŸ’€ NOTES πŸ’€


🌈 SEE ALSO 🌈


Version 3.4 of the MariaDB Connector/C manual, no date on the page but the vibe is timeless. that's the whole page, bestie β€” now go process that metadata and slay. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ˜­πŸ”₯πŸ‘‘πŸŒˆβ­πŸ’€πŸ™ˆπŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from