X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref.sgml;h=bb77f598b462297d3053eea56379110cc090fced;hb=fcd7e2fa0784a586e9c8f241761d38a622cbec28;hp=a0334ea5891a9b7090527fd8c2d4fb10e49aee05;hpb=cd6909a0366afc3bf00c752286fae3671801ff8f;p=clsql.git diff --git a/doc/ref.sgml b/doc/ref.sgml index a0334ea..bb77f59 100644 --- a/doc/ref.sgml +++ b/doc/ref.sgml @@ -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 @@ -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 @@ -2079,6 +2134,17 @@ *default-database*. + + types + + + A field type specififier. + The default is &nil;. See query + for the semantics of this argument. + + + body