https://github.com/emphori/go-git-sql
A barebones SQL-backed storage implementation for go-git
https://github.com/emphori/go-git-sql
git git-sql
Last synced: 5 months ago
JSON representation
A barebones SQL-backed storage implementation for go-git
- Host: GitHub
- URL: https://github.com/emphori/go-git-sql
- Owner: emphori
- License: mit
- Created: 2024-02-06T23:08:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T11:48:47.000Z (almost 2 years ago)
- Last Synced: 2024-12-25T15:14:20.208Z (about 1 year ago)
- Topics: git, git-sql
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-git-sql
An SQL-backed storage implementation for [go-git][go-git].
[go-git]: https://github.com/go-git/go-git
> [!WARNING]
>
> This project is currently a work in progress, and may not include the
> functionality you expect. Please refer to [this milestone] for more details.
>
> [this milestone]: https://github.com/emphori/go-git-sql/milestone/1
## Creating SQL tables
```sql
CREATE TABLE IF NOT EXISTS "objects" (
object_type BIGINT,
object_hash VARCHAR,
object_size BIGINT
cont BYTEA,
);
CREATE TABLE IF NOT EXISTS "refs" (
ref_type BIGINT,
ref_hash VARCHAR,
ref_name VARCHAR,
target VARCHAR
);
```