MONGOC_APM_COM..._DATABASE_NAME(3)

✨ MONGOC_APM_COM..._DATABASE_NAME(3) β€” libmongoc bestie edition ✨

okay so bestie, welcome to the libmongoc manual page for MONGOC_APM_COM..._DATABASE_NAME(3). This is lowkey a tiny page, but it's highkey important if you're living that APM callback life. πŸ¦‹

✨ SYNOPSIS ✨

          const char *
          mongoc_apm_command_succeeded_get_database_name (
             const mongoc_apm_command_succeeded_t *event);

This function returns this event's database name. Slay. But listen: the data is only valid in the scope of the callback that receives this event β€” copy it if it will be accessed after the callback returns. No cap, do not let that pointer wander off after the callback dips, because that's not the vibe. 😭

✨ PARAMETERS ✨

  • event: A mongoc_apm_command_succeeded_t. That's the whole assignment, bestie.

✨ RETURNS ✨

A string that should not be modified or freed. Read that again: do not modify it, do not free it. It's not yours to edit or yeet into the void. 🫢

✨ SEE ALSO ✨

Introduction to Application Performance Monitoring

✨ AUTHOR ✨

MongoDB, Inc

2009-present, MongoDB, Inc.


mwah πŸ’‹ okay that's the page! shoutout to libmongoc version 2.5.6, dated Oct 09, 202, because that's what the footer says and we respect the footer's choices. πŸŽ€

πŸ“¦ where this page comes from