r9114: fixes for list-indexes
[clsql.git] / base / db-interface.lisp
index 7c75dd0fa95dd7305c64ef4daff373e4763dd73e..d874a7f67dfa15249b46bd7eae2e1368d061ea70 100644 (file)
@@ -186,6 +186,9 @@ the given lisp type and parameters."))
 (defgeneric database-list-indexes (database &key owner)
   (:documentation "List all indexes in the DATABASE."))
 
+(defgeneric database-list-table-indexes (table database &key owner)
+  (:documentation "List all indexes for a table in the DATABASE."))
+
 (defgeneric database-list-attributes (table database &key owner)
   (:documentation "List all attributes in TABLE."))
 
@@ -201,6 +204,15 @@ the given lisp type and parameters."))
 (defgeneric oid (object)
   (:documentation "Return the unique ID of a database object."))
 
+;;; Database backend capabilities
+
+(defgeneric db-use-column-on-drop-index? (database)
+  (:method (database)
+          (declare (ignore database))
+          ;; Standard SQL does not use column name on DROP INDEX
+          nil)
+  (:documentation "NIL [default] lif database does not use column name on DROP INDEX."))
+
 
 ;;; Large objects support (Marc Battyani)