address

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Id         int64  `db:"ID" structs:"-"`
	Building   int64  `db:"BUILDING" structs:"building"`
	Street     string `db:"STREET" structs:"street"`
	City       string `db:"CITY" structs:"city"`
	District   string `db:"DISTRICT" structs:"district"`
	Region     string `db:"REGION" structs:"region"`
	PostalCode string `db:"POSTAL_CODE" structs:"postal_code"`
}

type Query

type Query interface {
	New() Query

	Get() (*Address, error)
	Select() ([]Address, error)

	Insert(Address) (Address, error)
	Update(Address) (Address, error)
	Delete(id int64) error

	Page(pageParams pgdb.OffsetPageParams) Query

	FilterById(ids ...int64) Query
	FilterByBuilding(numbers ...int64) Query
	FilterByStreet(streets ...string) Query
	FilterByCity(cities ...string) Query
	FilterByDistrict(districts ...string) Query
	FilterByRegion(regions ...string) Query
	FilterByPostalCode(codes ...string) Query
}

func NewQuery

func NewQuery(db *sqlx.DB) Query

Jump to

Keyboard shortcuts

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