{"id":13587428,"url":"https://github.com/cannadayr/git-sqlite","last_synced_at":"2026-01-31T02:32:52.029Z","repository":{"id":48293131,"uuid":"96646532","full_name":"cannadayr/git-sqlite","owner":"cannadayr","description":"A custom diff and merge driver for sqlite","archived":false,"fork":false,"pushed_at":"2021-08-02T23:55:50.000Z","size":64,"stargazers_count":161,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-02-13T21:49:29.806Z","etag":null,"topics":["git","sqlite"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/cannadayr.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}},"created_at":"2017-07-08T22:01:16.000Z","updated_at":"2024-01-08T02:25:41.000Z","dependencies_parsed_at":"2022-08-28T03:42:05.738Z","dependency_job_id":null,"html_url":"https://github.com/cannadayr/git-sqlite","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannadayr%2Fgit-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannadayr%2Fgit-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannadayr%2Fgit-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cannadayr%2Fgit-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cannadayr","download_url":"https://codeload.github.com/cannadayr/git-sqlite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223295463,"owners_count":17121807,"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":["git","sqlite"],"created_at":"2024-08-01T15:06:12.459Z","updated_at":"2026-01-31T02:32:51.991Z","avatar_url":"https://github.com/cannadayr.png","language":"Shell","readme":"## SYNOPSIS\ngit-sqlite is a collection of shell scripts that allows a sqlite database\nto be tracked using the git version control system.\n\nIt can be used on an existing database, however, UUIDs will make\nmulti-master distribution substantially easier.\n\nSee src/schema.sql after building the project for an example.\n\n## USAGE GUIDE\ncreate a new database using the git-sqlite example schema:\n```\ngit-sqlite init newdatabase.db\n```\n\nattach the database to your repository (has to be done once for each repo):\n```\ngit-sqlite attach newdatabase.db\n```\n\nshow a diff using the git-sqlite diff driver:\n```\ngit show-sql \u003cCOMMIT SHA\u003e\n```\n\nresolve a merge conflict (after manually editing the merge_file)\n```\ngit apply-sql\n```\n\n## INSTALLING GIT-SQLITE\nDependencies:\n* sqlite3\n* sqldiff\n* bash\n* git\n* autotools (build-essential debian repositories)\n\nAs of Debian Stretch (release 9), sqldiff is included with the default sqlite3 apt package.\n\nIf it is not available for your distribution, see `INSTALLING SQLDIFF` below.\n\nIf you are installing from the git src:\n```\n./reconf\n./configure\nsudo make install\n```\n\nIf you are installing from a release, do this:\n```\n./configure\nsudo make install\n```\n\n## INSTALLING SQLDIFF\n\n```\nwget https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=release\ntar xzf sqlite.tar.gz?r=release\ncd sqlite\n./configure\nmake sqldiff\nsudo install sqldiff /usr/local/bin/\n```\n\nSee https://www.sqlite.org/download.html for more information\n\n## KNOWN ISSUES\n* can't detect diffed triggers and views (should be resolved upstream in sqldiff)\n* new columns from alter table dont have explicit types\n* merge conflicts don't interleave\n\n## TODOS\n* uuid version 1 style\n* cleanup diff headers to be closer to what git does\n* test cherry-picking\n\n## NOTES\n* `git gc` may need to be run periodically\n","funding_links":[],"categories":["Shell","Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannadayr%2Fgit-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcannadayr%2Fgit-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannadayr%2Fgit-sqlite/lists"}