{"id":20973503,"url":"https://github.com/litejs/sqlite3","last_synced_at":"2026-04-19T15:01:29.184Z","repository":{"id":65998880,"uuid":"315860415","full_name":"litejs/sqlite3","owner":"litejs","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-25T07:25:17.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T17:59:59.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"lauriro"}},"created_at":"2020-11-25T07:24:42.000Z","updated_at":"2020-11-25T07:36:54.000Z","dependencies_parsed_at":"2023-05-21T23:00:30.687Z","dependency_job_id":null,"html_url":"https://github.com/litejs/sqlite3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litejs%2Fsqlite3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litejs%2Fsqlite3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litejs%2Fsqlite3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litejs%2Fsqlite3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litejs","download_url":"https://codeload.github.com/litejs/sqlite3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243330284,"owners_count":20274038,"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":[],"created_at":"2024-11-19T04:19:55.886Z","updated_at":"2025-12-27T20:02:34.615Z","avatar_url":"https://github.com/litejs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/lauriro"],"categories":[],"sub_categories":[],"readme":"[LiteJS]: https://www.litejs.com/\n[npm package]: https://npmjs.org/package/@litejs/sqlite3\n[GitHub repo]: https://github.com/litejs/@litejs/sqlite3\n\n[size]: https://packagephobia.now.sh/badge?p=@litejs/sqlite3\n[size-src]: https://packagephobia.now.sh/result?p=@litejs/sqlite3\n\nSqlite3 \u0026ndash; [![size][size]][size-src]\n=======\n\nSmall sqlite3 command wrapper with buffer and boolean support.\n\n```javascript\nvar sqlite3 = require(\"@litejs/sqlite3\")\n, db = sqlite3(\"./test.db\", {\n\tbin: \"/bin/sqlite3\",     // Default: sqlite3\n\tmigration: \"./db/test/\"  // Migration sql files. Default: null\n\tnice: 1                  // Default: null\n})\n\n// update db.real, db.user and db.sys for each query\ndb.run(\".timer on\")\n\n// report a number of rows affected by INSERT, DELETE, or UPDATE statement\ndb.run(\".changes on\")\n\ndb.run(\"CREATE TABLE t1 (id INT PRIMARY KEY, enabled BLOB, val BLOB)\")\ndb.run(\"INSERT INTO t1 VALUES (?, ?)\", [1, true, \"str\"])\ndb.get(\"SELECT id, val FROM t1 WHERE t=?\", [1], function(err, row) {\n\t// row = { id: 1, val: 'str' }\n})\ndb.close()\n\n// allow the parent to exit without waiting for a child to exit\ndb.child.unref()\n\n```\n\n## External links\n\n[GitHub repo][] |\n[npm package][]\n\n\n## Licence\n\nCopyright (c) 2013-2020 Lauri Rooden \u0026lt;lauri@rooden.ee\u0026gt;  \n[The MIT License](http://lauri.rooden.ee/mit-license.txt)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitejs%2Fsqlite3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitejs%2Fsqlite3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitejs%2Fsqlite3/lists"}