X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base%2Fdatabase.lisp;fp=base%2Fdatabase.lisp;h=cc26d7119c517449b603ed41b654adeec3594017;hb=a3e1cd20eec3903790c6e8f126345558904488f4;hp=1e64fb3588d388c814fc9ad7514ea69f9c2de523;hpb=7fd52b8de887a2a328f78bddb6a2fb4230ef2b3a;p=clsql.git diff --git a/base/database.lisp b/base/database.lisp index 1e64fb3..cc26d71 100644 --- a/base/database.lisp +++ b/base/database.lisp @@ -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