X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref-syntax.xml;h=e0364fabd825483540f4d323de1c210d69a019dc;hb=4871b9ef13ed1cf4f7ef927bd026ca19e845f53c;hp=da28038a03db73c881a5d06b153c1bf6913d3140;hpb=5edc92aee527621ed13245b5b7892e40c2cd443f;p=clsql.git
diff --git a/doc/ref-syntax.xml b/doc/ref-syntax.xml
index da28038..e0364fa 100644
--- a/doc/ref-syntax.xml
+++ b/doc/ref-syntax.xml
@@ -16,6 +16,12 @@
utilities for enabling and disabling the square bracket reader
syntax and for constructing symbolic SQL expressions.
+
+ Tip: just want it on
+
+ file-enable-sql-reader-syntax at the top of each file is easiest.
+
+
@@ -57,6 +63,12 @@
Modifies the default readtable.
+
+
+ &clsql; tries to keep track of whether the syntax has already been enabled. This can be problematic if the syntax is somehow disabled externally to &clsql; as future attempts to enable the syntax will do nothing--the system thinks it is already enabled. This may happen if there is an enable, but no disable, in a file that is processed with load or compile-file as the lisp implementation will restore the readtable on completion. Or, even if there is a disable but a compiler-error is encountered before running the disable. If you encounter this try running disable-sql-reader-syntax a couple times in the REPL.
+
+ See file-enable-sql-reader-syntax for an alternative.
+ Affected by
@@ -77,6 +89,7 @@
locally-enable-sql-reader-syntaxlocally-disable-sql-reader-syntaxrestore-sql-reader-syntax-state
+ file-enable-sql-reader-syntax
@@ -151,6 +164,7 @@
locally-enable-sql-reader-syntaxlocally-disable-sql-reader-syntaxrestore-sql-reader-syntax-state
+ file-enable-sql-reader-syntax
@@ -172,7 +186,7 @@
LOCALLY-ENABLE-SQL-READER-SYNTAX
- Globally enable square bracket reader syntax.
+ Locally enable square bracket reader syntax.Macro
@@ -210,6 +224,12 @@
Modifies the default readtable.
+
+
+ &clsql; tries to keep track of whether the syntax has already been enabled. This can be problematic if the syntax is somehow disabled externally to &clsql; as future attempts to enable the syntax will do nothing--the system thinks it is already enabled. This may happen if there is an enable, but no disable, in a file that is processed with load or compile-file as the lisp implementation will restore the readtable on completion. Or, even if there is a disable but a compiler-error is encountered before running the disable. If you encounter this try running disable-sql-reader-syntax a couple times in the REPL.
+
+ See file-enable-sql-reader-syntax for an alternative.
+ Affected by
@@ -228,6 +248,7 @@
disable-sql-reader-syntaxlocally-disable-sql-reader-syntaxrestore-sql-reader-syntax-state
+ file-enable-sql-reader-syntax
@@ -310,6 +331,7 @@
disable-sql-reader-syntaxlocally-enable-sql-reader-syntaxrestore-sql-reader-syntax-state
+ file-enable-sql-reader-syntax
@@ -394,6 +416,7 @@
disable-sql-reader-syntaxlocally-enable-sql-reader-syntaxlocally-disable-sql-reader-syntax
+ file-enable-sql-reader-syntax
@@ -409,6 +432,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 for #\[ and #\]
+
+
+
+ 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
@@ -847,80 +944,73 @@
- any
- ,
- some
- ,
- all
- ,
- not
- ,
- union
- ,
- intersect
- ,
- minus
- ,
+ any
+ some
+ all
+ not
+ union
+ intersect
+ minusexcept
- ,
+
order-by
- ,
+
null
- ,
+
*
- ,
+
+
- ,
+
/
- ,
+
-
- ,
+
like
- ,
+
and
- ,
+
or
- ,
+
in
- ,
+
substr
- ,
+
||
- ,
+
=
- ,
+
<
- ,
+
>
- ,
+
>=
- ,
+
<=
- ,
+
<>
- ,
+
count
- ,
+
max
- ,
+
min
- ,
+
avg
- ,
+
sum
- ,
+
function
- ,
+
between
- ,
+
distinct
- ,
+
nvl
- ,
+
slot-value
- ,
+
userenv
- ,
+
as well as the pseudo-operator function.
@@ -930,30 +1020,30 @@
concat
- ,
+
substring
- ,
+
limit
- ,
+
group-by
- ,
+
having
- ,
+
not-null
- ,
+
exists
- ,
+
uplike
- ,
+
is
- ,
+
==
- ,
+
the
- ,
+
coalesce
- ,
- view-class.
+
+ view-class