Documentation ¶
Overview ¶
Code generated by SalGen. DO NOT EDIT.
Index ¶
- type BaseAuthor
- type CreateAuthorReq
- type CreateAuthorResp
- type Foo
- type GetAuthorsReq
- type GetAuthorsResp
- type GetBooksReq
- type GetBooksResp
- type SalStore
- func (s *SalStore) BeginTx(ctx context.Context, opts *sql.TxOptions) (Store, error)
- func (s *SalStore) CreateAuthor(ctx context.Context, req CreateAuthorReq) (CreateAuthorResp, error)
- func (s *SalStore) CreateAuthorPtr(ctx context.Context, req CreateAuthorReq) (*CreateAuthorResp, error)
- func (s *SalStore) GetAuthors(ctx context.Context, req GetAuthorsReq) ([]*GetAuthorsResp, error)
- func (s *SalStore) GetBooks(ctx context.Context, req GetBooksReq) ([]*GetBooksResp, error)
- func (s *SalStore) SameName(ctx context.Context, req SameNameReq) (*SameNameResp, error)
- func (s *SalStore) Tx() sal.Transaction
- func (s *SalStore) UpdateAuthor(ctx context.Context, req *UpdateAuthorReq) error
- func (s *SalStore) UpdateAuthorResult(ctx context.Context, req *UpdateAuthorReq) (sql.Result, error)
- type SameNameReq
- type SameNameResp
- type Store
- type Tags
- type UpdateAuthorReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAuthor ¶ added in v0.12.0
type CreateAuthorReq ¶
type CreateAuthorReq struct {
BaseAuthor
}
func (*CreateAuthorReq) Query ¶
func (cr *CreateAuthorReq) Query() string
type CreateAuthorResp ¶
type GetAuthorsReq ¶
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 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) 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
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 Store ¶
type Store interface { BeginTx(ctx context.Context, opts *sql.TxOptions) (Store, error) sal.Txer CreateAuthor(context.Context, CreateAuthorReq) (CreateAuthorResp, error) CreateAuthorPtr(context.Context, CreateAuthorReq) (*CreateAuthorResp, error) GetAuthors(context.Context, GetAuthorsReq) ([]*GetAuthorsResp, error) UpdateAuthor(context.Context, *UpdateAuthorReq) error UpdateAuthorResult(context.Context, *UpdateAuthorReq) (sql.Result, error) SameName(context.Context, SameNameReq) (*SameNameResp, error) GetBooks(context.Context, GetBooksReq) ([]*GetBooksResp, error) }
type UpdateAuthorReq ¶
type UpdateAuthorReq struct { ID int64 BaseAuthor }
func (*UpdateAuthorReq) Query ¶
func (r *UpdateAuthorReq) Query() string
Click to show internal directories.
Click to hide internal directories.