ewoDB

package module
v0.0.0-...-c2e1f92 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 8 Imported by: 0

README

ewoDB

Based on abhinav-TB/dantdb

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCollection = errors.New("missing collection")
	ErrNoResource   = errors.New("missing resource")
)

Functions

This section is empty.

Types

type Driver

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

func New

func New(dir string) (*Driver, error)

func (*Driver) DeleteCollection

func (d *Driver) DeleteCollection(collection string) error

func (*Driver) DeleteResource

func (d *Driver) DeleteResource(collection, resource string) error

func (*Driver) Read

func (d *Driver) Read(collection, resource string, v any) error

func (*Driver) ReadAll

func (d *Driver) ReadAll(collection string) ([]string, error)

func (*Driver) Write

func (d *Driver) Write(collection, resource string, v any) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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