r1665: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 26 Mar 2002 20:31:58 +0000 (20:31 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 26 Mar 2002 20:31:58 +0000 (20:31 +0000)
ChangeLog
doc/clsql.sgml
doc/dsssl/COPYRIGHT [new file with mode: 0644]
doc/glossary.sgml
doc/ref.sgml

index 4029419fb7c1cb86f3108b246cf3f21cfcb4f85f..cd3d796795333a66f1cd55fa3d47c8bffd24a35b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
        * interfaces/postgresql-socket/postgresql-socket-api.cl
        Implemented direct socket reading for field type :double
+
+       * Added usage information for :types to documentation
        
 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
 
index 52a10a8b60bd5d2f98ce325d121d41f67c5f6026..90117acd986528b724b149efdcf18333ac83706e 100644 (file)
 <!ENTITY lw "<application>Lispworks</application>">
 <!ENTITY acl "<application>AllegroCL</application>">
 <!ENTITY cl "<application>ANSI Common Lisp</application>">
-<!ENTITY t "<constant>T</constant>">
-<!ENTITY nil "<constant>NIL</constant>">
+<!ENTITY t "<symbol>T</symbol>">
+<!ENTITY nil "<symbol>NIL</symbol>">
 <!ENTITY null "<constant>NULL</constant>">
-<!ENTITY c "<computeroutput>C</computeroutput>">
+<!ENTITY c "<symbol>C</symbol>">
 <!ENTITY defsystem "<application>defsystem</application>">
 <!ENTITY bookinfo SYSTEM "bookinfo.sgml">
 <!ENTITY preface SYSTEM "preface.sgml">
diff --git a/doc/dsssl/COPYRIGHT b/doc/dsssl/COPYRIGHT
new file mode 100644 (file)
index 0000000..871b60b
--- /dev/null
@@ -0,0 +1,5 @@
+These stylesheets are written and Copyright (c) 1999-2002 by Pierre
+R. Mai.
+
+He has graciously placed them in the public domain without
+restrictions.
index 9c6153baf3b9977a090238964c7c9fad94889510..68a09d5ad6fe32e5e94a66bedf93fd9fd041e794 100644 (file)
       <para>An object of type <type>database</type>.</para>
     </glossdef>
   </glossentry>
+  <glossentry id="gloss-field-types">
+    <glossterm>Field Types Specifier</glossterm>
+    <glossdef>
+      <para>A value that specifies the type of each field in a query.</para>
+    </glossdef>
+  </glossentry>
   <glossentry id="gloss-sql">
     <glossterm>Structured Query Language
       (<acronym>SQL</acronym>)
index a0334ea5891a9b7090527fd8c2d4fb10e49aee05..8551e1152e0b3b0dea329b985de2e2c2949200bf 100644 (file)
                of <symbol>*default-database*</symbol>.</para>
            </listitem>
          </varlistentry>
+         <varlistentry>
+           <term><parameter>types</parameter></term>
+           <listitem>
+             <para>A 
+               <glossterm linkend="gloss-field-types">field type
+                 specififier</glossterm>. The default is &nil;.
+               </para>
+               <para>
+                 The purpose of this argument is cause &clsql; to
+                 import SQL numeric fields into numeric Lisp objects
+                 rather than strings. This reduces the cost of
+                 allocating a temporary string and the &clsql; users'
+                 inconvenience of converting number strings into number
+                 objects.
+               </para>
+               <para>
+                 A value of <symbol>:auto</symbol> causes &clsql;
+                 to automatically convert the SQL field into a
+                 numeric format where applicable. The default value of
+                 &nil; causes all fields to be returned as strings
+                 regardless of the SQL type. Otherwise a list is expected
+                 which has a element for each field that specifies the
+                 conversion. If the list is shorter than the number
+                 of fields, the a value of <symbol>t</symbol> is
+                 assumed for the field.  If the list is longer than
+                 the number of fields, the extra elements are
+                 ignored.
+                 <simplelist type="vert">
+                   <member><symbol>:int</symbol> Field is imported as a
+                     32-bit signed integer.
+                   </member>
+                   <member><symbol>:double</symbol> Field is imported as a
+                     double-float number.
+                   </member>
+                   <member><symbol>t</symbol> Field is imported as a
+                     string.
+                   </member>
+                 </simplelist>
+               </para>
+           </listitem>
+         </varlistentry>
          <varlistentry>
            <term><returnvalue>result</returnvalue></term>
            <listitem>
                of <symbol>*default-database*</symbol>.</para>
            </listitem>
          </varlistentry>
+         <varlistentry>
+           <term><parameter>types</parameter></term>
+           <listitem>
+             <para>
+               A <glossterm linkend="gloss-field-types">field type specififier</glossterm>. 
+               The default is &nil;. See <link
+               linkend="query"><function>query</function></link>
+               for the semantics of this argument.  
+             </para>
+           </listitem>
+         </varlistentry>
          <varlistentry>
            <term><returnvalue>result</returnvalue></term>
            <listitem>
                <symbol>*default-database*</symbol>.</para>
            </listitem>
          </varlistentry>
+         <varlistentry>
+           <term><parameter>types</parameter></term>
+           <listitem>
+             <para>
+               A <glossterm linkend="gloss-field-types">field type specififier</glossterm>. 
+               The default is &nil;. See <link
+               linkend="query"><function>query</function></link>
+               for the semantics of this argument.  
+             </para>
+           </listitem>
+         </varlistentry>
          <varlistentry>
            <term><parameter>body</parameter></term>
            <listitem>