Documentation ¶
Index ¶
- func DestroyExecutor(executor *Executor) error
- type Config
- type Executor
- func (executor *Executor) ExecuteRawSql(sqlStr string, args ...any) ([]sql.Result, error)
- func (executor *Executor) ExecuteRawSqlTemplate(sqlStr string, executeParams map[string]any, args ...any) ([]sql.Result, error)
- func (executor *Executor) ExecuteRawSqlTemplateWithRowsAffected(sqlStr string, executeParams map[string]any, args ...any) ([]sql.Result, int64, error)
- func (executor *Executor) ExecuteRawSqlWithRowsAffected(sqlStr string, args ...any) ([]sql.Result, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyExecutor ¶ added in v0.11.21
Types ¶
type Config ¶
type Config struct { Token string `json:"token" yaml:"token"` Address string `json:"address" yaml:"address"` HttpPort string `json:"http_port" yaml:"http_port"` GrpcPort string `json:"grpc_port" yaml:"grpc_port"` Namespace string `json:"namespace" yaml:"namespace"` DataSource string `json:"data_source" yaml:"data_source"` HttpTimeoutSec int `json:"http_timeout_sec" yaml:"http_timeout_sec"` }
type Executor ¶ added in v0.11.21
type Executor struct{}
func NewExecutor ¶ added in v0.11.21
func (*Executor) ExecuteRawSql ¶ added in v0.11.21
func (*Executor) ExecuteRawSqlTemplate ¶ added in v0.11.21
func (*Executor) ExecuteRawSqlTemplateWithRowsAffected ¶ added in v1.5.3
Click to show internal directories.
Click to hide internal directories.