SQL::R...dWords(3pm)
β¨ SQL::ReservedWords β the vibe check for SQL words β¨
okay bestie, so this is a page from the User Contributed Perl Documentation (yes, that's the manual name, it's giving "community-made, community-loved") and the star of the show is the module SQL::ReservedWords. It's literally the girl who knows which words are reserved by ANSI/ISO SQL and which ones are just out here living their truth. π
πΈ NAME πΈ
SQL::ReservedWords β Reserved SQL words by ANSI/ISO. no cap, that's the whole job.
π SYNOPSIS π
if ( SQL::ReservedWords->is_reserved( $word ) ) {
print "$word is a reserved SQL word!";
}
likeβ¦ that's it. that's the whole entry point. one call, one answer, slay. π«Ά
π¦ DESCRIPTION π¦
It determines if words are reserved by the ANSI/ISO SQL standard. You ask, it tells you, no drama, no side quests. main character energy only. β¨
π METHODS π
is_reserved( $word )β Returns a boolean indicating if$wordis reserved by either"SQL:1992","SQL:1999"or"SQL:2003". one yes-or-no for all three eras of SQL, iconic behavior fr fr.is_reserved_by_sql1992( $word )β Returns a boolean indicating if$wordis reserved by"SQL:1992". the vintage one. retro. πis_reserved_by_sql1999( $word )β Returns a boolean indicating if$wordis reserved by"SQL:1999". the y2k era, we love her. β¨is_reserved_by_sql2003( $word )β Returns a boolean indicating if$wordis reserved by"SQL:2003". the newer girl on the block. πreserved_by( $word )β Returns a list with SQL standards that reserves$word. like, which standards are claiming this word? she'll tell you the whole roster. πwordsβ Returns a list with all reserved words. the full guest list. every single one. π
π EXPORTS π
Nothing by default. As it should β boundaries, bestie, we stan. π«Ά
Following subroutines can be exported:
is_reservedis_reserved_by_sql1992is_reserved_by_sql1999is_reserved_by_sql2003reserved_bywords
β SEE ALSO β
the extended universe, the crossover episode, the friend group:
SQL::ReservedWords::DB2SQL::ReservedWords::MySQLSQL::ReservedWords::ODBCSQL::ReservedWords::OracleSQL::ReservedWords::PostgreSQLSQL::ReservedWords::SQLiteSQL::ReservedWords::SQLServer
and the actual source material, the lore, the canon:
ISO/IEC 9075:1992 Database languages -- SQLISO/IEC 9075-2:1999 Database languages -- SQL -- Part 2: Foundation (SQL/Foundation)ISO/IEC 9075-2:2003 Database languages -- SQL -- Part 2: Foundation (SQL/Foundation)
π AUTHOR π
Christian Hansen <chansen@cpan.org> β the legend, the originator, the one who did it first. π«Ά
π COPYRIGHT π
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. free as in freedom, free as in go off. π₯
perl v5.34.0 Β· 2022-06-17 β that's the version and the date this page was last touched, mwah, ty for coming to my ted talk πβ¨πΈ
π¦ 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