
The following functions enable and disable the square bracket syntax:
enable-sql-reader-syntax Turns on square bracket syntax and sets the state so that restore-sql-reader-syntax-state enables the syntax again if it is subsequently disabled.
disable-sql-reader-syntax Turns off square bracket syntax and sets the state so that restore-sql-reader-syntax-state disables the syntax again if it is subsequently enabled.
locally-enable-sql-reader-syntax
locally-enable-sql-reader-syntax Turns on square bracket syntax and does not change the syntax state -- so restore-sql-reader-syntax-state restores the current enable/disable state.
locally-disable-sql-reader-syntax
locally-disable-sql-reader-syntax Turns off square bracket syntax and does not change the syntax state -- so restore-sql-reader-syntax-state restores the current enable/disable state.
restore-sql-reader-syntax-state
restore-sql-reader-syntax-state Sets the enable/disable state of the SQL reader syntax to reflect the last call to either enable-sql-reader-syntax or disable-sql-reader-syntax .
The intended use of locally-enable-sql-reader-syntax and locally-disable-sql-reader-syntax is in a file:
#.(locally-enable-sql-reader-syntax)
<stuff using [...]>
#.(restore-sql-reader-syntax-state)