csjh
csjh
DDeno
Created by csjh on 5/1/2024 in #help
Using `Deno.FsFile.prototype.readable` with `Response`
oop I'm silly
9 replies
DDeno
Created by csjh on 5/1/2024 in #help
Using `Deno.FsFile.prototype.readable` with `Response`
oh I guess I could just fetch(path) i forgot file:// is supported
9 replies
DDeno
Created by csjh on 5/1/2024 in #help
Using `Deno.FsFile.prototype.readable` with `Response`
fwiw new Response(createReadStream(path)) also works but I would assume the runtime-specific implementation is better in some way
9 replies
DDeno
Created by csjh on 9/3/2023 in #help
DuckDB deno package broken & npm package segfaulting
thanks 🙂
6 replies
DDeno
Created by csjh on 9/3/2023 in #help
DuckDB deno package broken & npm package segfaulting
appears there's a PR open on the repo as well
6 replies
DDeno
Created by csjh on 9/3/2023 in #help
DuckDB deno package broken & npm package segfaulting
my bad, query error not initialization but it's
error: Uncaught (in promise) TypeError: Cannot convert object to primitive value
const view = new Deno.UnsafePointerView(BigInt(v));
^
at BigInt (<anonymous>)
at toArrayBuffer (https://deno.land/x/duckdb@0.1.1/lib.js:7:43)
at Module.query (https://deno.land/x/duckdb@0.1.1/lib.js:530:7)
at Connection.query (https://deno.land/x/duckdb@0.1.1/mod.ts:38:16)
at file:///Users/csjh/Test/duckdb-querying/main.ts:8:24
at eventLoopTick (ext:core/01_core.js:183:11)
error: Uncaught (in promise) TypeError: Cannot convert object to primitive value
const view = new Deno.UnsafePointerView(BigInt(v));
^
at BigInt (<anonymous>)
at toArrayBuffer (https://deno.land/x/duckdb@0.1.1/lib.js:7:43)
at Module.query (https://deno.land/x/duckdb@0.1.1/lib.js:530:7)
at Connection.query (https://deno.land/x/duckdb@0.1.1/mod.ts:38:16)
at file:///Users/csjh/Test/duckdb-querying/main.ts:8:24
at eventLoopTick (ext:core/01_core.js:183:11)
repro:
import { open } from "https://deno.land/x/duckdb@0.1.1/mod.ts";

const db = open(":memory:");


const connection = db.connect();

connection.query('select 1');
import { open } from "https://deno.land/x/duckdb@0.1.1/mod.ts";

const db = open(":memory:");


const connection = db.connect();

connection.query('select 1');
ran w/ deno run --allow-all --unstable main.ts
6 replies