Documentation ¶
Index ¶
- type Deleter
- type Executor
- type ExecutorOption
- type ExecutorOptions
- type Flusher
- type Inserter
- type Loader
- type Option
- type Options
- type ReadOptions
- type Reader
- type ReaderOption
- type Sequencer
- type Service
- func (s Service) Allocate(ctx context.Context, tableName string, dest interface{}, selector string) error
- func (s Service) Db(ctx context.Context) (*sql.DB, error)
- func (s Service) Delete(tableName string, data interface{}) error
- func (s Service) Execute(DML string, options ...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 Sqlx
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface { Flusher Execute(DML string, options ...ExecutorOption) error }
type ExecutorOption ¶
type ExecutorOption func(o *ExecutorOptions)
func WithExecutorArgs ¶
func WithExecutorArgs(args ...interface{}) ExecutorOption
type ExecutorOptions ¶
type ExecutorOptions struct {
Args []interface{}
}
type ReadOptions ¶
type ReadOptions struct {
Args []interface{}
}
type ReaderOption ¶
type ReaderOption func(o *ReadOptions)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.