NAME

SQL::ReservedWords - Reserved SQL words by ANSI/ISO

SYNOPSIS

if ( SQL::ReservedWords->is_reserved( $word ) ) {
    die "$word is a reserved SQL word!";
}

# or

use SQL::ReservedWords 'is_reserved';

if ( is_reserved( $word ) ) {
    die "$word is a reserved SQL word!";
}

DESCRIPTION

Determine if words are reserved by ANSI/ISO SQL standard.

METHODS

is_reserved( $word )

Returns a boolean indicating if $word is reserved by either SQL-92, SQL:1999 or SQL:2003.

is_reserved_by_sql92( $word )

Returns a boolean indicating if $word is reserved by SQL-92.

is_reserved_by_sql1999( $word )

Returns a boolean indicating if $word is reserved by SQL:1999.

is_reserved_by_sql2003( $word )

Returns a boolean indicating if $word is reserved by SQL:2003.

reserved_by( $word )

Returns a list with SQL standards that reserves $word.

words

Returns a list with all reserved words.

EXPORTS

Nothing by default. Following subroutines can be exported:

is_reserved
is_reserved_by_sql92
is_reserved_by_sql1999
is_reserved_by_sql2003
reserved_by
words

AUTHOR

Christian Hansen ch@ngmedia.com

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.