Wiki::...::MySQL(3pm)

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

πŸ’… Wiki::Toolkit::Store::MySQL(3pm) β€” bestie edition 🐬

Okay so this is Wiki::Toolkit::Store::MySQL, the MySQL storage backend for Wiki::Toolkit, from the User Contributed Perl Documentation crew. It's giving database-backend realness, and honestly? She ate. ✨


πŸŽ€ NAME πŸŽ€

Wiki::Toolkit::Store::MySQL β€” the MySQL storage backend for Wiki::Toolkit. No cap, that's the whole vibe. πŸ’–

πŸ¦‹ REQUIRES πŸ¦‹

She subclasses Wiki::Toolkit::Store::Database. That's the family tree, periodt. 🌸

✨ SYNOPSIS ✨

See Wiki::Toolkit::Store::Database β€” like, go look over there, bestie, that's where the synopsis lives. πŸ‘‘

πŸ”₯ METHODS πŸ”₯

🌈 check_and_write_node 🌈

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

Okay so here's the tea β˜•: this method locks the node, verifies the checksum, calls write_node_post_locking with all the supplied arguments, and then unlocks the node. Main character behavior, honestly. πŸ’…

Here's what she returns:

  • the version of the updated node on successful writing βœ…
  • 0 if the checksum doesn't match πŸ™ˆ
  • -1 if the change was not applied πŸ’€
  • croaks on error 😭
⚠️ Note: It uses MySQL's user level locking, so any locks are released when the database handle disconnects. Doing it like this because β€” direct quote from the original energy β€” "I can't seem to get it to work properly with transactions." Not me relating to that on a spiritual level. 🫢

And that's the whole page, bestie! πŸ“ This iconic little manual page is perl v5.32.0, dated 2021-01-04, brought to you by User Contributed Perl Documentation. Slay, archive her, keep her safe. πŸ’œπŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from