Documentation ¶
Index ¶
- type Basket
- type BasketItem
- type Buyer
- type Category
- type CreatePetParams
- type DBTX
- type ListPetsParams
- type NullOauthProvider
- type NullOrderStatus
- type OauthProvider
- type Order
- type OrderItem
- type OrderStatus
- type Pet
- type PetTag
- type Queries
- func (q *Queries) CountPets(ctx context.Context) (int64, error)
- func (q *Queries) CreatePet(ctx context.Context, arg CreatePetParams) (int64, error)
- func (q *Queries) DeletePet(ctx context.Context, id int64) error
- func (q *Queries) GetPet(ctx context.Context, id int64) (Pet, error)
- func (q *Queries) ListPets(ctx context.Context, arg ListPetsParams) ([]Pet, error)
- func (q *Queries) UpdatePet(ctx context.Context, arg UpdatePetParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Tag
- type UpdatePetParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePetParams ¶
type ListPetsParams ¶
type NullOauthProvider ¶
type NullOauthProvider struct { OauthProvider OauthProvider Valid bool // Valid is true if OauthProvider is not NULL }
func (*NullOauthProvider) Scan ¶
func (ns *NullOauthProvider) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullOrderStatus ¶
type NullOrderStatus struct { OrderStatus OrderStatus Valid bool // Valid is true if OrderStatus is not NULL }
func (*NullOrderStatus) Scan ¶
func (ns *NullOrderStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type OauthProvider ¶
type OauthProvider string
const (
OauthProviderGoogle OauthProvider = "google"
)
func (*OauthProvider) Scan ¶
func (e *OauthProvider) Scan(src interface{}) error
type OrderStatus ¶
type OrderStatus string
const ( OrderStatusSubmitted OrderStatus = "Submitted" OrderStatusPaid OrderStatus = "Paid" OrderStatusShipped OrderStatus = "Shipped" OrderStatusCancelled OrderStatus = "Cancelled" )
func (*OrderStatus) Scan ¶
func (e *OrderStatus) Scan(src interface{}) error
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
type UpdatePetParams ¶
Click to show internal directories.
Click to hide internal directories.