Documentation ¶
Index ¶
- func DecodeBindVariablesBson(buf *bytes.Buffer, kind byte) (bindVars map[string]interface{})
- func DecodeResultsBson(buf *bytes.Buffer, kind byte) (results []mproto.QueryResult)
- func EncodeBindVariablesBson(buf *bytes2.ChunkedWriter, key string, bindVars map[string]interface{})
- func EncodeQueriesBson(queries []BoundQuery, key string, buf *bytes2.ChunkedWriter)
- func EncodeResultsBson(results []mproto.QueryResult, key string, buf *bytes2.ChunkedWriter)
- type BoundQuery
- type DDLInvalidate
- type DmlType
- type Query
- type QueryList
- type QueryResultList
- type Session
- type SessionInfo
- type SessionParams
- type TransactionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBindVariablesBson ¶
func DecodeResultsBson ¶
func DecodeResultsBson(buf *bytes.Buffer, kind byte) (results []mproto.QueryResult)
func EncodeBindVariablesBson ¶
func EncodeBindVariablesBson(buf *bytes2.ChunkedWriter, key string, bindVars map[string]interface{})
func EncodeQueriesBson ¶
func EncodeQueriesBson(queries []BoundQuery, key string, buf *bytes2.ChunkedWriter)
func EncodeResultsBson ¶
func EncodeResultsBson(results []mproto.QueryResult, key string, buf *bytes2.ChunkedWriter)
Types ¶
type BoundQuery ¶
func DecodeQueriesBson ¶
func DecodeQueriesBson(buf *bytes.Buffer, kind byte) (queries []BoundQuery)
func (*BoundQuery) MarshalBson ¶
func (bdq *BoundQuery) MarshalBson(buf *bytes2.ChunkedWriter, key string)
func (*BoundQuery) UnmarshalBson ¶
func (bdq *BoundQuery) UnmarshalBson(buf *bytes.Buffer, kind byte)
type DDLInvalidate ¶
type DDLInvalidate struct {
DDL string
}
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)
type QueryList ¶
type QueryList struct { Queries []BoundQuery SessionId int64 TransactionId int64 }
func (*QueryList) MarshalBson ¶
func (ql *QueryList) MarshalBson(buf *bytes2.ChunkedWriter, key string)
type QueryResultList ¶
type QueryResultList struct {
List []mproto.QueryResult
}
func (*QueryResultList) MarshalBson ¶
func (qrl *QueryResultList) MarshalBson(buf *bytes2.ChunkedWriter, key string)
func (*QueryResultList) UnmarshalBson ¶
func (qrl *QueryResultList) UnmarshalBson(buf *bytes.Buffer, kind byte)
type Session ¶
func (*Session) MarshalBson ¶
func (session *Session) MarshalBson(buf *bytes2.ChunkedWriter, key string)
type SessionInfo ¶
type SessionInfo struct {
SessionId int64
}
type SessionParams ¶
type TransactionInfo ¶
type TransactionInfo struct {
TransactionId int64
}
Click to show internal directories.
Click to hide internal directories.