bookstore

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by SalGen. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAuthor added in v0.12.0

type BaseAuthor struct {
	Name string
	Desc string
}

type CreateAuthorReq

type CreateAuthorReq struct {
	BaseAuthor
}

func (*CreateAuthorReq) Query

func (cr *CreateAuthorReq) Query() string

type CreateAuthorResp

type CreateAuthorResp struct {
	ID        int64
	CreatedAt time.Time
}

type Foo added in v0.13.0

type Foo struct {
	Bar string
}

type GetAuthorsReq

type GetAuthorsReq struct {
	ID int64 `sql:"id"`
	Tags
}

func (GetAuthorsReq) ProcessRow

func (r GetAuthorsReq) ProcessRow(rowMap sal.RowMap)

func (*GetAuthorsReq) Query

func (r *GetAuthorsReq) Query() string

type GetAuthorsResp

type GetAuthorsResp struct {
	ID        int64     `sql:"id"`
	CreatedAt time.Time `sql:"created_at"`
	Name      string    `sql:"name"`
	Desc      string    `sql:"desc"`
	Tags
}

func (*GetAuthorsResp) ProcessRow

func (r *GetAuthorsResp) ProcessRow(rowMap sal.RowMap)

type GetBooksReq added in v1.2.1

type GetBooksReq struct{}

func (*GetBooksReq) Query added in v1.2.1

func (r *GetBooksReq) Query() string

type GetBooksResp added in v1.2.1

type GetBooksResp struct {
	ID    int64  `sql:"id"`
	Title string `sql:"title"`
}

type SalStore added in v0.9.1

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

func NewStore added in v0.9.1

func NewStore(h sal.QueryHandler, options ...sal.ClientOption) *SalStore

func (*SalStore) BeginTx added in v0.9.1

func (s *SalStore) BeginTx(ctx context.Context, opts *sql.TxOptions) (Store, error)

func (*SalStore) CreateAuthor added in v0.9.1

func (s *SalStore) CreateAuthor(ctx context.Context, req CreateAuthorReq) (CreateAuthorResp, error)

func (*SalStore) CreateAuthorPtr added in v0.13.0

func (s *SalStore) CreateAuthorPtr(ctx context.Context, req CreateAuthorReq) (*CreateAuthorResp, error)

func (*SalStore) GetAuthors added in v0.9.1

func (s *SalStore) GetAuthors(ctx context.Context, req GetAuthorsReq) ([]*GetAuthorsResp, error)

func (*SalStore) GetBooks added in v1.2.1

func (s *SalStore) GetBooks(ctx context.Context, req GetBooksReq) ([]*GetBooksResp, error)

func (*SalStore) SameName added in v0.13.0

func (s *SalStore) SameName(ctx context.Context, req SameNameReq) (*SameNameResp, error)

func (*SalStore) Tx added in v0.9.1

func (s *SalStore) Tx() sal.Transaction

func (*SalStore) UpdateAuthor added in v0.9.1

func (s *SalStore) UpdateAuthor(ctx context.Context, req *UpdateAuthorReq) error

func (*SalStore) UpdateAuthorResult added in v1.2.0

func (s *SalStore) UpdateAuthorResult(ctx context.Context, req *UpdateAuthorReq) (sql.Result, error)

type SameNameReq added in v0.13.0

type SameNameReq struct{}

func (SameNameReq) Query added in v0.13.0

func (r SameNameReq) Query() string

type SameNameResp added in v0.13.0

type SameNameResp struct {
	Bar string
	Foo
}

type Tags added in v0.12.0

type Tags struct {
	Tags []int64 `sql:"tags"`
}

type UpdateAuthorReq

type UpdateAuthorReq struct {
	ID int64
	BaseAuthor
}

func (*UpdateAuthorReq) Query

func (r *UpdateAuthorReq) Query() string

Jump to

Keyboard shortcuts

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