Documentation ¶
Index ¶
Constants ¶
View Source
const ( NEURODB_RETURNDATA byte = 1 NEURODB_SELECTDB byte = 2 NEURODB_EOF byte = 3 NEURODB_NODES byte = 6 NEURODB_LINKS byte = 7 NEURODB_EXIST byte = 17 NEURODB_NIL byte = 18 NEURODB_RECORD byte = 19 NEURODB_RECORDS byte = 20 NDB_6BITLEN byte = 0 NDB_14BITLEN byte = 1 NDB_32BITLEN byte = 2 NDB_ENCVAL byte = 3 VO_STRING byte = 1 VO_NUM byte = 2 VO_STRING_ARRY byte = 3 VO_NUM_ARRY byte = 4 VO_NODE byte = 5 VO_LINK byte = 6 VO_PATH byte = 7 VO_VAR byte = 8 VO_VAR_PATTERN byte = 9 )
View Source
const (
DefaultMsgBuffSize = 1024
)
Variables ¶
View Source
var ErrUnknownType = errors.New("Error Type")
View Source
var ParseOk = 1
Functions ¶
Types ¶
type MsgHeadType ¶
type MsgHeadType byte
const ( MsgTypeParseOk MsgHeadType = '@' MsgTypeSetMsg1 MsgHeadType = '$' MsgTypeSetMsg2 MsgHeadType = '#' MsgTypeParseObject MsgHeadType = '*' )
type NeuroDBConn ¶
A connection of neurodb, it's thread safe
func NewNeuroDBConn ¶
func NewNeuroDBConn(addr string, port int) (NeuroDBConn, error)
type NeuroDBDriver ¶
type NeuroDBDriver struct {
// contains filtered or unexported fields
}
func (*NeuroDBDriver) ExecuteQuery ¶
func (n *NeuroDBDriver) ExecuteQuery(query string) (dbtype.ResultSet, error)
Click to show internal directories.
Click to hide internal directories.