| 91 | } |
| 92 | |
| 93 | export class EmbedQueryable implements QueryableBaseDriver { |
| 94 | protected conn = |
| 95 | typeof window !== "undefined" && window?.outerbaseIpc |
| 96 | ? new ElectronConnection() |
| 97 | : new IframeConnection(); |
| 98 | |
| 99 | listen() { |
| 100 | this.conn.listen(); |
| 101 | } |
| 102 | |
| 103 | async query(stmt: string): Promise<DatabaseResultSet> { |
| 104 | const r = await this.conn.query(stmt); |
| 105 | return r; |
| 106 | } |
| 107 | |
| 108 | transaction(stmts: string[]): Promise<DatabaseResultSet[]> { |
| 109 | const r = this.conn.transaction(stmts); |
| 110 | return r; |
| 111 | } |
| 112 | } |
nothing calls this directly
no outgoing calls
no test coverage detected