Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundQuery ¶
func (*BoundQuery) MarshalBson ¶
func (boundQuery *BoundQuery) MarshalBson(buf *bytes2.ChunkedWriter, key string)
MarshalBson bson-encodes BoundQuery.
func (*BoundQuery) UnmarshalBson ¶
func (boundQuery *BoundQuery) UnmarshalBson(buf *bytes.Buffer, kind byte)
UnmarshalBson bson-decodes into BoundQuery.
type Query ¶
type Query struct { Sql string BindVariables map[string]interface{} SessionId int64 TransactionId int64 }
func (*Query) MarshalBson ¶
func (query *Query) MarshalBson(buf *bytes2.ChunkedWriter, key string)
MarshalBson bson-encodes Query.
type QueryList ¶
type QueryList struct { Queries []BoundQuery SessionId int64 TransactionId int64 }
func (*QueryList) MarshalBson ¶
func (queryList *QueryList) MarshalBson(buf *bytes2.ChunkedWriter, key string)
MarshalBson bson-encodes QueryList.
type QueryResultList ¶
type QueryResultList struct {
List []mproto.QueryResult
}
func (*QueryResultList) MarshalBson ¶
func (queryResultList *QueryResultList) MarshalBson(buf *bytes2.ChunkedWriter, key string)
MarshalBson bson-encodes QueryResultList.
func (*QueryResultList) UnmarshalBson ¶
func (queryResultList *QueryResultList) UnmarshalBson(buf *bytes.Buffer, kind byte)
UnmarshalBson bson-decodes into QueryResultList.
type QuerySplit ¶
type QuerySplit struct { Query BoundQuery RowCount int64 }
QuerySplit represents a split of SplitQueryRequest.Query. RowCount is only approximate.
type Session ¶
func (*Session) MarshalBson ¶
func (session *Session) MarshalBson(buf *bytes2.ChunkedWriter, key string)
MarshalBson bson-encodes Session.
type SessionInfo ¶
type SessionInfo struct {
SessionId int64
}
type SessionParams ¶
type SplitQueryRequest ¶
type SplitQueryRequest struct { Query BoundQuery SplitCount int }
SplitQueryRequest represents a request to split a Query into queries that each return a subset of the original query.
type SplitQueryResult ¶
type SplitQueryResult struct {
Queries []QuerySplit
}
SplitQueryResult represents the result of a SplitQueryRequest
type TransactionInfo ¶
type TransactionInfo struct {
TransactionId int64
}
Click to show internal directories.
Click to hide internal directories.