MCPcopy Index your code
hub / github.com/outerbase/studio / EmbedQueryable

Class EmbedQueryable

src/drivers/iframe-driver.ts:93–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected