Wiki::...re::Pg(3pm)

πŸ“¦
version 0.86 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Okay bestie, this page is Wiki::...re::Pg(3pm) from the User Contributed Perl Documentation section, and the actual star of the show is Wiki::Toolkit::Store::Pg β€” the Postgres storage backend for Wiki::Toolkit. Periodt. πŸ’…


🌸 REQUIRES 🌸

It subclasses Wiki::Toolkit::Store::Database. That's the parent-class situation, no cap. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

See Wiki::Toolkit::Store::Database. That's literally it β€” that's the synopsis, bestie. ✨


πŸŽ€ METHODS πŸŽ€

🌟 check_and_write_node 🌟

             $store->check_and_write_node( node     => $node,
                           checksum => $checksum,
                                           %other_args );

This method locks the node, verifies the checksum, calls write_node_post_locking with all supplied arguments, and unlocks the node. Iconic behavior, honestly. 🧚

Returns:

  • the version of the updated node when writing succeeds
  • 0 if the checksum doesn't match
  • -1 if the change was not applied

And on error? It croaks. πŸ˜­πŸ’€


Bye bestie! This little manual moment was brought to you by perl v5.32.0, dated 2021-01-04. πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from