Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 630 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 630 Bytes

go-git-sql

An SQL-backed storage implementation for 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.

Creating SQL tables

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
);