queryeditor

package
v0.0.0-...-68360ed Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouter

func RegisterRouter(r *gin.RouterGroup, auth *user.AuthService, s *Service)

Types

type RunRequest

type RunRequest struct {
	Statements string `json:"statements" example:"show databases;"`
	MaxRows    int    `json:"max_rows" example:"1000"`
}

type RunResponse

type RunResponse struct {
	ErrorMsg    string          `json:"error_msg"`
	ColumnNames []string        `json:"column_names"`
	Rows        [][]interface{} `json:"rows"`
	ExecutionMs int64           `json:"execution_ms"`
	ActualRows  int             `json:"actual_rows"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(lc fx.Lifecycle, p ServiceParams) *Service

type ServiceParams

type ServiceParams struct {
	fx.In
	Config     *config.Config
	TiDBClient *tidb.Client
}

Jump to

Keyboard shortcuts

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