{"id":14483607,"url":"https://github.com/denodrivers/sqlite3","last_synced_at":"2025-05-16T10:06:24.620Z","repository":{"id":38792050,"uuid":"427714336","full_name":"denodrivers/sqlite3","owner":"denodrivers","description":"The fastest and correct SQLite3 module for Deno runtime","archived":false,"fork":false,"pushed_at":"2024-12-27T18:56:17.000Z","size":1152,"stargazers_count":279,"open_issues_count":23,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T04:06:59.061Z","etag":null,"topics":["database","deno","driver","fastest","ffi","hacktoberfest","native","sqlite3"],"latest_commit_sha":null,"homepage":"https://jsr.io/@db/sqlite","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denodrivers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["djdeveloperr"]}},"created_at":"2021-11-13T16:21:35.000Z","updated_at":"2025-04-02T05:36:00.000Z","dependencies_parsed_at":"2023-02-19T07:31:26.817Z","dependency_job_id":"5cd5a210-8b89-4353-baf2-28fff7d9876f","html_url":"https://github.com/denodrivers/sqlite3","commit_stats":{"total_commits":149,"total_committers":15,"mean_commits":9.933333333333334,"dds":0.3959731543624161,"last_synced_commit":"1156215cd43a057617f4b8c32ae1545db0cecf15"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denodrivers%2Fsqlite3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denodrivers%2Fsqlite3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denodrivers%2Fsqlite3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denodrivers%2Fsqlite3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denodrivers","download_url":"https://codeload.github.com/denodrivers/sqlite3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254509477,"owners_count":22082891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","deno","driver","fastest","ffi","hacktoberfest","native","sqlite3"],"created_at":"2024-09-03T00:01:54.286Z","updated_at":"2025-05-16T10:06:24.603Z","avatar_url":"https://github.com/denodrivers.png","language":"TypeScript","funding_links":["https://github.com/sponsors/djdeveloperr","https://github.com/sponsors/DjDeveloperr"],"categories":["TypeScript"],"sub_categories":[],"readme":"# Deno SQLite3\n\n[![Tags](https://img.shields.io/github/release/denodrivers/sqlite3)](https://github.com/denodrivers/sqlite3/releases)\n[![Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/sqlite3@0.11.1/mod.ts)\n[![Checks](https://github.com/denodrivers/sqlite3/actions/workflows/ci.yml/badge.svg)](https://github.com/denodrivers/sqlite3/actions/workflows/ci.yml)\n[![License](https://img.shields.io/github/license/denodrivers/sqlite3)](https://github.com/denodrivers/sqlite3/blob/master/LICENSE)\n[![Sponsor](https://img.shields.io/static/v1?label=Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86)](https://github.com/sponsors/DjDeveloperr)\n\nThe fastest and correct module for SQLite3 in Deno.\n\n## Example\n\n```ts\nimport { Database } from \"jsr:@db/sqlite@0.11\";\n\nconst db = new Database(\"test.db\");\n\nconst [version] = db.prepare(\"select sqlite_version()\").value\u003c[string]\u003e()!;\nconsole.log(version);\n\ndb.close();\n```\n\n## Usage\n\nSince this library depends on the unstable FFI API, you must pass `--allow-env`,\n`--allow-ffi` and `--unstable-ffi` flags. Network and FS permissions are also\nneeded to download and cache prebuilt library.\n\nYou can also just use `--allow-all` / `-A` flag since FFI basically gives full\naccess.\n\n```sh\ndeno run -A --unstable-ffi \u003cfile\u003e\n```\n\n## Benchmark\n\n![image](./bench/results.png)\n\n[Benchmark](./bench) based on\n[just-js/02-sqlite](https://just-js.github.io/benchmarks/02-sqlite.html)\n\nSee [bench](./bench) for benchmarks source.\n\n## Documentation\n\nSee [doc.md](https://github.com/denodrivers/sqlite3/blob/main/doc.md) for\ndocumentation.\n\nCheck out the complete API reference\n[here](https://doc.deno.land/https://deno.land/x/sqlite3@0.11.1/mod.ts).\n\n## Native Library\n\nIt will download and cache a prebuilt shared library from GitHub releases, for\nwhich it will need network and file system read/write permission.\n\nIf you want to use custom library, then you can set the `DENO_SQLITE_PATH`\nenvironment variable, to a fully specified path to the SQLite3 shared library.\n\n## Contributing\n\nCode is formatted using `deno fmt` and linted using `deno lint`. Please make\nsure to run these commands before committing.\n\nYou can optionally build sqlite3 from source. Make sure that you have the\nsubmodule (`git submodule update --init --recursive`).\n\n```sh\ndeno task build\n```\n\nWhen running tests and benchmarks, you use the `DENO_SQLITE_LOCAL=1` env\nvariable otherwise it won't use to locally compiled SQLite library.\n\n```sh\nDENO_SQLITE_LOCAL=1 deno task bench\n```\n\n## Related\n\n- [x/sqlite](https://deno.land/x/sqlite), WASM based.\n\n## License\n\nApache-2.0. Check [LICENSE](./LICENSE) for details.\n\nCopyright © 2023 DjDeveloperr\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenodrivers%2Fsqlite3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenodrivers%2Fsqlite3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenodrivers%2Fsqlite3/lists"}