MONGOC_DATABAS...MOVE_ALL_USERS(3)

πŸ’… MONGOC_DATABAS...MOVE_ALL_USERS(3) πŸ’…

okay so this page is from the libmongoc manual, and it's all about one little function: mongoc_database_remove_all_users. No cap, that's the whole vibe. It will remove all users configured to access database. πŸ’–

✨ SYNOPSIS ✨

bool
mongoc_database_remove_all_users (mongoc_database_t *database,
                                  bson_error_t *error);

This function will remove all users configured to access database. That's it, that's the mission. πŸ¦‹

πŸŽ€ PARAMETERS πŸŽ€

  • database β€” A mongoc_database_t. The database bestie in question. πŸ’…
  • error β€” An optional location for a bson_error_t or NULL. Optional means you can pass NULL if you're feeling brave. πŸ™ˆ

πŸ’€ ERRORS πŸ’€

Errors are propagated via the error parameter. This may fail if there are socket errors or the current user is not authorized to perform the given command.

lowkey important: if the socket is acting up or the current user doesn't have permission for the given command, this can fail, and the error goes through that error parameter. 😭

🌈 RETURNS 🌈

Returns true if successful. Returns false and sets error if there are invalid arguments or a server or network error. ⭐

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


cute sign-off: this cutie is from libmongoc 2.5.6, dated Oct 09, 202 β€” and yes, the footer has that chaotic MONGOC_DATABAS...MOVE_ALL_USERS(3) run-on situation, iykyk πŸ˜­πŸ’–

πŸ“¦ where this page comes from