projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9112: fixes
[clsql.git]
/
base
/
database.lisp
diff --git
a/base/database.lisp
b/base/database.lisp
index 1e64fb3588d388c814fc9ad7514ea69f9c2de523..cc26d7119c517449b603ed41b654adeec3594017 100644
(file)
--- 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))
(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
(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