Documentation ¶
Index ¶
- Constants
- Variables
- type Cluster
- type Consistency
- type Future
- type Iter
- type Prepared
- type Query
- type Result
- func (result *Result) ColumnCount() uint64
- func (result *Result) ColumnName(index uint64) string
- func (result *Result) ColumnType(index uint64) int
- func (result *Result) Finalize()
- func (result *Result) HasMorePages() bool
- func (result *Result) Next() bool
- func (result *Result) RowCount() uint64
- func (result *Result) Scan(args ...interface{}) error
- type Session
- type Statement
- type Uuid
- type UuidGenerator
Constants ¶
View Source
const ( CASS_VALUE_TYPE_UNKNOWN = 0xFFFF CASS_VALUE_TYPE_CUSTOM = 0x0000 CASS_VALUE_TYPE_ASCII = 0x0001 CASS_VALUE_TYPE_BIGINT = 0x0002 CASS_VALUE_TYPE_BLOB = 0x0003 CASS_VALUE_TYPE_BOOLEAN = 0x0004 CASS_VALUE_TYPE_COUNTER = 0x0005 CASS_VALUE_TYPE_DECIMAL = 0x0006 CASS_VALUE_TYPE_DOUBLE = 0x0007 CASS_VALUE_TYPE_FLOAT = 0x0008 CASS_VALUE_TYPE_INT = 0x0009 CASS_VALUE_TYPE_TEXT = 0x000A CASS_VALUE_TYPE_TIMESTAMP = 0x000B CASS_VALUE_TYPE_UUID = 0x000C CASS_VALUE_TYPE_VARCHAR = 0x000D CASS_VALUE_TYPE_VARINT = 0x000E CASS_VALUE_TYPE_TIMEUUID = 0x000F CASS_VALUE_TYPE_INET = 0x0010 CASS_VALUE_TYPE_LIST = 0x0020 CASS_VALUE_TYPE_MAP = 0x0021 CASS_VALUE_TYPE_SET = 0x0022 )
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrUnsupported = errors.New("feature not supported") ErrTooManyStmts = errors.New("too many statements") ErrSessionClosed = errors.New("session has been closed") ErrNoConnections = errors.New("no connections available") ErrNoKeyspace = errors.New("no keyspace provided") ErrNoMetadata = errors.New("no metadata available") )
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶
func NewCluster() *Cluster
func (*Cluster) SessionConnect ¶
func (*Cluster) SetContactPoints ¶
type Consistency ¶
type Consistency uint16
const ( Any Consistency = 0x00 One Consistency = 0x01 Two Consistency = 0x02 Three Consistency = 0x03 Quorum Consistency = 0x04 All Consistency = 0x05 LocalQuorum Consistency = 0x06 EachQuorum Consistency = 0x07 LocalOne Consistency = 0x0A )
func (Consistency) String ¶
func (c Consistency) String() string
type Iter ¶
type Iter struct {
// contains filtered or unexported fields
}
Iter represents an iterator that can be used to iterate over all rows that were returned by a query. The iterator might send additional queries to the database during the iteration if paging was enabled.
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) Consistency ¶
func (q *Query) Consistency(c Consistency) *Query
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) ColumnCount ¶
func (*Result) ColumnName ¶
func (*Result) ColumnType ¶
func (*Result) HasMorePages ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession() *Session
type Statement ¶
type Statement struct {
// contains filtered or unexported fields
}
func NewStatement ¶
type UuidGenerator ¶
type UuidGenerator struct {
// contains filtered or unexported fields
}
func NewUuidGenerator ¶
func NewUuidGenerator() *UuidGenerator
func NewUuidGeneratorWithNode ¶
func NewUuidGeneratorWithNode(node uint64) *UuidGenerator
func (*UuidGenerator) Finalize ¶
func (generator *UuidGenerator) Finalize()
func (*UuidGenerator) NewUuidFromTime ¶
func (generator *UuidGenerator) NewUuidFromTime(timestamp uint64) *Uuid
func (*UuidGenerator) NewUuidGenRandom ¶
func (generator *UuidGenerator) NewUuidGenRandom() *Uuid
func (*UuidGenerator) NewUuidGenTime ¶
func (generator *UuidGenerator) NewUuidGenTime() *Uuid
Click to show internal directories.
Click to hide internal directories.