data_service

package
v1.1.0-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyExecutor added in v0.11.21

func DestroyExecutor(executor *Executor) error

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 NewExecutor(conf *Config) (*Executor, error)

func (*Executor) ExecuteRawSql added in v0.11.21

func (executor *Executor) ExecuteRawSql(sqlStr string, args ...any) ([]sql.Result, error)

func (*Executor) ExecuteRawSqlTemplate added in v0.11.21

func (executor *Executor) ExecuteRawSqlTemplate(sqlStr string, executeParams map[string]any, args ...any) ([]sql.Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL