mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Refactored queries.
This commit is contained in:
parent
e4bd314bd6
commit
4bd3ef8e12
19 changed files with 330 additions and 408 deletions
|
|
@ -1,9 +0,0 @@
|
|||
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