From 08186da304e89de3b61d2a2f3b438598856579fc Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Sun, 22 Jun 2025 09:07: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