From: Nathan Bird Date: Mon, 1 Mar 2010 22:26:19 +0000 (-0500) Subject: First draft at doc for file-enable-sql-reader-syntax X-Git-Tag: v5.0.5~8^2^2~7 X-Git-Url: http://git.kpe.io/?p=clsql.git;a=commitdiff_plain;h=a6131d02d6b3c41ccb0ae411f8132857b39aa2f4 First draft at doc for file-enable-sql-reader-syntax --- diff --git a/doc/ref-syntax.xml b/doc/ref-syntax.xml index 787b4a3..dd0dd0e 100644 --- a/doc/ref-syntax.xml +++ b/doc/ref-syntax.xml @@ -409,6 +409,80 @@ + + + FILE-ENABLE-SQL-READER-SYNTAX + + + FILE-ENABLE-SQL-READER-SYNTAX + + Enable the square bracket reader syntax for the duration of the file. + + Macro + + + Syntax + + file-enable-sql-reader-syntax => + + + Arguments and Values + None. + + + Description + 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. + + + Examples + 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. + + + + Side Effects + + Modifies the readtable. + + + + Affected by + None. + + + Exceptional Situations + + None. + + + + See Also + + enable-sql-reader-syntax + disable-sql-reader-syntax + locally-enable-sql-reader-syntax + locally-disable-sql-reader-syntax + + + + Notes + + Unique to &clsql;, not present in &commonsql;. + + + + SQL