mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-28 16:02:47 +00:00
5 lines
206 B
TypeScript
5 lines
206 B
TypeScript
export function wrapDucklakeQuery(query: string, ducklake: string): string {
|
|
let attach = `ATTACH 'ducklake://${ducklake}' AS dl;USE dl;\n`
|
|
return query.replace(/^(--.*\n)*/, (match) => match + attach)
|
|
}
|