mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Updates to insights, event data, telemetry.
This commit is contained in:
parent
39562d4a64
commit
e4bd314bd6
44 changed files with 413 additions and 278 deletions
9
lib/sql.ts
Normal file
9
lib/sql.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export function buildSql(query: string, parameters: object) {
|
||||
const params = { ...parameters };
|
||||
|
||||
const sql = query.replaceAll(/\$[\w_]+/g, name => {
|
||||
return name;
|
||||
});
|
||||
|
||||
return { sql, params };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue