To use sqlite-html as a runtime-loadable extension, download the appropriate binary for your platform from the GitHub Releases page:
- MacOS:
html0.dylib - Linux:
html0.so - Windows:
html0.dll
Note: The 0 in the filename represents the major version. Since the project is currently pre-v1, expect breaking changes in future versions.
Loading in SQLite CLI
.load ./html0
Loading in Python (sqlite3)
import sqlite3
con = sqlite3.connect(":memory:")
con.enable_load_extension(True)
con.load_extension("./html0")
Loading in Node.js (better-sqlite3)
const Database = require("better-sqlite3");
const db = new Database(":memory:");
db.loadExtension("./html0");
Loading in Datasette
datasette data.db --load-extension ./html0
con.load_extension("./html0")