sqlstore

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManufacturerRepository

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

func (*ManufacturerRepository) Create

func (r *ManufacturerRepository) Create(manufacturer *model.Manufacturer) error

func (*ManufacturerRepository) FindByWMI

func (r *ManufacturerRepository) FindByWMI(wmi string) (*model.Manufacturer, error)

type Store

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

func New

func New(conf *config.Database) (*Store, error)

func TestDB

func TestDB(t *testing.T, conf *config.Database) (*Store, func(...string))

TestDB returns special test connection and teardown function.

func (*Store) Manufacturer

func (s *Store) Manufacturer() store.ManufacturerRepository

Jump to

Keyboard shortcuts

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