[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
- [Noalyss-commit] [noalyss] branch master updated (596bc85fd -> 4925941c8), Dany De Bontridder, 2023/06/03
- [Noalyss-commit] [noalyss] 03/06: Improve Debug appearance, Dany De Bontridder, 2023/06/03
- [Noalyss-commit] [noalyss] 02/06: Database return the name of the database,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 01/06: Debug : error is tracefile not enable, Dany De Bontridder, 2023/06/03
- [Noalyss-commit] [noalyss] 06/06: Documentation, Dany De Bontridder, 2023/06/03
- [Noalyss-commit] [noalyss] 04/06: Improve debug, Dany De Bontridder, 2023/06/03
- [Noalyss-commit] [noalyss] 05/06: Fix #0002291: Apparence Gestion Client Contact, Dany De Bontridder, 2023/06/03