| | |
| | | getKursTeilnehmer, |
| | | getKursTeilnehmerCount, |
| | | |
| | | getUdf, |
| | | } |
| | | |
| | | ///////////////////////////////////////////////////////////////////////// |
| | |
| | | WHERE (or2.ref_id = ${ref_id} OR parent_id = ${ref_id}) |
| | | ORDER BY usr_id |
| | | ` |
| | | console.log(q) |
| | | const [results] = await pool.query(q) |
| | | return results |
| | | } |
| | |
| | | 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 |
| | | } |