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