yamldb

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YamlDB

type YamlDB struct {
	Path    string
	PathNew string
	// contains filtered or unexported fields
}

YamlDB represents a YAML file database instance

func (*YamlDB) Transaction

func (db *YamlDB) Transaction(callback func() bool, marshaller func() ([]byte, error)) error

Transaction executes the given callback and safely saves the data after they are modified within the callback

Jump to

Keyboard shortcuts

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