json

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilFile = fmt.Errorf("no file")
	ErrNoPath  = fmt.Errorf("no file path")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Path        string
	WithComment string
}

type Json

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

func New

func New(config *Config) (*Json, error)

func (*Json) Close

func (j *Json) Close() error

func (*Json) Drop

func (j *Json) Drop() error

func (*Json) Lock

func (j *Json) Lock() error

func (*Json) Open

func (j *Json) Open(filePath string) (database.Driver, error)

func (*Json) Run

func (j *Json) Run(migration io.Reader) error

func (*Json) SetVersion added in v1.0.21

func (j *Json) SetVersion(version int, dirty bool) error

func (*Json) Unlock

func (j *Json) Unlock() error

func (*Json) Version

func (j *Json) Version() (int, bool, error)

Jump to

Keyboard shortcuts

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