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

Function insertUrl

src/client/stdlib/duckdb.js:229–236  ·  view source on GitHub ↗
(database, name, url)

Source from the content-addressed store, hash-verified

227}
228
229async function insertUrl(database, name, url) {
230 const connection = await database.connect();
231 try {
232 await connection.query(`CREATE VIEW '${name}' AS FROM '${url}'`);
233 } finally {
234 await connection.close();
235 }
236}
237
238async function insertFile(database, name, file, options) {
239 const url = await file.url();

Callers 1

insertSourceFunction · 0.85

Calls 2

queryMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected