Categorygithub.com/pandemicsyn/git-foundation
modulepackage
0.0.0-20220821232647-0b56352520da
Repository: https://github.com/pandemicsyn/git-foundation.git
Documentation: pkg.go.dev

# README

git-foundation - a FoundationDB backend for go-git

A FoundationDB storage backend for use with go-git.

This package is a WIP and is a naive implementation of go-git's storer interface. Its roughly modeled on the go-git memory implementation but obviously using FoundationDB instead of in mem semantics.

Current implementation status:

  • storer.ReferenceStorer
  • storer.ShallowStorer
  • storer.IndexStorer
  • config.ConfigStorer
  • ModuleStore
  • EncodedObjectStorer (Mostly working including sharding objects within foundation, missing IterEncodedObjects implementation)

See https://github.com/go-git/go-git/tree/master/plumbing/storer to figure out what this means.

Note I don't get to work with Go day to day anymore, this package mostly exists as an execuse for me to write some Go.

Installation

foundationdb install is a bit...rough but this is working with the following

foundationdb 7.1.17 pre-release installed via debs
go get -u github.com/apple/foundationdb/bindings/go/src/[email protected]
go get .

handy fdb cli commands while testing

# list first 25 keys
make ls-keys
--
# delete all the things!
fdb> writemode on
fdb> clearrange "" \xFF
fdb> getrange "" \xFF

# Packages

No description provided by the author