(str: string)
| 14 | } |
| 15 | |
| 16 | export function escapeSqlString(str: string) { |
| 17 | return `'${str.replace(/'/g, `''`)}'`; |
| 18 | } |
| 19 | |
| 20 | export function escapeSqlBinary(value: ArrayBuffer) { |
| 21 | return `x'${hex(value)}'`; |
no outgoing calls
no test coverage detected