X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref.sgml;h=bb77f598b462297d3053eea56379110cc090fced;hb=fcd7e2fa0784a586e9c8f241761d38a622cbec28;hp=0c860c16c838d9d33b7daff2c23092fe15d7786a;hpb=9a78eef71c902d3b272fb7c777bff6dd0acd8a2b;p=clsql.git diff --git a/doc/ref.sgml b/doc/ref.sgml index 0c860c1..bb77f59 100644 --- a/doc/ref.sgml +++ b/doc/ref.sgml @@ -1780,7 +1780,7 @@ Syntax - query query-expression &key database => result + query query-expression &key database types => result Arguments and Values @@ -1803,6 +1803,50 @@ of *default-database*. + + types + + A + field type + specififier. The default is &nil;. + + + 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. + + + A value of :auto causes &clsql; + to automatically convert SQL fields 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 t is + assumed for the field. If the list is longer than + the number of fields, the extra elements are + ignored. + + :int Field is imported as a + 32-bit signed integer. + + :longlong Field is imported as a + 64-bit signed integer. + + :double Field is imported as a + double-float number. + + t Field is imported as a + string. + + + + + result @@ -1889,7 +1933,7 @@ Syntax - map-query output-type-spec function query-expression &key database => result + map-query output-type-spec function query-expression &key database types => result Arguments and Values @@ -1929,6 +1973,17 @@ of *default-database*. + + types + + + A field type specififier. + The default is &nil;. See query + for the semantics of this argument. + + + result @@ -2049,7 +2104,7 @@ Syntax - do-query ((&rest args) query-expression &key database) &body body => nil + do-query ((&rest args) query-expression &key database types) &body body => nil Arguments and Values @@ -2079,6 +2134,17 @@ *default-database*. + + types + + + A field type specififier. + The default is &nil;. See query + for the semantics of this argument. + + + body