SQL::R...LServer(3pm)
π SQL::ReservedWords::SQLServer β bestie edition π
okay so real talk: this is a <pink>section 3pm</pink> page, straight out of the User Contributed Perl Documentation for <purple>perl</purple> (the title up top got squished into SQL::R...LServer, but you and me both know what it really says π
). Anyway. Buckle up, because this module is genuinely so useful and we are about to be obsessed.
β¨ NAME β¨
SQL::ReservedWords::SQLServer β reserved SQL words, but the SQL Server flavour π¦
πΈ SYNOPSIS πΈ
like, the whole vibe in four lines:
if ( SQL::ReservedWords::SQLServer->is_reserved( $word ) ) {
print "$word is a reserved SQL Server word!";
}
π DESCRIPTION π
It figures out whether words are <hotpink>reserved</hotpink> by SQL Server. That's it, that's the whole thing, and honestly? iconic.
π METHODS π
is_reserved( $word )
Hands you back a boolean saying whether $word is reserved by SQL Server 7, 2000 or 2005. all three, bestie, no favourites π
is_reserved_by_sqlserver7( $word )
Boolean, but make it specifically SQL Server 7.
is_reserved_by_sqlserver2000( $word )
Boolean, and this time it's SQL Server 2000 only. periodt.
is_reserved_by_sqlserver2005( $word )
Boolean for SQL Server 2005 and nobody else π
reserved_by( $word )
Returns a <mint>list</mint> of the SQL Server versions that reserve $word. so if a word is reserved in more than one place, you get the whole receipts list π§Ύ
words
Returns a <mint>list</mint> of all the reserved words. the whole collection. the entire wardrobe π₯
π«Ά EXPORTS π«Ά
Nothing by default. (not me giving you zero freebies, it's giving boundaries β)
But these subroutines can be exported if you ask nicely:
is_reservedis_reserved_by_sqlserver7is_reserved_by_sqlserver2000is_reserved_by_sqlserver2005reserved_bywords
π¦ SEE ALSO π¦
go read it, iykyk π
π AUTHOR π
Christian Hansen <chansen@cpan.org> β thank you for your service, king π
β COPYRIGHT β
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. (slay, open source behaviour fr fr π)
lowkey the most important thing: nothing here is dangerous, nothing's deprecated, nothing's undefined β it's just a vibe check for reserved words. go forth and is_reserved responsibly β¨
perl v5.34.0 Β· 2022-06-17 β and that's the whole page, bestie, mwah πππ
π¦ 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