jsonfiledb

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepoPath

func RepoPath(repo *git.Repo) string

Types

type DB

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

func OpenPath

func OpenPath(filepath string) (*DB, error)

OpenPath opens a JSON file database at the given path. If the file does not exist, it is created (as well as all ancestor directories).

func OpenRepo

func OpenRepo(repo *git.Repo) (*DB, error)

func (*DB) ReadTx

func (d *DB) ReadTx() meta.ReadTx

func (*DB) WriteTx

func (d *DB) WriteTx() meta.WriteTx

Jump to

Keyboard shortcuts

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