X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=base%2Fdb-interface.lisp;fp=base%2Fdb-interface.lisp;h=3bf550c7f4a7e1568caebacc18fdcf5f5303395a;hp=d874a7f67dfa15249b46bd7eae2e1368d061ea70;hb=3ec4277531c7c19b1cffade823d3e2e3f928ceb3;hpb=a4097e19c5157e87b9991549bc44f3ef598aeb90 diff --git a/base/db-interface.lisp b/base/db-interface.lisp index d874a7f..3bf550c 100644 --- a/base/db-interface.lisp +++ b/base/db-interface.lisp @@ -206,12 +206,17 @@ the given lisp type and parameters.")) ;;; Database backend capabilities -(defgeneric db-use-column-on-drop-index? (database) +(defgeneric database-underlying-type (database) (:method (database) - (declare (ignore database)) + (database-type database)) + (:documentation "Returns the type of the underlying database. For ODBC, needs to query ODBC driver.")) + +(defgeneric db-use-column-on-drop-index? (db-type) + (:method (db-type) + (declare (ignore db-type)) ;; Standard SQL does not use column name on DROP INDEX nil) - (:documentation "NIL [default] lif database does not use column name on DROP INDEX.")) + (:documentation "NIL [default] lif database-type does not use column name on DROP INDEX.")) ;;; Large objects support (Marc Battyani)