transacdb

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertOldDatabase

func ConvertOldDatabase(db *map[string]record.Record, targetfile string) (e error)

func Lock

func Lock()

func Unlock

func Unlock()

Types

type Transaction

type Transaction interface {
	AddNewChangeAddRecord(r record.Record) (e error)
	AddNewChangeDeleteRecord(r record.Record) (e error)
	AddNewChangeAddRevision(rev record.Revision, to record.Record) (e error)
	AddNewChangeDeleteRevision(rev record.Revision, from record.Record) (e error)
	AddNewChangeAddChunk(c record.Chunk, to record.Revision, in record.Record) (e error)
	AddNewChangeDeleteChunk(c record.Chunk, from record.Revision, in record.Record) (e error)

	Commit() (e error)
}

type TransactionalDatabase

type TransactionalDatabase interface {
	NewTransaction() (t Transaction)
	CheckoutRecord(filepath string) (found record.Record, e error)
	ListRecordsWithSize() (filelist []struct {
		Path string
		Size uint64
	})
	// contains filtered or unexported methods
}

func Get

Jump to

Keyboard shortcuts

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