gomongo

package
v0.0.0-...-2847b59 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func New

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

New creates a new database at the specified directory location

func (*Driver) Close

func (d *Driver) Close() error

func (*Driver) Delete

func (d *Driver) Delete(document, resource string) error

func (*Driver) Read

func (d *Driver) Read(document, resource string, v interface{}) error

Read a record from the database

func (*Driver) Write

func (d *Driver) Write(document, resource string, v []byte) error

Write locks the database and attempts to write the record to the database under the [collection] specified with the [resource] name given

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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