Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consistency ¶
type Consistency uint16
Consistency is Cassandra's consistency level for queries.
const ( // Any ... Any Consistency = 0x00 // One ... One Consistency = 0x01 // Two ... Two Consistency = 0x02 // Three ... Three Consistency = 0x03 // Quorum ... Quorum Consistency = 0x04 // All ... All Consistency = 0x05 // LocalQuorum ... LocalQuorum Consistency = 0x06 // EachQuorum ... EachQuorum Consistency = 0x07 // LocalOne ... LocalOne Consistency = 0x0A )
type Query ¶
type Query interface { UpdateQuery Iter() Iterator Bind(v ...interface{}) Query Consistency(level Consistency) Query PageSize(int) Query }
Query is an abstraction of gocql.Query
type UpdateQuery ¶
type UpdateQuery interface { Exec() error String() string // ScanCAS executes a lightweight transaction (i.e. an UPDATE or INSERT // statement containing an IF clause). If the transaction fails because // the existing values did not match, the previous values will be stored // in dest. ScanCAS(dest ...interface{}) (bool, error) }
UpdateQuery is a subset of Query just for updates
Click to show internal directories.
Click to hide internal directories.