(strings, ...args)
| 109 | } |
| 110 | |
| 111 | function sql(strings, ...args) { |
| 112 | const query = strings && Array.isArray(strings.raw) |
| 113 | ? new Query(strings, args, handler, cancel) |
| 114 | : typeof strings === 'string' && !args.length |
| 115 | ? new Identifier(options.transform.column.to ? options.transform.column.to(strings) : strings) |
| 116 | : new Builder(strings, args) |
| 117 | return query |
| 118 | } |
| 119 | |
| 120 | function unsafe(string, args = [], options = {}) { |
| 121 | arguments.length === 2 && !Array.isArray(args) && (options = args, args = []) |