This sample is used as a fixture for testing the SQLite extension in the Node.js source code.
make loadableconst {DatabaseSync} = require('node:sqlite');
const db = new DatabaseSync(dbPath, {allowLoadExtension: true});
db.loadExtension('./dist/sample');
const {noop} = db.prepare(
'select noop(1) as noop;'
).get();
console.log(noop); // 1