Files
windmill/frontend/src/lib/components/ducklake.ts
T

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)
}