SQL::R...::MySQL(3pm)
β¨ 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_reservedis_reserved_by_mysql3is_reserved_by_mysql4is_reserved_by_mysql5reserved_bywords
π SEE ALSO π
SQL::ReservedWordsβ the mothership π- <http://dev.mysql.com/doc/> β go read the docs, iykyk π
π§ AUTHOR π§
Christian Hansen chansen@cpan.org π«Ά
π COPYRIGHT π
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
- debian bookworm: libsql-reservedwords-perl 0.8-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libsql-reservedwords-perl 0.8-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libsql-reservedwords-perl 0.8-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsql-reservedwords-perl 0.8-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsql-reservedwords-perl 0.8-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms