proto

package
v1.2210.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

analysis_driver.proto
driver.proto
query_driver.proto

It has these top-level messages:

AnalysisDriverInitRequest
ListTablesInSchemaRequest
ListTablesInSchemaResponse
Table
GetTableMetaByTableNameRequest
GetTableMetaByTableNameResponse
TableItem
ColumnsInfo
IndexesInfo
Row
AnalysisInfoInTableFormat
AnalysisInfoHead
GetTableMetaBySQLRequest
GetTableMetaBySQLResponse
TableMetaItemBySQL
ExplainRequest
ExplainResponse
ExplainClassicResult
DSN
Rule
Param
InitRequest
Empty
ExecRequest
ExecResponse
TxRequest
TxResponse
DatabasesResponse
ParseRequest
Node
ParseResponse
AuditRequest
AuditResult
AuditResponse
GenRollbackSQLRequest
GenRollbackSQLResponse
MetasResponse
QueryPrepareRequest
QueryPrepareConf
QueryPrepareResponse
QueryRequest
QueryConf
QueryResponse
QueryResultRow
QueryResultValue

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertProtoParamToParam added in v1.2203.0

func ConvertProtoParamToParam(p []*Param) params.Params

func RegisterAnalysisDriverServer added in v1.2207.0

func RegisterAnalysisDriverServer(s *grpc.Server, srv AnalysisDriverServer)

func RegisterDriverServer

func RegisterDriverServer(s *grpc.Server, srv DriverServer)

func RegisterQueryDriverServer added in v1.2206.0

func RegisterQueryDriverServer(s *grpc.Server, srv QueryDriverServer)

Types

type AnalysisDriverClient added in v1.2207.0

type AnalysisDriverClient interface {
	// Init should be called at first before calling following methods.
	// It will pass some necessary info to plugin server. In the beginning,
	// we consider that put this info to the executable binary environment.
	// We put all communication on gRPC for unification in the end.
	Init(ctx context.Context, in *AnalysisDriverInitRequest, opts ...grpc.CallOption) (*Empty, error)
	ListTablesInSchema(ctx context.Context, in *ListTablesInSchemaRequest, opts ...grpc.CallOption) (*ListTablesInSchemaResponse, error)
	GetTableMetaByTableName(ctx context.Context, in *GetTableMetaByTableNameRequest, opts ...grpc.CallOption) (*GetTableMetaByTableNameResponse, error)
	GetTableMetaBySQL(ctx context.Context, in *GetTableMetaBySQLRequest, opts ...grpc.CallOption) (*GetTableMetaBySQLResponse, error)
	Explain(ctx context.Context, in *ExplainRequest, opts ...grpc.CallOption) (*ExplainResponse, error)
}

func NewAnalysisDriverClient added in v1.2207.0

func NewAnalysisDriverClient(cc *grpc.ClientConn) AnalysisDriverClient

type AnalysisDriverInitRequest added in v1.2207.0

type AnalysisDriverInitRequest struct {
	Dsn *DSN `protobuf:"bytes,1,opt,name=dsn" json:"dsn,omitempty"`
}

func (*AnalysisDriverInitRequest) Descriptor added in v1.2207.0

func (*AnalysisDriverInitRequest) Descriptor() ([]byte, []int)

func (*AnalysisDriverInitRequest) GetDsn added in v1.2207.0

func (m *AnalysisDriverInitRequest) GetDsn() *DSN

func (*AnalysisDriverInitRequest) ProtoMessage added in v1.2207.0

func (*AnalysisDriverInitRequest) ProtoMessage()

func (*AnalysisDriverInitRequest) Reset added in v1.2207.0

func (m *AnalysisDriverInitRequest) Reset()

func (*AnalysisDriverInitRequest) String added in v1.2207.0

func (m *AnalysisDriverInitRequest) String() string

type AnalysisDriverServer added in v1.2207.0

type AnalysisDriverServer interface {
	// Init should be called at first before calling following methods.
	// It will pass some necessary info to plugin server. In the beginning,
	// we consider that put this info to the executable binary environment.
	// We put all communication on gRPC for unification in the end.
	Init(context.Context, *AnalysisDriverInitRequest) (*Empty, error)
	ListTablesInSchema(context.Context, *ListTablesInSchemaRequest) (*ListTablesInSchemaResponse, error)
	GetTableMetaByTableName(context.Context, *GetTableMetaByTableNameRequest) (*GetTableMetaByTableNameResponse, error)
	GetTableMetaBySQL(context.Context, *GetTableMetaBySQLRequest) (*GetTableMetaBySQLResponse, error)
	Explain(context.Context, *ExplainRequest) (*ExplainResponse, error)
}

type AnalysisInfoHead added in v1.2207.0

type AnalysisInfoHead struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Desc string `protobuf:"bytes,2,opt,name=desc" json:"desc,omitempty"`
}

func (*AnalysisInfoHead) Descriptor added in v1.2207.0

func (*AnalysisInfoHead) Descriptor() ([]byte, []int)

func (*AnalysisInfoHead) GetDesc added in v1.2207.0

func (m *AnalysisInfoHead) GetDesc() string

func (*AnalysisInfoHead) GetName added in v1.2207.0

func (m *AnalysisInfoHead) GetName() string

func (*AnalysisInfoHead) ProtoMessage added in v1.2207.0

func (*AnalysisInfoHead) ProtoMessage()

func (*AnalysisInfoHead) Reset added in v1.2207.0

func (m *AnalysisInfoHead) Reset()

func (*AnalysisInfoHead) String added in v1.2207.0

func (m *AnalysisInfoHead) String() string

type AnalysisInfoInTableFormat added in v1.2207.0

type AnalysisInfoInTableFormat struct {
	Columns []*AnalysisInfoHead `protobuf:"bytes,1,rep,name=columns" json:"columns,omitempty"`
	Rows    []*Row              `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"`
}

func (*AnalysisInfoInTableFormat) Descriptor added in v1.2207.0

func (*AnalysisInfoInTableFormat) Descriptor() ([]byte, []int)

func (*AnalysisInfoInTableFormat) GetColumns added in v1.2207.0

func (m *AnalysisInfoInTableFormat) GetColumns() []*AnalysisInfoHead

func (*AnalysisInfoInTableFormat) GetRows added in v1.2207.0

func (m *AnalysisInfoInTableFormat) GetRows() []*Row

func (*AnalysisInfoInTableFormat) ProtoMessage added in v1.2207.0

func (*AnalysisInfoInTableFormat) ProtoMessage()

func (*AnalysisInfoInTableFormat) Reset added in v1.2207.0

func (m *AnalysisInfoInTableFormat) Reset()

func (*AnalysisInfoInTableFormat) String added in v1.2207.0

func (m *AnalysisInfoInTableFormat) String() string

type AuditRequest

type AuditRequest struct {
	Sql string `protobuf:"bytes,1,opt,name=sql" json:"sql,omitempty"`
}

func (*AuditRequest) Descriptor

func (*AuditRequest) Descriptor() ([]byte, []int)

func (*AuditRequest) GetSql

func (m *AuditRequest) GetSql() string

func (*AuditRequest) ProtoMessage

func (*AuditRequest) ProtoMessage()

func (*AuditRequest) Reset

func (m *AuditRequest) Reset()

func (*AuditRequest) String

func (m *AuditRequest) String() string

type AuditResponse

type AuditResponse struct {
	Results []*AuditResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}

func (*AuditResponse) Descriptor

func (*AuditResponse) Descriptor() ([]byte, []int)

func (*AuditResponse) GetResults

func (m *AuditResponse) GetResults() []*AuditResult

func (*AuditResponse) ProtoMessage

func (*AuditResponse) ProtoMessage()

func (*AuditResponse) Reset

func (m *AuditResponse) Reset()

func (*AuditResponse) String

func (m *AuditResponse) String() string

type AuditResult

type AuditResult struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	Level   string `protobuf:"bytes,2,opt,name=level" json:"level,omitempty"`
}

func (*AuditResult) Descriptor

func (*AuditResult) Descriptor() ([]byte, []int)

func (*AuditResult) GetLevel

func (m *AuditResult) GetLevel() string

func (*AuditResult) GetMessage

func (m *AuditResult) GetMessage() string

func (*AuditResult) ProtoMessage

func (*AuditResult) ProtoMessage()

func (*AuditResult) Reset

func (m *AuditResult) Reset()

func (*AuditResult) String

func (m *AuditResult) String() string

type ColumnsInfo added in v1.2207.0

type ColumnsInfo struct {
	AnalysisInfoInTableFormat *AnalysisInfoInTableFormat `protobuf:"bytes,1,opt,name=analysisInfoInTableFormat" json:"analysisInfoInTableFormat,omitempty"`
}

func (*ColumnsInfo) Descriptor added in v1.2207.0

func (*ColumnsInfo) Descriptor() ([]byte, []int)

func (*ColumnsInfo) GetAnalysisInfoInTableFormat added in v1.2207.0

func (m *ColumnsInfo) GetAnalysisInfoInTableFormat() *AnalysisInfoInTableFormat

func (*ColumnsInfo) ProtoMessage added in v1.2207.0

func (*ColumnsInfo) ProtoMessage()

func (*ColumnsInfo) Reset added in v1.2207.0

func (m *ColumnsInfo) Reset()

func (*ColumnsInfo) String added in v1.2207.0

func (m *ColumnsInfo) String() string

type DSN added in v1.2111.0

type DSN struct {
	Host             string   `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"`
	Port             string   `protobuf:"bytes,2,opt,name=port" json:"port,omitempty"`
	User             string   `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"`
	Password         string   `protobuf:"bytes,4,opt,name=password" json:"password,omitempty"`
	Database         string   `protobuf:"bytes,5,opt,name=database" json:"database,omitempty"`
	AdditionalParams []*Param `protobuf:"bytes,6,rep,name=additionalParams" json:"additionalParams,omitempty"`
}

func (*DSN) Descriptor added in v1.2111.0

func (*DSN) Descriptor() ([]byte, []int)

func (*DSN) GetAdditionalParams added in v1.2203.0

func (m *DSN) GetAdditionalParams() []*Param

func (*DSN) GetDatabase added in v1.2111.0

func (m *DSN) GetDatabase() string

func (*DSN) GetHost added in v1.2111.0

func (m *DSN) GetHost() string

func (*DSN) GetPassword added in v1.2111.0

func (m *DSN) GetPassword() string

func (*DSN) GetPort added in v1.2111.0

func (m *DSN) GetPort() string

func (*DSN) GetUser added in v1.2111.0

func (m *DSN) GetUser() string

func (*DSN) ProtoMessage added in v1.2111.0

func (*DSN) ProtoMessage()

func (*DSN) Reset added in v1.2111.0

func (m *DSN) Reset()

func (*DSN) String added in v1.2111.0

func (m *DSN) String() string

type DatabasesResponse

type DatabasesResponse struct {
	Databases []string `protobuf:"bytes,1,rep,name=databases" json:"databases,omitempty"`
}

func (*DatabasesResponse) Descriptor

func (*DatabasesResponse) Descriptor() ([]byte, []int)

func (*DatabasesResponse) GetDatabases

func (m *DatabasesResponse) GetDatabases() []string

func (*DatabasesResponse) ProtoMessage

func (*DatabasesResponse) ProtoMessage()

func (*DatabasesResponse) Reset

