From b9e31706c33cd5ac10fa66a3a88cb54a5327220c Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Fri, 20 Jun 2025 15:40:04 +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