v0.2.1-alpha.3
the fastest CSV SQLite extension, written in Rust
Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Dependencies
deno.land/x
x/sqlite_xsv
Deno Module
The sqlite-xsv
SQLite extension is available to Deno developers with the x/sqlite_xsv
Deno module. It works with x/sqlite3
, the fastest and native Deno SQLite3 module.
import { Database } from "https://deno.land/x/sqlite3@0.8.0/mod.ts";
import * as sqlite_xsv from "https://deno.land/x/sqlite_xsv@v0.2.1-alpha.3/mod.ts";
const db = new Database(":memory:");
db.enableLoadExtension = true;
db.loadExtension(sqlite_xsv.getLoadablePath());
const [version] = db
.prepare("select xsv_version()")
.value<[string]>()!;
console.log(version);
Like x/sqlite3
, x/sqlite_xsv
requires network and filesystem permissions to download and cache the pre-compiled SQLite extension for your machine. Though x/sqlite3
already requires --allow-ffi
and --unstable
, so you might as well use --allow-all
/-A
.
deno run -A --unstable <file>
x/sqlite_xsv
does not work with x/sqlite
, which is a WASM-based Deno SQLite module that does not support loading extensions.