{"id":13514261,"url":"https://github.com/src-d/gitbase","last_synced_at":"2026-04-06T02:04:36.829Z","repository":{"id":42401834,"uuid":"68594286","full_name":"src-d/gitbase","owner":"src-d","description":"SQL interface to git repositories, written in Go. https://docs.sourced.tech/gitbase","archived":false,"fork":false,"pushed_at":"2023-10-19T12:50:23.000Z","size":153193,"stargazers_count":2077,"open_issues_count":18,"forks_count":124,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-07T04:12:40.391Z","etag":null,"topics":["ast","git","golang","sql","sql-interface"],"latest_commit_sha":null,"homepage":"","language":"Go","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/src-d.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-19T10:14:13.000Z","updated_at":"2025-04-06T13:35:16.000Z","dependencies_parsed_at":"2024-01-06T01:03:41.982Z","dependency_job_id":"b71041ce-14f2-446e-bf29-77185daaee66","html_url":"https://github.com/src-d/gitbase","commit_stats":{"total_commits":829,"total_committers":35,"mean_commits":"23.685714285714287","dds":0.6887816646562124,"last_synced_commit":"c9a16f3b6d8171b595570787fbc2170325c08b48"},"previous_names":["sqle/gitql","gitql/gitql","mvader/gitql","src-d/gitquery"],"tags_count":70,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgitbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgitbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgitbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgitbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/src-d","download_url":"https://codeload.github.com/src-d/gitbase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248901561,"owners_count":21180449,"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":["ast","git","golang","sql","sql-interface"],"created_at":"2024-08-01T05:00:50.827Z","updated_at":"2026-04-06T02:04:36.821Z","avatar_url":"https://github.com/src-d.png","language":"Go","readme":"# gitbase [![GitHub version](https://badge.fury.io/gh/src-d%2Fgitbase.svg)](https://github.com/src-d/gitbase/releases) [![Build Status](https://travis-ci.com/src-d/gitbase.svg?branch=master)](https://travis-ci.com/src-d/gitbase) [![codecov](https://codecov.io/gh/src-d/gitbase/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/gitbase) [![GoDoc](https://godoc.org/gopkg.in/src-d/gitbase.v0?status.svg)](https://godoc.org/gopkg.in/src-d/gitbase.v0) [![Go Report Card](https://goreportcard.com/badge/github.com/src-d/gitbase)](https://goreportcard.com/report/github.com/src-d/gitbase)\n\n**gitbase**, is a SQL database interface to Git repositories.\n\nThis project is now part of [source{d} Community Edition](https://sourced.tech/products/community-edition/),\nwhich provides the simplest way to get started with a single command.\nVisit [https://docs.sourced.tech/community-edition](https://docs.sourced.tech/community-edition) for more information.\n\nIt can be used to perform SQL queries about the Git history and\nabout the [Universal AST](https://doc.bblf.sh/) of the code itself. gitbase is being built to work on top of any number of git repositories.\n\ngitbase implements the *MySQL* wire protocol, it can be accessed using any MySQL\nclient or library from any language.\n\n[src-d/go-mysql-server](https://github.com/src-d/go-mysql-server) is the SQL engine implementation used by `gitbase`.\n\n## Status\n\nThe project is currently in **alpha** stage, meaning it's still lacking performance in a number of cases but we are working hard on getting a performant system able to process thousands of repositories in a single node. Stay tuned!\n\n## Examples\n\nYou can see some [query examples](/docs/using-gitbase/examples.md) in [gitbase documentation](/docs).\n\n## Motivation and scope\n\ngitbase was born to ease the analysis of git repositories and their source code.\n\nAlso, making it MySQL compatible, we provide the maximum compatibility between languages and existing tools.\n\nIt comes as a single self-contained binary and it can be used as a standalone service. The service is able to process local repositories and integrates with existing tools and frameworks to simplify source code analysis on a large scale.\nThe integration with Apache Spark is planned and is currently under active development.\n\n## Further reading\n\nFrom here, you can directly go to [getting started](/docs/using-gitbase/getting-started.md).\n\n## License\n\nApache License Version 2.0, see [LICENSE](LICENSE)\n","funding_links":[],"categories":["开源类库","Go","Open source library"],"sub_categories":["Git"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-d%2Fgitbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrc-d%2Fgitbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-d%2Fgitbase/lists"}