MCPcopy Create free account
hub / github.com/observablehq/framework / queryRow

Method queryRow

src/client/stdlib/sqlite.js:20–22  ·  view source on GitHub ↗
(query, params)

Source from the content-addressed store, hash-verified

18 return await exec(this._db, query, params);
19 }
20 async queryRow(query, params) {
21 return (await this.query(query, params))[0] || null;
22 }
23 async explain(query, params) {
24 const rows = await this.query(`EXPLAIN QUERY PLAN ${query}`, params);
25 return element("pre", {className: "observablehq--inspect"}, [text(rows.map((row) => row.detail).join("\n"))]);

Callers

nothing calls this directly

Calls 1

queryMethod · 0.95

Tested by

no test coverage detected