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::MySQL - Reserved SQL words by MySQL

Author

       Christian Hansen "chansen@cpan.org"

Description

       Determine if words are reserved by MySQL.

Exports

       Nothing by default. Following subroutines can be exported:

       is_reserved
       is_reserved_by_mysql3
       is_reserved_by_mysql4
       is_reserved_by_mysql5
       reserved_by
       words

Methods

       is_reserved( $word )
           Returns a boolean indicating if $word is reserved by either MySQL 3.2, 4.0, 4.1, 5.0 or 5.1.

       is_reserved_by_mysql3( $word )
           Returns a boolean indicating if $word is reserved by MySQL 3.2.

       is_reserved_by_mysql4( $word )
           Returns a boolean indicating if $word is reserved by either MySQL 4.0 or 4.1.

       is_reserved_by_mysql5( $word )
           Returns a boolean indicating if $word is reserved by either MySQL 5.0 or 5.1.

       reserved_by( $word )
           Returns a list with MySQL versions that reserves $word.

       words
           Returns a list with all reserved words.

Name

       SQL::ReservedWords::MySQL - Reserved SQL words by MySQL

See Also

       SQL::ReservedWords

       <http://dev.mysql.com/doc/>

Synopsis

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

See Also