mysql_get_proto_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_proto_info ✨

okay so bestie, this is a page from the MariaDB Connector/C manual, and it's about asking your connection "hey girl, what protocol version are we speaking rn?" πŸ’… That's literally it. Short page, iconic energy, no notes.


🌸 NAME 🌸

mysql_get_proto_info β€” returns the protocol version number πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <mysql.h>

unsigned int mysql_get_proto_info(MYSQL * mysql);

πŸ’– DESCRIPTION πŸ’–

It returns the protocol version number for the specified connection. That's the whole vibe. One call, one number, slay. ✨


🫢 PARAMETER 🫢


πŸ‘‘ NOTES πŸ‘‘

Important tea: MariaDB Connector/C doesn't support protocol version 9 and prior. So if you were hoping for the ancient stuff, it's giving no. πŸ’€

⭐ RETURN VALUE ⭐

The protocol version number in use. Simple. Gorgeous. Ate. πŸ“


πŸ’œ SEE ALSO πŸ’œ


That's the whole page, fr fr. Written up under Version 3.4 of the manual, and the footer's just mysql_get_proto_info(3) hanging out down there β€” same as the header, because symmetry is main character energy. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from