SQL::R...dWords(3pm)

πŸ“¦
version 0.8 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ SQL::ReservedWords β€” the vibe check for SQL words ✨

okay bestie, so this is a page from the User Contributed Perl Documentation (yes, that's the manual name, it's giving "community-made, community-loved") and the star of the show is the module SQL::ReservedWords. It's literally the girl who knows which words are reserved by ANSI/ISO SQL and which ones are just out here living their truth. πŸ’…


🌸 NAME 🌸

SQL::ReservedWords β€” Reserved SQL words by ANSI/ISO. no cap, that's the whole job.


πŸŽ€ SYNOPSIS πŸŽ€

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

like… that's it. that's the whole entry point. one call, one answer, slay. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

It determines if words are reserved by the ANSI/ISO SQL standard. You ask, it tells you, no drama, no side quests. main character energy only. ✨


πŸ’– METHODS πŸ’–

  • is_reserved( $word ) β€” Returns a boolean indicating if $word is reserved by either "SQL:1992", "SQL:1999" or "SQL:2003". one yes-or-no for all three eras of SQL, iconic behavior fr fr.
  • is_reserved_by_sql1992( $word ) β€” Returns a boolean indicating if $word is reserved by "SQL:1992". the vintage one. retro. πŸŽ€
  • is_reserved_by_sql1999( $word ) β€” Returns a boolean indicating if $word is reserved by "SQL:1999". the y2k era, we love her. ✨
  • is_reserved_by_sql2003( $word ) β€” Returns a boolean indicating if $word is reserved by "SQL:2003". the newer girl on the block. πŸ’…
  • reserved_by( $word ) β€” Returns a list with SQL standards that reserves $word. like, which standards are claiming this word? she'll tell you the whole roster. πŸ‘‘
  • words β€” Returns a list with all reserved words. the full guest list. every single one. πŸ’œ

🌈 EXPORTS 🌈

Nothing by default. As it should β€” boundaries, bestie, we stan. 🫢

Following subroutines can be exported:

  • is_reserved
  • is_reserved_by_sql1992
  • is_reserved_by_sql1999
  • is_reserved_by_sql2003
  • reserved_by
  • words

⭐ SEE ALSO ⭐

the extended universe, the crossover episode, the friend group:

  • SQL::ReservedWords::DB2
  • SQL::ReservedWords::MySQL
  • SQL::ReservedWords::ODBC
  • SQL::ReservedWords::Oracle
  • SQL::ReservedWords::PostgreSQL
  • SQL::ReservedWords::SQLite
  • SQL::ReservedWords::SQLServer

and the actual source material, the lore, the canon:

  • 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)

πŸ‘‘ AUTHOR πŸ‘‘

Christian Hansen <chansen@cpan.org> β€” the legend, the originator, the one who did it first. 🫢


This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. free as in freedom, free as in go off. πŸ”₯


perl v5.34.0 Β· 2022-06-17 β€” that's the version and the date this page was last touched, mwah, ty for coming to my ted talk πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from