Skip to content

Commit

Permalink
VIEW instead of TABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 18, 2024
1 parent 130e988 commit e7f3914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/stdlib/duckdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async function insertSource(database, name, source) {
async function insertUrl(database, name, url) {
const connection = await database.connect();
try {
await connection.query(`CREATE TABLE '${name}' AS FROM '${url}'`);
await connection.query(`CREATE VIEW '${name}' AS FROM '${url}'`);
} finally {
await connection.close();
}
Expand Down

0 comments on commit e7f3914

Please sign in to comment.