FILE-ENABLE-SQL-READER-SYNTAX — Enable the square bracket reader syntax for the duration of the file. Macro
Uncoditionally enables the SQL reader syntax. Unlike
enable-sql-reader-syntax
and
disable-sql-reader-syntax
which try to keep track of whether
the syntax has been enabled or disabled and keep track of the old read-table for restoration this function just enables it unconditionally.
Once enabled this way there is no corresponding disable function but instead relies on being used in a file context. The spec for load and compile-file states that the *readtable* will be restored after processing the file.
Intended to be used at the top of a file that contains sql reader syntax.
(in-package :my-package) (clsql:file-enable-sql-reader-syntax) ... ;;functions that use the square bracket syntax.