noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 02/06: Database return the name of the databa


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/06: Database return the name of the database
Date: Sat, 3 Jun 2023 10:30:27 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 16676ee574a7e4d712f3e419b7d779f68458a930
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed May 24 16:42:37 2023 +0200

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]