From 16676ee574a7e4d712f3e419b7d779f68458a930 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 24 May 2023 16:42:37 +0200 Subject: [PATCH] Database return the name of the database --- include/lib/database_core.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/lib/database_core.class.php b/include/lib/database_core.class.php index 5af3f84b5..0895f98bb 100644 --- a/include/lib/database_core.class.php +++ b/include/lib/database_core.class.php @@ -80,7 +80,14 @@ class DatabaseCore } - + /** + * return the name of the current database + * @return false|string + */ + public function get_name () { + return pg_dbname($this->ret); + } + public function verify() { // Verify that the elt we want to add is correct