{"id":27637716,"url":"https://github.com/riyaz-ali/dotlite","last_synced_at":"2026-05-14T21:05:38.960Z","repository":{"id":188235582,"uuid":"678348314","full_name":"riyaz-ali/dotlite","owner":"riyaz-ali","description":"sqlite3 file reader in pure go","archived":false,"fork":false,"pushed_at":"2024-03-31T07:09:42.000Z","size":498,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T13:28:24.734Z","etag":null,"topics":["file-format","go","golang","sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"https://go.riyazali.net/dotlite","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riyaz-ali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-08-14T10:48:56.000Z","updated_at":"2023-08-22T08:28:11.000Z","dependencies_parsed_at":"2024-03-31T08:22:23.411Z","dependency_job_id":"e73d5ecb-7c31-4235-b02c-c219abf1d130","html_url":"https://github.com/riyaz-ali/dotlite","commit_stats":null,"previous_names":["riyaz-ali/dotlite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/riyaz-ali/dotlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyaz-ali%2Fdotlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyaz-ali%2Fdotlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyaz-ali%2Fdotlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyaz-ali%2Fdotlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riyaz-ali","download_url":"https://codeload.github.com/riyaz-ali/dotlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riyaz-ali%2Fdotlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33043279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["file-format","go","golang","sqlite","sqlite3"],"created_at":"2025-04-23T21:18:38.572Z","updated_at":"2026-05-14T21:05:38.935Z","avatar_url":"https://github.com/riyaz-ali.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗒️ dotlite\n\n**`dotlite`** is a [`sqlite3` file reader](http://sqlite.org/fileformat.html) written in pure Golang 🍋 \n\n*But why 🤔?* Well, just for fun 🤪 There aren't many practical scenarios where you should need this. You're better off using `sqlite3` directly.\nThis package exists just an exercise to implement the file format and understand the internals of how the [`btree`](https://en.wikipedia.org/wiki/B-tree) is serialized and stored.\n\n## Usage\n\nPull the package using `go get -u go.riyazali.net/dotlite`.\n\nThen, to iterate over entries from a table, do:\n\n```golang\n// using Album table from testdata/chinook.db\n// with schema: CREATE TABLE Album (AlbumId INTEGER NOT NULL, Title TEXT, ArtistId INTEGER);\nvar file, _ = dotlite.OpenFile(\"testdata/chinook.db\")\ndefer file.Close()\n\nvar err = file.ForEach(\"Album\", func(rec *Record) error {\n  log.Printf(\"record(%p):\\n\", record)\n  for i := 0; i \u003c record.NumValues(); i++ {\n    var val any\n    if val, err = record.ValueAt(i); err != nil {\n      return err\n    }\n\n    log.Printf(\"\\tval(%d): %+v\\n\", i, val)\n  }\n\n  return nil\n})\n```\n\nYou can use the same pattern to iterate over entries in an index or a [`WITHOUT ROWID`](https://www.sqlite.org/withoutrowid.html) table as well.\n\n### Wishes (that may never get fulfilled)\n\n- [ ] Support for other page types including `freelist` and `ptrmap`\n- [ ] Support for [rollback journal](https://www.sqlite.org/fileformat.html#the_rollback_journal)\n- [ ] Support for [Write-Ahead Log](https://www.sqlite.org/fileformat.html#the_write_ahead_log)\n\n## Credits\n\nThis package was inspired by (and heavily borrows from) [`github.com/go-sqlite/sqlite3`](https://github.com/go-sqlite/sqlite3). Thanks!\n\n------------------------------------\n\nMIT License Copyright (c) 2023 Riyaz Ali. Refer to [LICENSE](./LICENSE) for full text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friyaz-ali%2Fdotlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friyaz-ali%2Fdotlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friyaz-ali%2Fdotlite/lists"}