store

package
v0.0.0-...-b0e2d2c Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const StoreTableName = "store"

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db *sql.DB) *Repository

func (*Repository) CreateStore

func (r *Repository) CreateStore(slug string, name string, website string, tx *sql.Tx) (int64, error)

func (*Repository) FindStoreBySlug

func (r *Repository) FindStoreBySlug(slug string, tx *sql.Tx) (*Store, error)

func (*Repository) FindStores

func (r *Repository) FindStores() ([]Store, error)

type Store

type Store struct {
	StoreId int64  `db:"store_id"`
	Slug    string `db:"slug"`
	Name    string `db:"name"`
	Website string `db:"website"`
	Active  bool   `db:"active"`
}

Jump to

Keyboard shortcuts

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