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 version1.9.0: Usemongoc_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β Amongoc_client_t.errorβ An optional location for abson_error_torNULL.
πΈ 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
π COPYRIGHT π
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
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms