MONGOC_CLIENT_...DATABASE_NAMES(3)

πŸ’… MONGOC_CLIENT_...DATABASE_NAMES(3) πŸ’…

welcome to the libmongoc manual, bestie β€” this page is about MONGOC_CLIENT_...DATABASE_NAMES(3), and we're gonna keep it cute and accurate 🫢.


⚠️ WARNING ⚠️

Deprecated since version 1.9.0: Use mongoc_client_get_database_names_with_opts() instead. No cap, this one is old-school.

✨ SYNOPSIS ✨

char **
mongoc_client_get_database_names (mongoc_client_t *client, bson_error_t *error);

πŸ¦‹ DESCRIPTION πŸ¦‹

This function queries the MongoDB server for a list of known databases. That's the whole vibe: you ask, server says here are the databases I know about ✨.

This function is considered a retryable read operation. Upon a transient error (a network error, errors due to replica set failover, etc.) the operation is safely retried once. If retryreads is false in the URI (see mongoc_uri_t) the retry behavior does not apply.

πŸŽ€ PARAMETERS πŸŽ€

  • client β€” A mongoc_client_t.
  • error β€” An optional location for a bson_error_t or NULL.

🌸 ERRORS 🌸

Errors are propagated via the error parameter. That's it, that's the tea 🍡.

πŸ’– RETURNS πŸ’–

A NULL terminated vector of NULL-byte terminated strings. The result should be freed with bson_strfreev() β€” don't forget, bestie, that's the whole assignment πŸ’….

NULL is returned upon failure and error is set.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


okay that's the page, bestie 🫢 β€” source/version: libmongoc 2.5.6; date: Oct 09, 202... (the footer is a little scrambled, but we still love her πŸ’œ).

πŸ“¦ where this page comes from