Open 7flash opened 11 months ago
I don't think this vtable is available by default in SQLite3. You will have to load up an extension. Ref: https://sqlite.org/src/doc/tip/ext/misc/fileio.c
I don't think this vtable is available by default in SQLite3. You will have to load up an extension. Ref: https://sqlite.org/src/doc/tip/ext/misc/fileio.c
Usually I'm loading extensions like this
import * as sqlite_vss from "https://deno.land/x/sqlite_vss/mod.ts";
const db = new Database("headlines.db");
db.enableLoadExtension = true;
db.loadExtension('./lines0');
Given lines0.dylib downloaded from https://github.com/asg017/sqlite-lines/releases to the same folder
Where can I find fileio.dylib ?
I believe you have to compile it yourself, unless there are prebuilt binaries available elsewhere. fileio ext is in the sqlite source itself, and it's a single C file that you can compile to a dylib: https://sqlite.org/src/file/ext/misc/fileio.c - can check the sqlite docs for more instructions on how to compile.
Jan05-2039.ts
Execute sql
Gives an error