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

Method query

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

Source from the content-addressed store, hash-verified

15 return new SQLiteDatabaseClient(new sqlite.Database(data));
16 }
17 async query(query, params) {
18 return await exec(this._db, query, params);
19 }
20 async queryRow(query, params) {
21 return (await this.query(query, params))[0] || null;
22 }

Callers 6

queryRowMethod · 0.95
explainMethod · 0.95
describeTablesMethod · 0.95
describeColumnsMethod · 0.95
describeMethod · 0.95
sqlMethod · 0.95

Calls 1

execFunction · 0.85

Tested by 1

describeMethod · 0.76