func (m *DatabasesResponse) Reset()

func (*DatabasesResponse) String

func (m *DatabasesResponse) String() string

type DriverClient

type DriverClient interface {
	// Metas returns some base info from plugin server.
	Metas(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MetasResponse, error)
	// Init will should be called at first before calling following methods.
	// It will pass some necessary info to plugin server. In the beginning,
	// we consider that put this info to the executable binary environment.
	// We put all communication on gRPC for unification in the end.
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error)
	Close(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error)
	Tx(ctx context.Context, in *TxRequest, opts ...grpc.CallOption) (*TxResponse, error)
	Databases(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DatabasesResponse, error)
	Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*ParseResponse, error)
	Audit(ctx context.Context, in *AuditRequest, opts ...grpc.CallOption) (*AuditResponse, error)
	GenRollbackSQL(ctx context.Context, in *GenRollbackSQLRequest, opts ...grpc.CallOption) (*GenRollbackSQLResponse, error)
}

func NewDriverClient

func NewDriverClient(cc *grpc.ClientConn) DriverClient

type DriverServer

type DriverServer interface {
	// Metas returns some base info from plugin server.
	Metas(context.Context, *Empty) (*MetasResponse, error)
	// Init will should be called at first before calling following methods.
	// It will pass some necessary info to plugin server. In the beginning,
	// we consider that put this info to the executable binary environment.
	// We put all communication on gRPC for unification in the end.
	Init(context.Context, *InitRequest) (*Empty, error)
	Close(context.Context, *Empty) (*Empty, error)
	Ping(context.Context, *Empty) (*Empty, error)
	Exec(context.Context, *ExecRequest) (*ExecResponse, error)
	Tx(context.Context, *TxRequest) (*TxResponse, error)
	Databases(context.Context, *Empty) (*DatabasesResponse, error)
	Parse(context.Context, *ParseRequest) (*ParseResponse, error)
	Audit(context.Context, *AuditRequest) (*AuditResponse, error)
	GenRollbackSQL(context.Context, *GenRollbackSQLRequest) (*GenRollbackSQLResponse, error)
}

type Empty

type Empty struct {
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type ExecRequest

type ExecRequest struct {
	Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"`
}

func (*ExecRequest) Descriptor

func (*ExecRequest) Descriptor() ([]byte, []int)

func (*ExecRequest) GetQuery

func (m *ExecRequest) GetQuery() string

func (*ExecRequest) ProtoMessage

func (*ExecRequest) ProtoMessage()

func (*ExecRequest) Reset

func (m *ExecRequest) Reset()

func (*ExecRequest) String

func (m *ExecRequest) String() string

type ExecResponse

type ExecResponse struct {
	LastInsertId      int64  `protobuf:"varint,1,opt,name=lastInsertId" json:"lastInsertId,omitempty"`
	LastInsertIdError string `protobuf:"bytes,2,opt,name=lastInsertIdError" json:"lastInsertIdError,omitempty"`
	RowsAffected      int64  `protobuf:"varint,3,opt,name=rowsAffected" json:"rowsAffected,omitempty"`
	RowsAffectedError string `protobuf:"bytes,4,opt,name=rowsAffectedError" json:"rowsAffectedError,omitempty"`
}

func (*ExecResponse) Descriptor

func (*ExecResponse) Descriptor() ([]byte, []int)

func (*ExecResponse) GetLastInsertId

func (m *ExecResponse) GetLastInsertId() int64

func (*ExecResponse) GetLastInsertIdError

func (m *ExecResponse) GetLastInsertIdError() string

func (*ExecResponse) GetRowsAffected

func (m *ExecResponse) GetRowsAffected() int64

func (*ExecResponse) GetRowsAffectedError

func (m *ExecResponse) GetRowsAffectedError() string

func (*ExecResponse) ProtoMessage

func (*ExecResponse) ProtoMessage()

func (*ExecResponse) Reset

func (m *ExecResponse) Reset()

func (*ExecResponse) String

func (m *ExecResponse) String() string

type ExplainClassicResult added in v1.2207.0

type ExplainClassicResult struct {
	AnalysisInfoInTableFormat *AnalysisInfoInTableFormat `protobuf:"bytes,1,opt,name=analysisInfoInTableFormat" json:"analysisInfoInTableFormat,omitempty"`
}

func (*ExplainClassicResult) Descriptor added in v1.2207.0

func (*ExplainClassicResult) Descriptor() ([]byte, []int)

func (*ExplainClassicResult) GetAnalysisInfoInTableFormat added in v1.2207.0

func (m *ExplainClassicResult) GetAnalysisInfoInTableFormat() *AnalysisInfoInTableFormat

func (*ExplainClassicResult) ProtoMessage added in v1.2207.0

func (*ExplainClassicResult) ProtoMessage()

func (*ExplainClassicResult) Reset added in v1.2207.0

func (m *ExplainClassicResult) Reset()

func (*ExplainClassicResult) String added in v1.2207.0

func (m *ExplainClassicResult) String() string

type ExplainRequest added in v1.2207.0

type ExplainRequest struct {
	Sql string `protobuf:"bytes,1,opt,name=sql" json:"sql,omitempty"`
}

func (*ExplainRequest) Descriptor added in v1.2207.0

func (*ExplainRequest) Descriptor() ([]byte, []int)

func (*ExplainRequest) GetSql added in v1.2207.0

func (m *ExplainRequest) GetSql() string

func (*ExplainRequest) ProtoMessage added in v1.2207.0

func (*ExplainRequest) ProtoMessage()

func (*ExplainRequest) Reset added in v1.2207.0

func (m *ExplainRequest) Reset()

func (*ExplainRequest) String added in v1.2207.0

func (m *ExplainRequest) String() string

type ExplainResponse added in v1.2207.0

type ExplainResponse struct {
	ClassicResult *ExplainClassicResult `protobuf:"bytes,1,opt,name=classicResult" json:"classicResult,omitempty"`
}

func (*ExplainResponse) Descriptor added in v1.2207.0

func (*ExplainResponse) Descriptor() ([]byte, []int)

func (*ExplainResponse) GetClassicResult added in v1.2207.0

func (m *ExplainResponse) GetClassicResult() *ExplainClassicResult

func (*ExplainResponse) ProtoMessage added in v1.2207.0

func (*ExplainResponse) ProtoMessage()

func (*ExplainResponse) Reset added in v1.2207.0

func (m *ExplainResponse) Reset()

func (*ExplainResponse) String added in v1.2207.0

func (m *ExplainResponse) String() string

type GenRollbackSQLRequest

type GenRollbackSQLRequest struct {
	Sql string `protobuf:"bytes,1,opt,name=sql" json:"sql,omitempty"`
}

func (*GenRollbackSQLRequest) Descriptor

func (*GenRollbackSQLRequest) Descriptor() ([]byte, []int)

func (*GenRollbackSQLRequest) GetSql

func (m *GenRollbackSQLRequest) GetSql() string

func (*GenRollbackSQLRequest) ProtoMessage

func (*GenRollbackSQLRequest) ProtoMessage()

func (*GenRollbackSQLRequest) Reset

func (m *GenRollbackSQLRequest) Reset()

func (*GenRollbackSQLRequest) String

func (m *GenRollbackSQLRequest) String() string

type GenRollbackSQLResponse

type GenRollbackSQLResponse struct {
	Sql    string `protobuf:"bytes,1,opt,name=sql" json:"sql,omitempty"`
	Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
}

func (*GenRollbackSQLResponse) Descriptor

func (*GenRollbackSQLResponse) Descriptor() ([]byte, []int)

func (*GenRollbackSQLResponse) GetReason

func (m *GenRollbackSQLResponse) GetReason() string

func (*GenRollbackSQLResponse) GetSql

func (m *GenRollbackSQLResponse) GetSql() string

func (*GenRollbackSQLResponse) ProtoMessage

func (*GenRollbackSQLResponse) ProtoMessage()

func (*GenRollbackSQLResponse) Reset

func (m *GenRollbackSQLResponse) Reset()

func (*GenRollbackSQLResponse) String

func (m *GenRollbackSQLResponse) String() string

type GetTableMetaBySQLRequest added in v1.2207.0

type GetTableMetaBySQLRequest struct {
	Sql string `protobuf:"bytes,1,opt,name=sql" json:"sql,omitempty"`
}

func (*GetTableMetaBySQLRequest) Descriptor added in v1.2207.0

func (*GetTableMetaBySQLRequest) Descriptor() ([]byte, []int)

func (*GetTableMetaBySQLRequest) GetSql added in v1.2207.0

func (m *GetTableMetaBySQLRequest) GetSql() string

func (*GetTableMetaBySQLRequest) ProtoMessage added in v1.2207.0

func (*GetTableMetaBySQLRequest) ProtoMessage()

func (*GetTableMetaBySQLRequest) Reset added in v1.2207.0

func (m *GetTableMetaBySQLRequest) Reset()

func (*GetTableMetaBySQLRequest) String added in v1.2207.0

func (m *GetTableMetaBySQLRequest) String() string

type GetTableMetaBySQLResponse added in v1.2207.0

type GetTableMetaBySQLResponse struct {
	TableMetas []*TableMetaItemBySQL `protobuf:"bytes,1,rep,name=tableMetas" json:"tableMetas,omitempty"`
}

func (*GetTableMetaBySQLResponse) Descriptor added in v1.2207.0

func (*GetTableMetaBySQLResponse) Descriptor() ([]byte, []int)

func (*GetTableMetaBySQLResponse) GetTableMetas added in v1.2207.0

func (m *GetTableMetaBySQLResponse) GetTableMetas() []*TableMetaItemBySQL

func (*GetTableMetaBySQLResponse) ProtoMessage added in v1.2207.0

func (*GetTableMetaBySQLResponse) ProtoMessage()

func (*GetTableMetaBySQLResponse) Reset added in v1.2207.0

func (m *GetTableMetaBySQLResponse) Reset()

func (*GetTableMetaBySQLResponse) String added in v1.2207.0

func (m *GetTableMetaBySQLResponse) String() string

type GetTableMetaByTableNameRequest added in v1.2207.0

type GetTableMetaByTableNameRequest struct {
	Schema string `protobuf:"bytes,1,opt,name=schema" json:"schema,omitempty"`
	Table  string `protobuf:"bytes,2,opt,name=table" json:"table,omitempty"`
}

func (*GetTableMetaByTableNameRequest) Descriptor added in v1.2207.0

func (*GetTableMetaByTableNameRequest) Descriptor() ([]byte, []int)

func (*GetTableMetaByTableNameRequest) GetSchema added in v1.2207.0

func (m *GetTableMetaByTableNameRequest) GetSchema() string

func (*GetTableMetaByTableNameRequest) GetTable added in v1.2207.0

func (m *GetTableMetaByTableNameRequest) GetTable() string

func (*GetTableMetaByTableNameRequest) ProtoMessage added in v1.2207.0

func (*GetTableMetaByTableNameRequest) ProtoMessage()

func (*GetTableMetaByTableNameRequest) Reset added in v1.2207.0

func (m *GetTableMetaByTableNameRequest) Reset()

func (*GetTableMetaByTableNameRequest) String added in v1.2207.0

type GetTableMetaByTableNameResponse added in v1.2207.0

type GetTableMetaByTableNameResponse struct {
	TableMeta *TableItem `protobuf:"bytes,1,opt,name=tableMeta" json:"tableMeta,omitempty"`
}

func (*GetTableMetaByTableNameResponse) Descriptor added in v1.2207.0

func (*GetTableMetaByTableNameResponse) Descriptor() ([]byte, []int)

func (*GetTableMetaByTableNameResponse) GetTableMeta added in v1.2207.0

func (m *GetTableMetaByTableNameResponse) GetTableMeta() *TableItem

func (*GetTableMetaByTableNameResponse) ProtoMessage added in v1.2207.0

func (*GetTableMetaByTableNameResponse) ProtoMessage()

func (*GetTableMetaByTableNameResponse) Reset added in v1.2207.0

func (*GetTableMetaByTableNameResponse) String added in v1.2207.0

type IndexesInfo added in v1.2207.0

type IndexesInfo struct {
	AnalysisInfoInTableFormat *AnalysisInfoInTableFormat `protobuf:"bytes,1,opt,name=analysisInfoInTableFormat" json:"analysisInfoInTableFormat,omitempty"`
}

func (*IndexesInfo) Descriptor added in v1.2207.0

func (*IndexesInfo) Descriptor() ([]byte, []int)

func (*IndexesInfo) GetAnalysisInfoInTableFormat added in v1.2207.0

func (m *IndexesInfo) GetAnalysisInfoInTableFormat() *AnalysisInfoInTableFormat

func (*IndexesInfo) ProtoMessage added in v1.2207.0

func (*IndexesInfo) ProtoMessage()

func (*IndexesInfo) Reset added in v1.2207.0

func (m *IndexesInfo) Reset()

func (*IndexesInfo) String added in v1.2207.0

func (m *IndexesInfo) String() string

type InitRequest

type InitRequest struct {
	Dsn   *DSN    `protobuf:"bytes,1,opt,name=dsn" json:"dsn,omitempty"`
	Rules []*Rule `protobuf:"bytes,3,rep,name=rules" json:"rules,omitempty"`
}

func (*InitRequest) Descriptor

func (*InitRequest) Descriptor() ([]byte, []int)

func (*InitRequest) GetDsn added in v1.2111.0

func (m *InitRequest) GetDsn() *DSN

func (*InitRequest) GetRules added in v1.2111.0

func (m *InitRequest) GetRules() []*Rule

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) Reset

func (m *InitRequest) Reset()

func (*InitRequest) String

func (m *InitRequest) String() string

type ListTablesInSchemaRequest added in v1.2207.0

type ListTablesInSchemaRequest struct {
	Schema string `protobuf:"bytes,1,opt,name=schema" json:"schema,omitempty"`
}

func (*ListTablesInSchemaRequest) Descriptor added in v1.2207.0

func (*ListTablesInSchemaRequest) Descriptor() ([]byte, []int)

func (*ListTablesInSchemaRequest) GetSchema added in v1.2207.0

func (m *ListTablesInSchemaRequest) GetSchema() string

func (*ListTablesInSchemaRequest) ProtoMessage added in v1.2207.0

func (*ListTablesInSchemaRequest) ProtoMessage()

func (*ListTablesInSchemaRequest) Reset added in v1.2207.0

func (m *ListTablesInSchemaRequest) Reset()

func (*ListTablesInSchemaRequest) String added in v1.2207.0

func (m *ListTablesInSchemaRequest) String() string

type ListTablesInSchemaResponse added in v1.2207.0

type ListTablesInSchemaResponse struct {
	Tables []*Table `protobuf:"bytes,1,rep,name=tables" json:"tables,omitempty"`
}

func (*ListTablesInSchemaResponse) Descriptor added in v1.2207.0

func (*ListTablesInSchemaResponse) Descriptor() ([]byte, []int)

func (*ListTablesInSchemaResponse) GetTables added in v1.2207.0

func (m *ListTablesInSchemaResponse) GetTables() []*Table

func (*ListTablesInSchemaResponse) ProtoMessage added in v1.2207.0

func (*ListTablesInSchemaResponse) ProtoMessage()

func (*ListTablesInSchemaResponse) Reset added in v1.2207.0

func (m *ListTablesInSchemaResponse) Reset()

func (*ListTablesInSchemaResponse) String added in v1.2207.0

func (m *ListTablesInSchemaResponse) String() string

type MetasResponse

type MetasResponse struct {
	Name             string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Rules            []*Rule  `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"`
	AdditionalParams []*Param `protobuf:"bytes,3,rep,name=additionalParams" json:"additionalParams,omitempty"`
	Version          int32    `protobuf:"varint,4,opt,name=version" json:"version,omitempty"`
}

func (*MetasResponse) Descriptor

func (*MetasResponse) Descriptor() ([]byte, []int)

func (*MetasResponse) GetAdditionalParams added in v1.2203.0

func (m *MetasResponse) GetAdditionalParams() []*Param

func (*MetasResponse) GetName

func (m *MetasResponse) GetName() string

func (*MetasResponse) GetRules

func (m *MetasResponse) GetRules() []*Rule

func (*MetasResponse) GetVersion added in v1.2207.0

func (m *MetasResponse) GetVersion() int32

func (*MetasResponse) ProtoMessage

func (*MetasResponse) ProtoMessage()

func (*MetasResponse) Reset

func (m *MetasResponse) Reset()

func (*MetasResponse) String

func (m *MetasResponse) String() string

type Node

type Node struct {
	Text        string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	Type        string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
	Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint" json:"fingerprint,omitempty"`
}

func (*Node) Descriptor

func (*Node) Descriptor() ([]byte, []int)

func (*Node) GetFingerprint

func (m *Node) GetFingerprint() string

func (*Node) GetText

func (m *Node) GetText() string

func (*Node) GetType

func (m *Node) GetType() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type Param added in v1.2112.0

type Param struct {
	Key   string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
	Desc  string `protobuf:"bytes,3,opt,name=desc" json:"desc,omitempty"`
	Type  string `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"`
}

func ConvertParamToProtoParam added in v1.2203.0

func ConvertParamToProtoParam(p params.Params) []*Param

func (*Param) Descriptor added in v1.2112.0

func (*Param) Descriptor() ([]byte, []int)

func (*Param) GetDesc added in v1.2112.0

func (m *Param) GetDesc() string

func (*Param) GetKey added in v1.2112.0

func (m *Param) GetKey() string

func (*Param) GetType added in v1.2112.0

func (m *Param) GetType() string

func (*Param) GetValue added in v1.2112.0

func (m *Param) GetValue() string

func (*Param) ProtoMessage added in v1.2112.0

func (*Param) ProtoMessage()

func (*Param) Reset added in v1.2112.0

func (m *Param) Reset()

func (*Param) String added in v1.2112.0

func (m *Param) String() string

type ParseRequest

type ParseRequest struct {
	SqlText string `protobuf:"bytes,1,opt,name=sqlText" json:"sqlText,omitempty"`
}

func (*ParseRequest) Descriptor

func (*ParseRequest) Descriptor() ([]byte, []int)

func (*ParseRequest) GetSqlText

func (m *ParseRequest) GetSqlText() string

func (*ParseRequest) ProtoMessage

func (*ParseRequest) ProtoMessage()

func (*ParseRequest) Reset

func (m *ParseRequest) Reset()

func (*ParseRequest) String

func (m *ParseRequest) String() string

type ParseResponse

type ParseResponse struct {
	Nodes []*Node `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
}

func (*ParseResponse) Descriptor

func (*ParseResponse) Descriptor() ([]byte, []int)

func (*ParseResponse) GetNodes

func (m *ParseResponse) GetNodes() []*Node

func (*ParseResponse) ProtoMessage

func (*ParseResponse) ProtoMessage()

func (*ParseResponse) Reset

func (m *ParseResponse) Reset()

func (*ParseResponse) String

func (m *ParseResponse) String() string

type QueryConf added in v1.2206.0

type QueryConf struct {
	TimeOutSecond uint32 `protobuf:"varint,1,opt,name=timeOutSecond" json:"timeOutSecond,omitempty"`
}

func (*QueryConf) Descriptor added in v1.2206.0

func (*QueryConf) Descriptor() ([]byte, []int)

func (*QueryConf) GetTimeOutSecond added in v1.2206.0

func (m *QueryConf) GetTimeOutSecond() uint32

func (*QueryConf) ProtoMessage added in v1.2206.0

func (*QueryConf) ProtoMessage()

func (*QueryConf) Reset added in v1.2206.0

func (m *QueryConf) Reset()

func (*QueryConf) String added in v1.2206.0

func (m *QueryConf) String() string

type QueryDriverClient added in v1.2206.0

type QueryDriverClient interface {
	// Init will should be called at first before calling following methods.
	// It will pass some necessary info to plugin server. In the beginning,
	// we consider that put this info to the executable binary environment.
	// We put all communication on gRPC for unification in the end.
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error)
	QueryPrepare(ctx context.Context, in *QueryPrepareRequest, opts ...grpc.CallOption) (*QueryPrepareResponse, error)
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
}

func NewQueryDriverClient added in v1.2206.0

func NewQueryDriverClient(cc *grpc.ClientConn) QueryDriverClient

type QueryDriverServer added in v1.2206.0

type QueryDriverServer interface {
	// Init will should be called at first before calling following methods.
	// It will pass some necessary info to plugin server. In the beginning,
	// we consider that put this info to the executable binary environment.
	// We put all communication on gRPC for unification in the end.
	Init(context.Context, *InitRequest) (*Empty, error)
	QueryPrepare(context.Context, *QueryPrepareRequest) (*QueryPrepareResponse, error)
	Query(context.Context, *QueryRequest) (*QueryResponse, error)
}

type QueryPrepareConf added in v1.2206.0

type QueryPrepareConf struct {
	Limit  uint32 `protobuf:"varint,1,opt,name=limit" json:"limit,omitempty"`
	Offset uint32 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
}

func (*QueryPrepareConf) Descriptor added in v1.2206.0

func (*QueryPrepareConf) Descriptor() ([]byte, []int)

func (*QueryPrepareConf) GetLimit added in v1.2206.0

func (m *QueryPrepareConf) GetLimit() uint32

func (*QueryPrepareConf) GetOffset added in v1.2206.0

func (m *QueryPrepareConf) GetOffset() uint32

func (*QueryPrepareConf) ProtoMessage added in v1.2206.0

func (*QueryPrepareConf) ProtoMessage()

func (*QueryPrepareConf) Reset added in v1.2206.0

func (m *QueryPrepareConf) Reset()

func (*QueryPrepareConf) String added in v1.2206.0

func (m *QueryPrepareConf) String() string

type QueryPrepareRequest added in v1.2206.0

type QueryPrepareRequest struct {
	Sql  string            `protobuf:"bytes,1,opt,name=sql" json:"sql,omitempty"`
	Conf *QueryPrepareConf `protobuf:"bytes,2,opt,name=conf" json:"conf,omitempty"`
}

func (*QueryPrepareRequest) Descriptor added in v1.2206.0

func (*QueryPrepareRequest) Descriptor() ([]byte, []int)

func (*QueryPrepareRequest) GetConf added in v1.2206.0

func (m *QueryPrepareRequest) GetConf() *QueryPrepareConf

func (*QueryPrepareRequest) GetSql added in v1.2206.0

func (m *QueryPrepareRequest) GetSql() string

func (*QueryPrepareRequest) ProtoMessage added in v1.2206.0

func (*QueryPrepareRequest) ProtoMessage()

func (*QueryPrepareRequest) Reset added in v1.2206.0

func (m *QueryPrepareRequest) Reset()

func (*QueryPrepareRequest) String added in v1.2206.0

func (m *QueryPrepareRequest) String() string

type QueryPrepareResponse added in v1.2206.0

type QueryPrepareResponse struct {
	NewSql    string `protobuf:"bytes,1,opt,name=newSql" json:"newSql,omitempty"`
	ErrorType string `protobuf:"bytes,2,opt,name=errorType" json:"errorType,omitempty"`
	Error     string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
}

func (*QueryPrepareResponse) Descriptor added in v1.2206.0

func (*QueryPrepareResponse) Descriptor() ([]byte, []int)

func (*QueryPrepareResponse) GetError added in v1.2206.0

func (m *QueryPrepareResponse) GetError() string

func (*QueryPrepareResponse) GetErrorType added in v1.2206.0

func (m *QueryPrepareResponse) GetErrorType() string

func (*QueryPrepareResponse) GetNewSql added in v1.2206.0

func (m *QueryPrepareResponse) GetNewSql() string

func (*QueryPrepareResponse) ProtoMessage added in v1.2206.0

func (*QueryPrepareResponse) ProtoMessage()

func (*QueryPrepareResponse) Reset added in v1.2206.0

func (m *QueryPrepareResponse) Reset()

func (*QueryPrepareResponse) String added in v1.2206.0

func (m *QueryPrepareResponse) String() string

type QueryRequest added in v1.2206.0

type QueryRequest struct {
	Sql  string     `protobuf:"bytes,1,opt,name=sql" json:"sql,omitempty"`
	Conf *QueryConf `protobuf:"bytes,2,opt,name=conf" json:"conf,omitempty"`
}

func (*QueryRequest) Descriptor added in v1.2206.0

func (*QueryRequest) Descriptor() ([]byte, []int)

func (*QueryRequest) GetConf added in v1.2206.0

func (m *QueryRequest) GetConf() *QueryConf

func (*QueryRequest) GetSql added in v1.2206.0

func (m *QueryRequest) GetSql() string

func (*QueryRequest) ProtoMessage added in v1.2206.0

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) Reset added in v1.2206.0

func (m *QueryRequest) Reset()

func (*QueryRequest) String added in v1.2206.0

func (m *QueryRequest) String() string

type QueryResponse added in v1.2206.0

type QueryResponse struct {
	Column []*Param          `protobuf:"bytes,1,rep,name=column" json:"column,omitempty"`
	Rows   []*QueryResultRow `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"`
}

