store

package
v0.0.0-...-d99614c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store wraps our sqlite interaction

func Open

func Open(path string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Load

func (s *Store) Load(id string) (models.Order, error)

func (*Store) Save

func (s *Store) Save(request models.Order) (created bool, err error)

func (*Store) Search

func (s *Store) Search(query string) ([]models.Order, error)

Jump to

Keyboard shortcuts

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