(target, property, receiver)
| 312 | |
| 313 | export const ch = new Proxy(chTarget as unknown as ClickHouseClient, { |
| 314 | get(target, property, receiver) { |
| 315 | if (property in target) { |
| 316 | return Reflect.get(target, property, receiver); |
| 317 | } |
| 318 | return (originalCh as any)[property]; |
| 319 | }, |
| 320 | }) as ClickHouseClient; |
| 321 | |
| 322 | export async function chQueryWithMeta<T extends Record<string, any>>( |