postgres

package
v0.0.0-...-25eaeca Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatastore

func NewDatastore(host string, port string, user string, name string, password string) (sql_datastore.Datastore, error)

func NewShopRepository

func NewShopRepository(executor sql_datastore.Executor) *shopRepository

Types

type Shop

type Shop struct {
	ID      uuid.UUID `db:"id"`
	Name    string    `db:"name"`
	Address string    `db:"address"`
	Lat     float32   `db:"lat"`
	Lng     float32   `db:"long"`
}

Jump to

Keyboard shortcuts

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