(s: string | null | undefined)
| 70 | * quoted, escaped value. |
| 71 | */ |
| 72 | export function sqlStringOrNull(s: string | null | undefined): string { |
| 73 | if (s === null || s === undefined || s === '') { |
| 74 | return 'NULL'; |
| 75 | } |
| 76 | return sqlStringLiteral(s); |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Renders a JavaScript value as a SQL literal. Supports the value shapes the |
no test coverage detected