( template: TemplateStringsArray, args: unknown[], result_type: T, )
| 63 | * ``` |
| 64 | */ |
| 65 | export function templateStringToQuery<T extends ResultType>( |
| 66 | template: TemplateStringsArray, |
| 67 | args: unknown[], |
| 68 | result_type: T, |
| 69 | ): Query<T> { |
| 70 | const text = template.reduce((curr, next, index) => { |
| 71 | return `${curr}$${index}${next}`; |
| 72 | }); |
| 73 | |
| 74 | return new Query(text, result_type, args); |
| 75 | } |
| 76 | |
| 77 | function objectQueryToQueryArgs( |
| 78 | query: string, |
no outgoing calls
no test coverage detected