SQL::R...greSQL(3pm)
π SQL::ReservedWords::PostgreSQL π
okay bestie, welcome to the User Contributed Perl Documentation section, and this lil gem is called SQL::ReservedWords::PostgreSQL β that truncated SQL::R...greSQL(3pm) thing in the corner? that's just the page name being dramatic, it's giving abbreviation energy π
β¨ NAME β¨
SQL::ReservedWords::PostgreSQL β Reserved SQL words by PostgreSQL πβ¨
πΈ SYNOPSIS πΈ
like, here's the whole vibe in one little snippet:
if ( SQL::ReservedWords::PostgreSQL->is_reserved( $word ) ) {
print "$word is a reserved PostgreSQL word!";
}
literally that's it. that's the whole flex π«Ά
π¦ DESCRIPTION π¦
so what does this actually do? it determines if words are reserved by PostgreSQL. that's the entire mission statement, no cap. you hand it a word, it tells you whether Postgres has already claimed it. main character energy for your SQL parser π
π METHODS π
π is_reserved( $word )
Returns a boolean indicating if $word is reserved by either PostgreSQL 7.3, 7.4, 8.0 or 8.1. all four, bestie. it checks the whole squad π
π is_reserved_by_postgresql7( $word )
Returns a boolean indicating if $word is reserved by either PostgreSQL 7.3 or 7.4. just the 7.x girlies β¨
π is_reserved_by_postgresql8( $word )
Returns a boolean indicating if $word is reserved by either PostgreSQL 8.0 or 8.1. 8.x only, periodt π
π reserved_by( $word )
Returns a list with PostgreSQL versions that reserves $word. so instead of a yes/no you get the receipts β every version that's claiming that word πβ¨
π words
Returns a list with all reserved words. the whole roster. the full lineup π₯
π EXPORTS π
Nothing by default. nothing. zero. nada. you gotta ask nicely π
Following subroutines can be exported:
is_reservedis_reserved_by_postgresql7is_reserved_by_postgresql8reserved_bywords
that's the whole menu, pick your faves π
π SEE ALSO π
SQL::ReservedWordsβ the parent vibe, go check it out π§- <http://www.postgresql.org/docs/manuals/>
π AUTHOR π
Christian Hansen chansen@cpan.org β absolute icon, we stan π
π COPYRIGHT π
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. free as in go wild, bestie π
ok that's the whole page, tysm for reading, mwah π
signing off β this was SQL::ReservedWords::PostgreSQL from perl v5.34.0, dated 2022-06-17 πβ¨π¦
π¦ 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