mysql_get_host_info(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

πŸ’– mysql_get_host_info πŸ’–

okay so bestie, welcome to the MariaDB Connector/C corner of the manual, this is the mysql_get_host_info(3) page and it is short and sweet and I am obsessed with it actually πŸŽ€


✨ NAME ✨

mysql_get_host_info β€” it hands you back host information. that's it. that's the whole job. no cap. πŸ’…


🌸 SYNOPSIS 🌸

#include <mysql.h>
const char * mysql_get_host_info(MYSQL * mysql);

look at her. two lines. iconic. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

so like, this function tells you what kind of connection you're working with on this specific connection β€” and yes, it includes the server host name in there too. 🌈

it gives you back a string. and if the connection is not valid? you get NULL. that's the vibe check failing fr fr. 😭


πŸ“ PARAMETER πŸ“

  • mysql β€” a connection identifier, bestie. and not just any random one, it has to be one that was previously allocated by mysql_init(3) and then connected by mysql_real_connect(3). don't be handing me a fake one, she will know. πŸ™ˆ

⭐ RETURN VALUE ⭐

returns a string describing host information β€” or NULL if the connection is not valid. simple. clean. slay. πŸ‘‘


🫢 SEE ALSO 🫢


tiny note from me to you: this whole page is literally four sections long, so if you read it all you have officially read 100% of the documentation. main character energy. go off. πŸ’œ

and that's a wrap on Version 3.4 of mysql_get_host_info(3) from the MariaDB Connector/C gang πŸ’– tysm for reading bestie, go get that host info, periodt πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from