rpc

package
v0.16.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Dialect_name = map[int32]string{
		0: "DRUID",
		1: "DUCKDB",
	}
	Dialect_value = map[string]int32{
		"DRUID":  0,
		"DUCKDB": 1,
	}
)

Enum value maps for Dialect.

View Source
var File_sql_src_main_proto_requests_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Dialect

type Dialect int32
const (
	Dialect_DRUID  Dialect = 0
	Dialect_DUCKDB Dialect = 1
)

func (Dialect) Descriptor

func (Dialect) Descriptor() protoreflect.EnumDescriptor

func (Dialect) Enum

func (x Dialect) Enum() *Dialect

func (Dialect) EnumDescriptor deprecated

func (Dialect) EnumDescriptor() ([]byte, []int)

Deprecated: Use Dialect.Descriptor instead.

func (Dialect) Number

func (x Dialect) Number() protoreflect.EnumNumber

func (Dialect) String

func (x Dialect) String() string

func (Dialect) Type

func (Dialect) Type() protoreflect.EnumType

type Error

type Error struct {
	Message    string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	StackTrace string `protobuf:"bytes,2,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) GetStackTrace added in v0.15.0

func (x *Error) GetStackTrace() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type ParseRequest

type ParseRequest struct {
	Sql     string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"`
	Catalog string `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"`
	// contains filtered or unexported fields
}

func (*ParseRequest) Descriptor deprecated

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

Deprecated: Use ParseRequest.ProtoReflect.Descriptor instead.

func (*ParseRequest) GetCatalog added in v0.15.0

func (x *ParseRequest) GetCatalog() string

func (*ParseRequest) GetSql

func (x *ParseRequest) GetSql() string

func (*ParseRequest) ProtoMessage

func (*ParseRequest) ProtoMessage()

func (*ParseRequest) ProtoReflect

func (x *ParseRequest) ProtoReflect() protoreflect.Message

func (*ParseRequest) Reset

func (x *ParseRequest) Reset()

func (*ParseRequest) String

func (x *ParseRequest) String() string

type ParseResponse

type ParseResponse struct {
	Ast *ast.SqlNodeProto `protobuf:"bytes,1,opt,name=ast,proto3" json:"ast,omitempty"`
	// contains filtered or unexported fields
}

func (*ParseResponse) Descriptor deprecated

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

Deprecated: Use ParseResponse.ProtoReflect.Descriptor instead.

func (*ParseResponse) GetAst

func (x *ParseResponse) GetAst() *ast.SqlNodeProto

func (*ParseResponse) ProtoMessage

func (*ParseResponse) ProtoMessage()

func (*ParseResponse) ProtoReflect

func (x *ParseResponse) ProtoReflect() protoreflect.Message

func (*ParseResponse) Reset

func (x *ParseResponse) Reset()

func (*ParseResponse) String

func (x *ParseResponse) String() string

type Request

type Request struct {

	// Types that are assignable to Request:
	//
	//	*Request_ParseRequest
	//	*Request_TranspileRequest
	Request isRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetParseRequest

func (x *Request) GetParseRequest() *ParseRequest

func (*Request) GetRequest

func (m *Request) GetRequest() isRequest_Request

func (*Request) GetTranspileRequest

func (x *Request) GetTranspileRequest() *TranspileRequest

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_ParseRequest

type Request_ParseRequest struct {
	ParseRequest *ParseRequest `protobuf:"bytes,1,opt,name=parse_request,json=parseRequest,proto3,oneof"`
}

type Request_TranspileRequest

type Request_TranspileRequest struct {
	// UnparseRequest unparse_request = 2;
	TranspileRequest *TranspileRequest `protobuf:"bytes,3,opt,name=transpile_request,json=transpileRequest,proto3,oneof"` // ApplyRequest apply_request = 4;
}

type Response

type Response struct {

	// Types that are assignable to Response:
	//
	//	*Response_ParseResponse
	//	*Response_TranspileResponse
	Response isResponse_Response `protobuf_oneof:"response"`
	Error    *Error              `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetError

func (x *Response) GetError() *Error

func (*Response) GetParseResponse

func (x *Response) GetParseResponse() *ParseResponse

func (*Response) GetResponse

func (m *Response) GetResponse() isResponse_Response

func (*Response) GetTranspileResponse

func (x *Response) GetTranspileResponse() *TranspileResponse

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Response_ParseResponse

type Response_ParseResponse struct {
	ParseResponse *ParseResponse `protobuf:"bytes,1,opt,name=parse_response,json=parseResponse,proto3,oneof"`
}

type Response_TranspileResponse

type Response_TranspileResponse struct {
	// UnparseResponse unparse_response = 2;
	TranspileResponse *TranspileResponse `protobuf:"bytes,3,opt,name=transpile_response,json=transpileResponse,proto3,oneof"` // ApplyResponse apply_response = 4;
}

type TranspileRequest

type TranspileRequest struct {
	Sql     string  `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"`
	Dialect Dialect `protobuf:"varint,2,opt,name=dialect,proto3,enum=rill.sql.v1.Dialect" json:"dialect,omitempty"`
	Catalog string  `protobuf:"bytes,3,opt,name=catalog,proto3" json:"catalog,omitempty"`
	// contains filtered or unexported fields
}

func (*TranspileRequest) Descriptor deprecated

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

Deprecated: Use TranspileRequest.ProtoReflect.Descriptor instead.

func (*TranspileRequest) GetCatalog added in v0.15.0

func (x *TranspileRequest) GetCatalog() string

func (*TranspileRequest) GetDialect

func (x *TranspileRequest) GetDialect() Dialect

func (*TranspileRequest) GetSql

func (x *TranspileRequest) GetSql() string

func (*TranspileRequest) ProtoMessage

func (*TranspileRequest) ProtoMessage()

func (*TranspileRequest) ProtoReflect

func (x *TranspileRequest) ProtoReflect() protoreflect.Message

func (*TranspileRequest) Reset

func (x *TranspileRequest) Reset()

func (*TranspileRequest) String

func (x *TranspileRequest) String() string

type TranspileResponse

type TranspileResponse struct {
	Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"`
	// contains filtered or unexported fields
}

func (*TranspileResponse) Descriptor deprecated

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

Deprecated: Use TranspileResponse.ProtoReflect.Descriptor instead.

func (*TranspileResponse) GetSql

func (x *TranspileResponse) GetSql() string

func (*TranspileResponse) ProtoMessage

func (*TranspileResponse) ProtoMessage()

func (*TranspileResponse) ProtoReflect

func (x *TranspileResponse) ProtoReflect() protoreflect.Message

func (*TranspileResponse) Reset

func (x *TranspileResponse) Reset()

func (*TranspileResponse) String

func (x *TranspileResponse) String() string

Jump to

Keyboard shortcuts

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