Documentation ¶
Index ¶
- Variables
- type Dialect
- type Error
- type ParseRequest
- func (*ParseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ParseRequest) GetCatalog() string
- func (x *ParseRequest) GetSql() string
- func (*ParseRequest) ProtoMessage()
- func (x *ParseRequest) ProtoReflect() protoreflect.Message
- func (x *ParseRequest) Reset()
- func (x *ParseRequest) String() string
- type ParseResponse
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetParseRequest() *ParseRequest
- func (m *Request) GetRequest() isRequest_Request
- func (x *Request) GetTranspileRequest() *TranspileRequest
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Request_ParseRequest
- type Request_TranspileRequest
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetError() *Error
- func (x *Response) GetParseResponse() *ParseResponse
- func (m *Response) GetResponse() isResponse_Response
- func (x *Response) GetTranspileResponse() *TranspileResponse
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Response_ParseResponse
- type Response_TranspileResponse
- type TranspileRequest
- func (*TranspileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TranspileRequest) GetCatalog() string
- func (x *TranspileRequest) GetDialect() Dialect
- func (x *TranspileRequest) GetSql() string
- func (*TranspileRequest) ProtoMessage()
- func (x *TranspileRequest) ProtoReflect() protoreflect.Message
- func (x *TranspileRequest) Reset()
- func (x *TranspileRequest) String() string
- type TranspileResponse
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
func (Dialect) Descriptor ¶
func (Dialect) Descriptor() protoreflect.EnumDescriptor
func (Dialect) EnumDescriptor
deprecated
func (Dialect) Number ¶
func (x Dialect) Number() protoreflect.EnumNumber
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) GetMessage ¶
func (*Error) GetStackTrace ¶ added in v0.15.0
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
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) 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
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) 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
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
Click to show internal directories.
Click to hide internal directories.