BSON::MinKey(3pm)
π BSON::MinKey π
okay so bestie, welcome to BSON::MinKey β it's the BSON type wrapper for MinKey, and honestly? she's small, she's mighty, she's giving quiet-luxury energy in a world of chaotic data types. π
Part of the User Contributed Perl Documentation collection, iykyk. π
β¨ VERSION β¨
This is version v1.12.2. periodt. π
πΈ SYNOPSIS πΈ
Here's the whole vibe, no cap:
use BSON::Types ':all';
bson_minkey();
That's it. That's the whole entrance. iconic behavior honestly. β¨
π¦ DESCRIPTION π¦
So what does this module even do? It provides a BSON type wrapper for the special BSON "MinKey" type. π«Ά
And here's the lowkey important part: the object returned is a singleton. As in, one single object, one main character, no duplicates, no clones, no "wait which instance was that" drama. She is the instance. π
π METHODS π
β TO_JSON β
This one's got a whole conditional thing going on, so pay attention bestie:
If the BSON_EXTJSON option is true, it returns a hashref that's compatible with MongoDB's extended JSON format β the spec lives over at https://github.com/mongodb/specifications/blob/master/source/extended-json.rst β and it represents the value as a document like this:
{"$minKey" : 1}
Look at her. One key, one value, zero chaos. π
If the BSON_EXTJSON option is false, then an error is thrown, because this value literally cannot be represented in JSON any other way. Not a vibe, not negotiable, just facts. π
π AUTHORS π
Shoutout to the people who made this happen:
- David Golden
<david@mongodb.com> - Stefan G.
<minimalist@lavabit.com>
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2020 by Stefan G. and MongoDB, Inc.
It's free software, licensed under:
The Apache License, Version 2.0, January 2004
fr fr, that's the whole page. nothing hidden, nothing skipped. π
and that's a wrap, bestie β this page came to you courtesy of perl v5.30.3, dated 2020-08-14, filed under BSON::MinKey(3pm). go forth and singleton responsibly. π¦β¨π
π¦ where this page comes from
- debian bookworm: libbson-perl 1.12.2-1 Β· Apache-2.0
- ubuntu jammy: libbson-perl 1.12.2-1 Β· Apache-2.0
- ubuntu noble: libbson-perl 1.12.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms