store

package
v0.11.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const BathSize = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvStore

type CsvStore struct {
	// contains filtered or unexported fields
}

func NewCsvStore

func NewCsvStore(dir string) (*CsvStore, error)

func (*CsvStore) Close

func (c *CsvStore) Close() error

func (*CsvStore) CommitFiles

func (c *CsvStore) CommitFiles(file *code.CommitFile) error

func (*CsvStore) CommitParents

func (c *CsvStore) CommitParents(pp []*code.CommitParent) error

func (*CsvStore) Commits

func (c *CsvStore) Commits(commit *code.Commit) error

func (*CsvStore) Refs

func (c *CsvStore) Refs(ref *code.Ref) error

func (*CsvStore) RepoCommits

func (c *CsvStore) RepoCommits(repoCommit *code.RepoCommit) error

type Database

type Database struct {
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(db *gorm.DB) *Database

func (*Database) Close

func (d *Database) Close() error

func (*Database) CommitFiles

func (d *Database) CommitFiles(file *code.CommitFile) error

func (*Database) CommitParents

func (d *Database) CommitParents(pp []*code.CommitParent) error

func (*Database) Commits

func (d *Database) Commits(commit *code.Commit) error

func (*Database) Refs

func (d *Database) Refs(ref *code.Ref) error

func (*Database) RepoCommits

func (d *Database) RepoCommits(repoCommit *code.RepoCommit) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL