From e2dc64672428e599d45c70c6c560e06501477e0b Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Fri, 20 Jun 2025 15:43:41 +0000
Subject: [PATCH] GS-2156
---
lib/db.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/lib/db.js b/lib/db.js
index 531e5cf..72d6bc0 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -40,6 +40,7 @@
getKursTeilnehmer,
getKursTeilnehmerCount,
+ getUdf,
}
/////////////////////////////////////////////////////////////////////////
@@ -350,3 +351,12 @@
const [results] = await pool.query(q)
return results
}
+
+/////// UDF ////////////////////////////////////////////////////////////////
+
+async function getUdf() {
+ const pool = await poolP
+ const q = `SELECT field_id, field_name, field_type from ${database}.udf_definition;`
+ const [results] = await pool.query(q)
+ return results
+}
--
Gitblit v1.8.0