SQL::ReservedWords::PostgreSQL - Reserved SQL words by PostgreSQL
if ( SQL::ReservedWords::PostgreSQL->is_reserved("user") ) { die "Don't use reserved words in column names!"; } # or use SQL::ReservedWords::PostgreSQL 'is_reserved'; if ( is_reserved("group") ) { die "Don't use reserved words in column names!"; }
Determine if words are reserved by PostgreSQL.
Returns a boolean indicating if $word is reserved by either PostgreSQL 7.3, 7.4, 8.0 or 8.1.
$word
Returns a boolean indicating if $word is reserved by either PostgreSQL 7.3 or 7.4.
Returns a boolean indicating if $word is reserved by either PostgreSQL 8.0 or 8.1.
Returns a list with all reserved words.
Nothing by default. Following subroutines can be exported:
http://www.postgresql.org/docs/7.3/static/sql-keywords-appendix.html
http://www.postgresql.org/docs/7.4/static/sql-keywords-appendix.html
http://www.postgresql.org/docs/8.0/static/sql-keywords-appendix.html
http://www.postgresql.org/docs/8.1/static/sql-keywords-appendix.html
Christian Hansen ch@ngmedia.com
ch@ngmedia.com
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install SQL::ReservedWords::PostgreSQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::ReservedWords::PostgreSQL
CPAN shell
perl -MCPAN -e shell install SQL::ReservedWords::PostgreSQL
For more information on module installation, please visit the detailed CPAN module installation guide.