func (*QueryResponse) Descriptor added in v1.2206.0

func (*QueryResponse) Descriptor() ([]byte, []int)

func (*QueryResponse) GetColumn added in v1.2206.0

func (m *QueryResponse) GetColumn() []*Param

func (*QueryResponse) GetRows added in v1.2206.0

func (m *QueryResponse) GetRows() []*QueryResultRow

func (*QueryResponse) ProtoMessage added in v1.2206.0

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) Reset added in v1.2206.0

func (m *QueryResponse) Reset()

func (*QueryResponse) String added in v1.2206.0

func (m *QueryResponse) String() string

type QueryResultRow added in v1.2206.0

type QueryResultRow struct {
	Values []*QueryResultValue `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
}

func (*QueryResultRow) Descriptor added in v1.2206.0

func (*QueryResultRow) Descriptor() ([]byte, []int)

func (*QueryResultRow) GetValues added in v1.2206.0

func (m *QueryResultRow) GetValues() []*QueryResultValue

func (*QueryResultRow) ProtoMessage added in v1.2206.0

func (*QueryResultRow) ProtoMessage()

func (*QueryResultRow) Reset added in v1.2206.0

func (m *QueryResultRow) Reset()

func (*QueryResultRow) String added in v1.2206.0

func (m *QueryResultRow) String() string

type QueryResultValue added in v1.2206.0

type QueryResultValue struct {
	Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}

func (*QueryResultValue) Descriptor added in v1.2206.0

func (*QueryResultValue) Descriptor() ([]byte, []int)

func (*QueryResultValue) GetValue added in v1.2206.0

func (m *QueryResultValue) GetValue() string

func (*QueryResultValue) ProtoMessage added in v1.2206.0

func (*QueryResultValue) ProtoMessage()

func (*QueryResultValue) Reset added in v1.2206.0

func (m *QueryResultValue) Reset()

func (*QueryResultValue) String added in v1.2206.0

func (m *QueryResultValue) String() string

type Row added in v1.2207.0

type Row struct {
	Items []string `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}

func (*Row) Descriptor added in v1.2207.0

func (*Row) Descriptor() ([]byte, []int)

func (*Row) GetItems added in v1.2207.0

func (m *Row) GetItems() []string

func (*Row) ProtoMessage added in v1.2207.0

func (*Row) ProtoMessage()

func (*Row) Reset added in v1.2207.0

func (m *Row) Reset()

func (*Row) String added in v1.2207.0

func (m *Row) String() string

type Rule

