MONGOC_APM_CO..._DATABASE_NAME(3)

πŸŽ€ MONGOC_APM_CO..._DATABASE_NAME(3) πŸŽ€

okay so this is your libmongoc girlie manual page, and we're talking about mongoc_apm_command_failed_get_database_name β€” yes, the whole name is a mouthful, but she's iconic πŸ’…

✨ SYNOPSIS ✨

          const char *
          mongoc_apm_command_failed_get_database_name (
             const mongoc_apm_command_failed_t *event);

This function returns this event's database name. Periodt. 🫢

But bestie, listen: the data is only valid in the scope of the callback that receives this event. So if you're gonna access it after the callback returns, you gotta copy it first. No keeping borrowed pointers like they're yours, okay? 😭

🌸 PARAMETERS 🌸

  • event β€” a mongoc_apm_command_failed_t. That's the event you're handing over, bestie. πŸ¦‹

πŸ’– RETURNS πŸ’–

A string that should not be modified or freed. Like, do not touch it, do not free it, do not try to make it fetch. It's giving "look, don't touch" energy πŸ’€

SEE ALSO: Introduction to Application Performance Monitoring

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


okay that's the whole vibe: brought to you by libmongoc version 2.5.6, dated Oct 09, 2026. bye bestie πŸ’–βœ¨

πŸ“¦ where this page comes from