SQL::R...::MySQL(3pm)

πŸ“¦
version 0.8 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ SQL::R...::MySQL β€” wait bestie, let me finish that πŸ’…

Okay so this is the SQL::ReservedWords::MySQL page β€” it's part of the User Contributed Perl Documentation crew, and it does exactly one thing but it does it flawlessly: it tells you if a word is a reserved SQL word according to MySQL. No cap. πŸ‘‘


🌸 NAME 🌸

SQL::ReservedWords::MySQL β€” Reserved SQL words by MySQL πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

Like, here's the whole vibe:

if ( SQL::ReservedWords::MySQL->is_reserved( $word ) ) {
    print "$word is a reserved MySQL word!";
}

That's it. That's the entire energy. ✨


πŸ’– DESCRIPTION πŸ’–

It figures out whether words are reserved by MySQL. That's the job. She's employed, she's booked, she's thriving. πŸ’…


πŸ‘‘ METHODS πŸ‘‘

⭐ is_reserved( $word )

Hands back a boolean telling you if $word is reserved by MySQL 3.2, 4.0, 4.1, 5.0 or 5.1. Basically it checks all the girlies at once. Obsessed. 🫢

⭐ is_reserved_by_mysql3( $word )

Returns a boolean for whether $word is reserved by MySQL 3.2 specifically. Just the one version. Very exclusive. πŸŽ€

⭐ is_reserved_by_mysql4( $word )

Returns a boolean for whether $word is reserved by MySQL 4.0 or MySQL 4.1. Two for one, lowkey a steal. πŸ’–

⭐ is_reserved_by_mysql5( $word )

Returns a boolean for whether $word is reserved by MySQL 5.0 or MySQL 5.1. The modern era besties. ✨

⭐ reserved_by( $word )

Gives you back a list of the MySQL versions that reserve $word. Receipts. πŸ“‹

⭐ words

Gives you back a list of all the reserved words. The whole roster. The full squad. πŸ”₯


πŸŽ€ EXPORTS πŸŽ€

Nothing by default, bestie, sorry β€” but you can export these subroutines if you want them in your namespace:

  • is_reserved
  • is_reserved_by_mysql3
  • is_reserved_by_mysql4
  • is_reserved_by_mysql5
  • reserved_by
  • words

🌈 SEE ALSO 🌈


🧚 AUTHOR 🧚

Christian Hansen chansen@cpan.org 🫢


This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. Periodt. πŸ’…


Okay and one last thing β€” this page shipped with perl v5.34.0 on 2022-06-17. That's the whole footer, bestie, I just folded it in so you didn't have to read a boring one-liner. Byeee πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from