X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=doc%2Fref-ooddl.xml;h=e3ad2f38627990a2564e2410365c5a821c561ed3;hp=b6873c8d75d32bee43313ddc7e15f267dc5f5e2b;hb=4cd55168f1d6a2617efbaa6ee636996296c04347;hpb=fc58e4fb7d908985389c86adf57ddee6c1dde5d2 diff --git a/doc/ref-ooddl.xml b/doc/ref-ooddl.xml index b6873c8..e3ad2f3 100644 --- a/doc/ref-ooddl.xml +++ b/doc/ref-ooddl.xml @@ -548,6 +548,31 @@ slot value. + + + :db-reader - If a string, then when + reading values from the database, the string will be used + for a format string, with the only value being the value + from the database. The resulting string will be used as + the slot value. If a function then it will take one + argument, the value from the database, and return the + value that should be put into the slot. If a symbol, then + the symbol-function of the symbol will be used. + + + + + :db-writer - If a string, then when + reading values from the slot for the database, the string + will be used for a format string, with the only value + being the value of the slot. The resulting string will be + used as the column value in the database. If a function + then it will take one argument, the value of the slot, and + return the value that should be put into the database. If + a symbol, then the symbol-function of the symbol will be + used. + +