bson_oid_init_sequence(3)

bson_oid_init_sequence3

Usage

void
bson_oid_init_sequence (bson_oid_t *oid, bson_context_t *context);

WARNING:

Deprecated since version 1.14.0: Use bson_oid_init() instead.

Parameters

•

oid: A bson_oid_t.

•

context: An optional bson_context_t.

Overview

Generates a new ObjectID with the next 64-bit sequence number in context. The first 4 bytes contain the current time and the following 8 contain the sequence number in big-endian format.

The bson_oid_t generated by this function is not guaranteed to be globally unique. Only unique within this context. It is however, guaranteed to be sequential.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libbson-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.