(text, variables)
| 11 | } |
| 12 | |
| 13 | substituteVariables(text, variables) { |
| 14 | if (!text) return null; |
| 15 | return text.replace(/\${(\w+)}/g, (match, key) => |
| 16 | variables[key] !== undefined ? variables[key] : match |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | adjustPlaceholderSyntax(query) { |
| 21 | // The postgres package uses $1, $2, etc. just like the pg package, |
no test coverage detected