mariadb_rpl_fetch(3)
β¨ mariadb_rpl_fetch β bestie, we're fetching events now π
okay so this is a page from the MariaDB Connector/C manual, and it's about mariadb_rpl_fetch. it's giving replication stream energy, and honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
mariadb_rpl_fetch β fetches next event from replication stream πΈ
β¨ SYNOPSIS β¨
#include <mariadb_rpl.h>
MARIADB_RPL_EVENT *mariadb_rpl_fetch(MARIADB_RPL *rpl, MARIADB_RPL_EVENT *event)
like, look at that signature. she's neat, she's tidy, she's doing her job. π
β¨ DESCRIPTION β¨
Fetches one event from the replication stream. that's it. that's the whole vibe. one call, one event, no cap β¨
β¨ PARAMETER β¨
rplβ a replication handle. she's gotta be initialized first bymariadb_rpl_init(3)and then connected bymariadb_rpl_open(3). no shortcuts, bestie, she needs both πeventβ an event that came back from a previous call tomariadb_rpl_fetch. so here's the tea π: if this value isNULL, the function will allocate new memory for the event. but if you pass in an actual event, that passed event value gets overwritten. yes, literally overwritten. choose wisely π
β¨ RETURN VALUE β¨
an event handle β¨ β or NULL if an EOF packet was received. so if you get NULL, that's not a bug, that's the stream saying "we're done here, girlie" π
β¨ NOTES β¨
Event memory needs to be freed by calling mariadb_rpl_free_event(3). do NOT forget this one, i'm begging π leaking memory is not the main character energy we're going for.
β¨ SEE ALSO β¨
mariadb_rpl_free_event(3)β your cleanup bestie, go say hi π
β¨ HISTORY β¨
mariadb_rpl_fetch was added in MariaDB Connector/C 3.1.0. so she's been serving since 3.1.0 and she's still booked and busy β
and that's the whole page, bestie!! π¦ this was Version 3.4 of the MariaDB Connector/C manual β thanks for reading, ily, go free your events π§π
π¦ 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