Updates to insights, event data, telemetry.
This commit is contained in:
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 };
|
||||
}
|
||||
Reference in New Issue
Block a user