The JavaScript API is promise-based by default, but with a `sync` variant that tracks `better-sqlite3` API for compatibility.