BSON::MinKey(3pm)

πŸ“¦
version 1.12.2 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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>

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