mysql_sessi...ck_get_next(3)
π mysql_sessi...ck_get_next β bestie edition π
okay so quick vibe check: this is a page from the MariaDB Connector/C manual, girlies. it's mysql_session_track_get_next(3) and it's giving "part two of a two-parter". let's get into it π«Ά
β¨ NAME β¨
mysql_session_track_get_next β retrieves the next session status change information π
πΈ SYNOPSIS πΈ
#include <mysql.h>
int mysql_session_track_get_next(MYSQL * mysql,
enum enum_session_state_type type,
const char **data,
size_t *length );
π¦ DESCRIPTION π¦
so mysql_session_track_get_next() pulls the session status change information that came back from the server β but only after you've already had a successful call to mysql_session_track_get_first(3). it's literally the sequel, no cap. πβ¨
and the way that you have to call mysql_session_track_get_next() repeatedly until you get a non-zero return value β that non-zero value is what tells you the data is done, periodt. π
π PARAMETERS π
mysqlβ the mysql handle, bestie. you got this one earlier frommysql_init(3)and then connected it withmysql_real_connect(3). πtypeβ the type of information. the valid values are literally:SESSION_TRACK_SYSTEM_VARIABLESSESSION_TRACK_SCHEMASESSION_TRACK_STATE_CHANGESESSION_TRACK_GTIDS(unsupported π)
dataβ a pointer to data, and it must be declared asconst char *.lengthβ a pointer to asize_tvariable, which is gonna end up holding the length ofdata. π
β RETURN VALUE β
Zero for success, nonzero if an error occurred. that's it, that's the whole thing. π
π HISTORY π
mysql_session_track_get_next() was added in Connector/C 3.0 and MariaDB Server 10.2. old but iconic, iykyk. π§
π₯ SEE ALSO π₯
and that's the whole page, bestie β Version 3.4, MariaDB Connector/C, slay π β¨
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms