More code that should have been in the last patch.
[clsql.git] / sql / db-interface.lisp
index 9c17b544dd0268993a6022e13b3677fadb107959..e13adf63ba26b3809dd80e59568390a6c01e89be 100644 (file)
@@ -167,6 +167,11 @@ if unable to destory."))
 (defgeneric database-sequence-last (name database)
   (:documentation "Select the last value in sequence NAME in DATABASE."))
 
+(defgeneric database-last-auto-increment-id (database table column)
+  (:documentation "Many databases have the notion of an auto-increment
+  id; i.e. a sequence implicitly on a table. This function should
+  return that ID." ))
+
 (defgeneric database-start-transaction (database)
   (:documentation "Start a transaction in DATABASE.")
   (:method ((database t))