type Rule struct {
	Name     string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Desc     string   `protobuf:"bytes,2,opt,name=desc" json:"desc,omitempty"`
	Value    string   `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
	Level    string   `protobuf:"bytes,4,opt,name=level" json:"level,omitempty"`
	Category string   `protobuf:"bytes,5,opt,name=category" json:"category,omitempty"`
	Params   []*Param `protobuf:"bytes,6,rep,name=params" json:"params,omitempty"`
}

func (*Rule) Descriptor

func (*Rule) Descriptor() ([]byte, []int)

func (*Rule) GetCategory added in v1.2111.0

func (m *Rule) GetCategory() string

func (*Rule) GetDesc

func (m *Rule) GetDesc() string

func (*Rule) GetLevel

func (m *Rule) GetLevel() string

func (*Rule) GetName

func (m *Rule) GetName() string

func (*Rule) GetParams added in v1.2112.0

func (m *Rule) GetParams() []*Param

func (*Rule) GetValue

func (m *Rule) GetValue() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) String

func (m *Rule) String() string

type Table added in v1.2207.0

type Table struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*Table) Descriptor added in v1.2207.0

func (*Table) Descriptor() ([]byte, []int)

func (*Table) GetName added in v1.2207.0

func (m *Table) GetName() string

func (*Table) ProtoMessage added in v1.2207.0

func (*Table) ProtoMessage()

func (*Table) Reset added in v1.2207.0

func (m *Table) Reset()

func (*Table) String added in v1.2207.0

func (m *Table) String() string

type TableItem added in v1.2207.0

type TableItem struct {
	Name           string       `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Schema         string       `protobuf:"bytes,2,opt,name=schema" json:"schema,omitempty"`
	ColumnsInfo    *ColumnsInfo `protobuf:"bytes,3,opt,name=columnsInfo" json:"columnsInfo,omitempty"`
	IndexesInfo    *IndexesInfo `protobuf:"bytes,4,opt,name=indexesInfo" json:"indexesInfo,omitempty"`
	CreateTableSQL string       `protobuf:"bytes,5,opt,name=createTableSQL" json:"createTableSQL,omitempty"`
}

func (*TableItem) Descriptor added in v1.2207.0

func (*TableItem) Descriptor() ([]byte, []int)

func (*TableItem) GetColumnsInfo added in v1.2207.0

func (m *TableItem) GetColumnsInfo() *ColumnsInfo

func (*TableItem) GetCreateTableSQL added in v1.2207.0

func (m *TableItem) GetCreateTableSQL() string

func (*TableItem) GetIndexesInfo added in v1.2207.0

func (m *TableItem) GetIndexesInfo() *IndexesInfo

func (*TableItem) GetName added in v1.2207.0

func (m *TableItem) GetName() string

func (*TableItem) GetSchema added in v1.2207.0

func (m *TableItem) GetSchema() string

func (*TableItem) ProtoMessage added in v1.2207.0

func (*TableItem) ProtoMessage()

func (*TableItem) Reset added in v1.2207.0

func (m *TableItem) Reset()

func (*TableItem) String added in v1.2207.0

func (m *TableItem) String() string

type TableMetaItemBySQL added in v1.2207.0

type TableMetaItemBySQL struct {
	Name           string       `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Schema         string       `protobuf:"bytes,2,opt,name=schema" json:"schema,omitempty"`
	ColumnsInfo    *ColumnsInfo `protobuf:"bytes,3,opt,name=columnsInfo" json:"columnsInfo,omitempty"`
	IndexesInfo    *IndexesInfo `protobuf:"bytes,4,opt,name=indexesInfo" json:"indexesInfo,omitempty"`
	CreateTableSQL string       `protobuf:"bytes,5,opt,name=createTableSQL" json:"createTableSQL,omitempty"`
	ErrMessage     string       `protobuf:"bytes,6,opt,name=errMessage" json:"errMessage,omitempty"`
}

func (*TableMetaItemBySQL) Descriptor added in v1.2207.0

func (*TableMetaItemBySQL) Descriptor() ([]byte, []int)

func (*TableMetaItemBySQL) GetColumnsInfo added in v1.2207.0

func (m *TableMetaItemBySQL) GetColumnsInfo() *ColumnsInfo

func (*TableMetaItemBySQL) GetCreateTableSQL added in v1.2207.0

func (m *TableMetaItemBySQL) GetCreateTableSQL() string

func (*TableMetaItemBySQL) GetErrMessage added in v1.2207.0

func (m *TableMetaItemBySQL) GetErrMessage() string

func (*TableMetaItemBySQL) GetIndexesInfo added in v1.2207.0

func (m *TableMetaItemBySQL) GetIndexesInfo() *IndexesInfo

func (*TableMetaItemBySQL) GetName added in v1.2207.0

func (m *TableMetaItemBySQL) GetName() string

func (*TableMetaItemBySQL) GetSchema added in v1.2207.0

func (m *TableMetaItemBySQL) GetSchema() string

func (*TableMetaItemBySQL) ProtoMessage added in v1.2207.0

func (*TableMetaItemBySQL) ProtoMessage()

func (*TableMetaItemBySQL) Reset added in v1.2207.0

func (m *TableMetaItemBySQL) Reset()

func (*TableMetaItemBySQL) String added in v1.2207.0

func (m *TableMetaItemBySQL) String() string

type TxRequest

type TxRequest struct {
	Queries []string `protobuf:"bytes,1,rep,name=queries" json:"queries,omitempty"`
}

func (*TxRequest) Descriptor

func (*TxRequest) Descriptor() ([]byte, []int)

func (*TxRequest) GetQueries

func (m *TxRequest) GetQueries() []string

func (*TxRequest) ProtoMessage

func (*TxRequest) ProtoMessage()

func (*TxRequest) Reset

func (m *TxRequest) Reset()

func (*TxRequest) String

func (m *TxRequest) String() string

type TxResponse

type TxResponse struct {
	Results []*ExecResponse `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}

func (*TxResponse) Descriptor

func (*TxResponse) Descriptor() ([]byte, []int)

func (*TxResponse) GetResults added in v1.2112.0

func (m *TxResponse) GetResults() []*ExecResponse

func (*TxResponse) ProtoMessage

func (*TxResponse) ProtoMessage()

func (*TxResponse) Reset

func (m *TxResponse) Reset()

func (*TxResponse) String

func (m *TxResponse) String() string

Jump to

Keyboard shortcuts

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