{"id":20849916,"url":"https://github.com/omnisci3nce/sqlite-sessions-demo","last_synced_at":"2026-04-27T02:32:30.128Z","repository":{"id":139117846,"uuid":"502253176","full_name":"omnisci3nce/sqlite-sessions-demo","owner":"omnisci3nce","description":"Delta DB updates using SQLite \"Session\" extension a.ka. Changesets","archived":false,"fork":false,"pushed_at":"2022-06-13T09:37:51.000Z","size":2300,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T11:00:57.950Z","etag":null,"topics":["sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"C","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/omnisci3nce.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}},"created_at":"2022-06-11T04:54:29.000Z","updated_at":"2023-06-18T01:25:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffbb5aee-a704-452e-b4e7-8f7eb3d9d9bb","html_url":"https://github.com/omnisci3nce/sqlite-sessions-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/omnisci3nce/sqlite-sessions-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnisci3nce%2Fsqlite-sessions-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnisci3nce%2Fsqlite-sessions-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnisci3nce%2Fsqlite-sessions-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnisci3nce%2Fsqlite-sessions-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omnisci3nce","download_url":"https://codeload.github.com/omnisci3nce/sqlite-sessions-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnisci3nce%2Fsqlite-sessions-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32320313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["sqlite","sqlite3"],"created_at":"2024-11-18T03:07:20.156Z","updated_at":"2026-04-27T02:32:30.122Z","avatar_url":"https://github.com/omnisci3nce.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqlite-sessions-demo\n\nhttps://sqlite.org/sessionintro.html - Delta db updates using \"changesets\"\n\n---\n\n1. run `make` in terminal to compile sqlite and the two demo executables\n1. run `./create_changeset` to create two db files and a SQLite changeset file\n1. inspect the following files\n    1. `slave.db` : run `sqlite3 slave.db` to enter the CLI. Inspect the animals table with `select * from animals;`\n    1. `master.db` : same as above for master.db\n    1. you'll notice that master.db has two additional rows. These are the rows that have been run while a SQLite session was open -\u003e and then saved into `changes.session`\n1. run `./apply_changeset` to apply the changes from `changes.session` to `.slave.db`.\n1. inspect the contents of `slave.db` from the CLI again. the two additional animal rows have been applied to the other database via the changeset file.\n\n#### Dependencies\n\n- GCC compiler - on debian-based linux repos it should be `sudo apt install build-essential`\n- Make `sudo apt install make`\n- SQLite `sudo apt install sqlite3`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnisci3nce%2Fsqlite-sessions-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomnisci3nce%2Fsqlite-sessions-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnisci3nce%2Fsqlite-sessions-demo/lists"}