sqlite3
sqlite3 copied to clipboard
Invalid FFI pointer type, expected null, integer or BigInt
import { Database } from "https://deno.land/x/[email protected]/mod.ts";
const db = new Database("./files/dist/northwind.db");
const a = db.query("SELECT * FROM \"Employees\"");
console.log(a);
db.close();

I am getting this as well with deno 1.2.5. I thought that upgrading from [email protected] to [email protected] would fix it, but no.
There is a whole rewrite going on in #44 so, I'll probably just wait until that's released.
There was a breaking change in Deno FFI API that split pointer type into two: pointer & buffer. This is fixed in rewrite which will land soon.
I'll be closing this for now since rewrite has been released and it handles the changes in Deno FFI API changes as well.