Documentation ¶
Index ¶
- Variables
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameter) GetB() bool
- func (x *Parameter) GetD() float64
- func (x *Parameter) GetI() int64
- func (x *Parameter) GetName() string
- func (x *Parameter) GetS() string
- func (m *Parameter) GetValue() isParameter_Value
- func (x *Parameter) GetY() []byte
- func (*Parameter) ProtoMessage()
- func (x *Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameter) Reset()
- func (x *Parameter) String() string
- type Parameter_B
- type Parameter_D
- type Parameter_I
- type Parameter_S
- type Parameter_Y
- type Query
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetError() string
- func (x *Result) GetLastInsertId() int64
- func (x *Result) GetRowsAffected() int64
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Results
- type Statement
Constants ¶
This section is empty.
Variables ¶
var File_quarterdeck_query_v1beta1_query_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter struct { // Types that are assignable to Value: // // *Parameter_I // *Parameter_D // *Parameter_B // *Parameter_Y // *Parameter_S Value isParameter_Value `protobuf_oneof:"value"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Parameter holds a primitive value for passing as a placeholder to a sqlite query.
func (*Parameter) Descriptor
deprecated
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶
func (x *Parameter) ProtoReflect() protoreflect.Message
type Parameter_B ¶
type Parameter_B struct {
B bool `protobuf:"varint,3,opt,name=b,proto3,oneof"`
}
type Parameter_D ¶
type Parameter_D struct {
D float64 `protobuf:"fixed64,2,opt,name=d,proto3,oneof"`
}
type Parameter_I ¶
type Parameter_I struct {
I int64 `protobuf:"zigzag64,1,opt,name=i,proto3,oneof"`
}
type Parameter_S ¶
type Parameter_S struct {
S string `protobuf:"bytes,5,opt,name=s,proto3,oneof"`
}
type Parameter_Y ¶
type Parameter_Y struct {
Y []byte `protobuf:"bytes,4,opt,name=y,proto3,oneof"`
}
type Query ¶
type Query struct { Transaction bool `protobuf:"varint,1,opt,name=transaction,proto3" json:"transaction,omitempty"` Statements []*Statement `protobuf:"bytes,2,rep,name=statements,proto3" json:"statements,omitempty"` // contains filtered or unexported fields }
A collection of statements that can be executed independently or inside of a single transaction. If the transaction flag is true, then all statements are executed inside of a transaction and a single result returned. Otherwise all statements are executed independently and a result for each statement is returned.
func (*Query) Descriptor
deprecated
func (*Query) GetStatements ¶
func (*Query) GetTransaction ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type Result ¶
type Result struct { LastInsertId int64 `protobuf:"varint,1,opt,name=last_insert_id,json=lastInsertId,proto3" json:"last_insert_id,omitempty"` RowsAffected int64 `protobuf:"varint,2,opt,name=rows_affected,json=rowsAffected,proto3" json:"rows_affected,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
Result holds the results of an Exec query against the database.
func (*Result) Descriptor
deprecated
func (*Result) GetLastInsertId ¶
func (*Result) GetRowsAffected ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Results ¶
type Results struct { Results []*Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
Results returns one or more results for a query.
func (*Results) Descriptor
deprecated
func (*Results) GetResults ¶
func (*Results) ProtoMessage ¶
func (*Results) ProtoMessage()
func (*Results) ProtoReflect ¶
func (x *Results) ProtoReflect() protoreflect.Message
type Statement ¶
type Statement struct { Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"` Parameters []*Parameter `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty"` // contains filtered or unexported fields }
A single SQL statement that is parameterized by ? placeholders along with the values that should be passed in a secure fashion to those placeholders.
func (*Statement) Descriptor
deprecated
func (*Statement) GetParameters ¶
func (*Statement) ProtoMessage ¶
func (*Statement) ProtoMessage()
func (*Statement) ProtoReflect ¶
func (x *Statement) ProtoReflect() protoreflect.Message