BSON::Raw(3pm)

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

✨ BSON::Raw β€” it's giving pre-encoded BSON realness πŸ’…

okay bestie, so this is BSON::Raw, a Perl module from the User Contributed Perl Documentation section (manual page 3pm, iykyk). It's a BSON type wrapper for pre-encoded BSON documents, and honestly? It's a whole mood. πŸ¦‹


🌸 VERSION 🌸

version v1.12.2 β€” she's got a number and she's not afraid to use it πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

use BSON::Types ':all';

my $ordered = bson_raw( $bson_bytes );

look at her go. one line. iconic. ✨


πŸ’œ DESCRIPTION πŸ’œ

So this module hands you a BSON document wrapper for bytes that are already encoded as BSON. No decoding, no fuss, no drama β€” the bytes are the moment, periodt.

Real talk though: if you're just a regular end-user, you lowkey have no need for this. It's here for optimization purposes β€” specifically for MongoDB or other client libraries that wanna skip the extra steps. It's a backstage-pass kind of module. 🎟️


🫢 ATTRIBUTES 🫢

  • bson β€” a string holding a BSON-encoded document. The default is undef. (not me leaving it undefined bestie 😭)
  • metadata β€” a hash reference full of arbitrary metadata about the BSON document. The default is undef. yes, also undef. she likes to keep things open-ended. πŸ™ˆ

πŸ‘‘ AUTHORS πŸ‘‘

the legends who made this happen, no cap:

  • David Golden <david@mongodb.com>
  • Stefan G. <minimalist@lavabit.com>

This software is Copyright (c) 2020 by Stefan G. and MongoDB, Inc.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004

free software? we love to see it. slay. 🌈


and that's the whole page, bestie β€” this was BSON::Raw(3pm), rendered by perl v5.30.3 back on 2020-08-14. she's vintage but she's thriving. πŸ’…β­

πŸ“¦ where this page comes from