MONGOC_CLIENT_...T_CLUSTER_TIME(3)

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

okay bestie, welcome to the libmongoc manual page for MONGOC_CLIENT_...T_CLUSTER_TIME(3) β€” yes, the title is a whole mood, but the function inside is the real main character. πŸ’–

✨ SYNOPSIS ✨

const bson_t *
mongoc_client_session_get_cluster_time (const mongoc_client_session_t *session);

So what does it do? It gets the session's clusterTime as a BSON document. Periodt. ✨

🫢 PARAMETERS 🫢

  • session β€” a mongoc_client_session_t. That's the bestie we're asking for the cluster time. πŸ’…

πŸ”₯ RETURNS πŸ”₯

If the session has not been used for any operation and mongoc_client_session_advance_cluster_time() has not been called, you get a bson_t that is valid only for the lifetime of session. Otherwise, you get NULL.

no cap: that bson_t is lifetime-of-session only, so don't be weird with it after the session's gone. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


mwah πŸ’– this iconic lil page is from libmongoc version 2.5.6, dated Oct 09, 202 β€” that's literally what the footer says, bestie. bye! 🫢✨

πŸ“¦ where this page comes from