logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Christian Hansen "chansen@cpan.org"

Description

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

Exports

       Nothing by default. Following subroutines can be exported:

       is_reserved
       is_reserved_by_sql1992
       is_reserved_by_sql1999
       is_reserved_by_sql2003
       reserved_by
       words

Methods

       is_reserved( $word )
           Returns a boolean indicating if $word is reserved by either "SQL:1992", "SQL:1999" or "SQL:2003".

       is_reserved_by_sql1992( $word )
           Returns a boolean indicating if $word is reserved by "SQL:1992".

       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.

Name

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

See Also

       SQL::ReservedWords::DB2

       SQL::ReservedWords::MySQL

       SQL::ReservedWords::ODBC

       SQL::ReservedWords::Oracle

       SQL::ReservedWords::PostgreSQL

       SQL::ReservedWords::SQLite

       SQL::ReservedWords::SQLServer

       ISO/IEC 9075:1992 Database languages -- SQL

       ISO/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)

Synopsis

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

See Also