Documentation ¶
Index ¶
- type DBProvider
- type Executor
- func (o Executor) Clone(opts []Option) *options
- func (e *Executor) Execute(ctx context.Context) error
- func (e *Executor) ExpandAndExecute(ctx context.Context) (*executor.Session, error)
- func (e *Executor) HandlerSession(ctx context.Context, opts ...Option) (*extension.Session, error)
- func (e *Executor) NewHandlerSession(ctx context.Context, opts ...Option) (handler.Session, error)
- func (o Executor) Options(opts []Option) []Option
- func (e *Executor) Session(ctx context.Context) (*executor.Session, error)
- type Httper
- func (h *Httper) FailWithCode(statusCode int, err error) error
- func (h *Httper) NewRequest(ctx context.Context, opts ...hstate.Option) (*http.Request, error)
- func (h *Httper) Redirect(ctx context.Context, route *dhttp.Route, request *http.Request) error
- func (h *Httper) RequestOf(ctx context.Context, any interface{}) (*http.Request, error)
- type Option
- type Service
- func (s *Service) Allocate(ctx context.Context, tableName string, dest interface{}, selector string) error
- func (s *Service) CanBatch(table string) bool
- func (s *Service) CanBatchGlobally() bool
- func (s *Service) Db(ctx context.Context) (*sql.DB, error)
- func (s *Service) Delete(tableName string, data interface{}) error
- func (s *Service) Dialect(ctx context.Context) (*info.Dialect, error)
- func (s *Service) Execute(DML string, options ...sqlx.ExecutorOption) error
- func (s *Service) Flush(ctx context.Context, tableName string) error
- func (s *Service) Insert(tableName string, data interface{}) error
- func (s *Service) Load(ctx context.Context, tableName string, data interface{}) error
- func (s *Service) Read(ctx context.Context, dest interface{}, SQL string, params ...interface{}) error
- func (s *Service) Tx(ctx context.Context) (*sql.Tx, error)
- func (s *Service) Update(tableName string, data interface{}) error
- func (s *Service) Validator() *validator.Service
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBProvider ¶
type DBProvider struct {
// contains filtered or unexported fields
}
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func (*Executor) ExpandAndExecute ¶
func (*Executor) HandlerSession ¶
func (*Executor) NewHandlerSession ¶
type Httper ¶ added in v0.9.12
type Httper struct {
// contains filtered or unexported fields
}
func (*Httper) FailWithCode ¶ added in v0.9.12
func (*Httper) NewRequest ¶ added in v0.9.12
Source Files ¶
Click to show internal directories.
Click to hide internal directories.