git-sql-0.0.1 is not a library.
Git SQL
This is an experimental implementation of Git storage and operations on top of PostgreSQL.
Why
Git is a very flexible platform for version control and content-addressable storage. GitSQL aims to take advantage of the server-side abilities of PostgreSQL to implement Git operations using PostgreSQL features. This is still experimental, and is not recommended for production use.
Installation
Install from Git:
Install from crates.io:
Usage
- Create a database in PostgreSQL, such as
gitdb
. - Create a configuration file as
gitdb.toml
:
# Repositories are specified under named tables.
[]
# The URL to connect to the database.
= "postgres://127.0.0.1/gitdb"
# A path to a local repository, used to update the SQL repository.
= "/path/to/my/local/repo"
# Git Server Configuration
# URL format: http://myhost:port/mygitrepo
[]
# Binds to the given host and port.
= "0.0.0.0:3020"
- Initialize the GitSQL schema:
- Import the Git repository into the SQL database:
- Run the Git server:
- Clone the repository: