(source)
| 121 | } |
| 122 | |
| 123 | function load(source) { |
| 124 | return typeof source === "string" |
| 125 | ? fetch(source).then(load) |
| 126 | : source && typeof source.arrayBuffer === "function" // Response, Blob, FileAttachment |
| 127 | ? source.arrayBuffer().then(load) |
| 128 | : source instanceof ArrayBuffer |
| 129 | ? new Uint8Array(source) |
| 130 | : source; |
| 131 | } |
| 132 | |
| 133 | async function exec(db, query, params) { |
| 134 | const [result] = await db.exec(query, params); |
nothing calls this directly
no test coverage detected