(
select: SqlResultColumnSelector,
)
| 265 | } |
| 266 | |
| 267 | createSelectQuery( |
| 268 | select: SqlResultColumnSelector, |
| 269 | ): string { |
| 270 | if (select == null) { |
| 271 | return "*" |
| 272 | } else if (typeof select == "string") { |
| 273 | select = [select] |
| 274 | } |
| 275 | if (Array.isArray(select)) { |
| 276 | return select.map( |
| 277 | (s) => { |
| 278 | if (typeof s == "string") { |
| 279 | return '"' + s + '"' |
| 280 | } |
| 281 | return `"${s[0]}"."${s[1]}"` |
| 282 | } |
| 283 | ).join(", ") |
| 284 | } else { |
| 285 | return "*" |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | createColumnQuery( |
| 290 | column: Column |
no outgoing calls
no test coverage detected