X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fgenerics.lisp;h=0814d0f2674d1bdf556c6bd4f0e128107daa0baa;hb=f10fc333da09ea7e24477e6199ffbc541adff2f1;hp=792a9dec90c5ac7277369e4905b1755a995908e0;hpb=e567409d9fff3f7231c2a0bb69b345e19de2b246;p=clsql.git diff --git a/sql/generics.lisp b/sql/generics.lisp index 792a9de..0814d0f 100644 --- a/sql/generics.lisp +++ b/sql/generics.lisp @@ -21,6 +21,13 @@ ;; FDML +(defgeneric choose-database-for-instance (object 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