Documentation ¶
Index ¶
- Variables
- 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 Handler
- 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 ¶
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 Handler ¶
type Handler struct { Type string Arguments []string InputType string OutputType string Output reflect.Type // contains filtered or unexported fields }
func NewHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.