r9088: Automated commit for Debian build of clsql upstream-version-2.8.0
[clsql.git] / base / database.lisp
index 1e64fb3588d388c814fc9ad7514ea69f9c2de523..cc26d7119c517449b603ed41b654adeec3594017 100644 (file)
@@ -246,6 +246,10 @@ of full is NIL."
     (setq connection-spec (string-to-list-connection-spec connection-spec)))
   (database-destroy connection-spec database-type))
 
+(defun list-databases (connection-spec &key database-type)
+  (when (stringp connection-spec)
+    (setq connection-spec (string-to-list-connection-spec connection-spec)))
+  (database-list connection-spec database-type))
 
 (defmacro with-database ((db-var connection-spec &rest connect-args) &body body)
   "Evaluate the body in an environment, where `db-var' is bound to the