mysql_options(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 🌸

mysql_options β€” used to set extra connect options and affect behavior of a connection. This is the mysql_options(3) page from the MariaDB Connector/C manual, bestie. πŸ’–


✨ SYNOPSIS ✨

#include <mysql.h>

int mysql_options(MYSQL * mysql,
                  enum mysql_option,
                  const void * arg);

πŸ’… DESCRIPTION πŸ’…

Okay so mysql_options() is literally for setting extra connect options and affecting how a connection behaves. You can call this function multiple times to set several options β€” no cap. And important: mysql_options() should be called after mysql_init(3). Periodt. 🫢


😭 NOTES 😭

This function is deprecated. New implementations should use the mysql_optionsv(3) api function instead. I'm not being dramatic, that's literally what it says. πŸ’€

πŸ‘‘ OPTIONS πŸ‘‘

An overview of the possible options can be found in the description of the mysql_optionsv(3) API function. That's it, that's the whole options section β€” she's minimal. ✨


πŸ¦‹ SEE ALSO πŸ¦‹


And that's the whole page, bestie. Footer check: Version 3.4, mysql_options(3). No date on this one, just vibes. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from