X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fgenerics.lisp;h=d0d69d3444a404494e94d3da9e067e236473f8ae;hb=814ef0649edf23f0136d5cad2d7738ae72e79871;hp=792a9dec90c5ac7277369e4905b1755a995908e0;hpb=e567409d9fff3f7231c2a0bb69b345e19de2b246;p=clsql.git diff --git a/sql/generics.lisp b/sql/generics.lisp index 792a9de..d0d69d3 100644 --- a/sql/generics.lisp +++ b/sql/generics.lisp @@ -21,6 +21,13 @@ ;; FDML +(defgeneric choose-database-for-instance (object &optional database) + (:documentation "Used by the oodml functions to select which + database object to use. Chooses the database associated with the + object primarily, falls back to the database provided as an argument + or the *DEFAULT-DATABASE*.")) + + (defgeneric execute-command (expression &key database) (:documentation "Executes the SQL command EXPRESSION, which may be an SQL @@ -84,7 +91,7 @@ case, a record is created in the appropriate table of DATABASE using values from the slot values of OBJECT, and OBJECT becomes associated with DATABASE.")) -(defgeneric delete-instance-records (object) +(defgeneric delete-instance-records (object &key database) (:documentation "Deletes the records represented by OBJECT in the appropriate table of the database associated with OBJECT. If OBJECT is not