Documentation ¶
Index ¶
- Constants
- func DeserializeComposite(serialized []byte) ([][]byte, error)
- func SerializeComposite(compositeKey [][]byte) []byte
- func TxDelete(tx *bolt.Tx, collection []byte, keys ...[]byte) (err error)
- func TxDeleteIndex(tx *bolt.Tx, collection, index []byte) error
- func TxIndex(tx *bolt.Tx, collection, index, value []byte, compositeKey [][]byte) error
- func TxIndexMatchAll(tx *bolt.Tx, collection, index []byte, values ...[]byte) ([][]byte, error)
- func TxIndexMatchAny(tx *bolt.Tx, collection, index []byte, values ...[]byte) ([][]byte, error)
- func TxQuery(tx *bolt.Tx, query *Query) ([][]byte, error)
- func TxStore(tx *bolt.Tx, collection []byte, compositeKey [][]byte, value []byte) error
- type DataStore
- type Query
- type Term
Constants ¶
View Source
const ( EQ = iota RANGE IN ANY NOT )
Variables ¶
This section is empty.
Functions ¶
func DeserializeComposite ¶
deserializeComposite deserializes a composite key that was stored in an index
func SerializeComposite ¶
serializeComposite serializes the composite key to be stored in an index
func TxDeleteIndex ¶
TxDeleteIndex deletes the specified index in the given transaction
func TxIndexMatchAll ¶
TxIndexMatchAll queries for items using the given index and the values that were indexed
func TxIndexMatchAny ¶
TxIndexMatchAny queries for items using the given index and the values that were indexed
Types ¶
type DataStore ¶
DataStore adds composite key support to BoltDB
func (DataStore) DeleteIndex ¶
TxDeleteIndex deletes the specified index
Click to show internal directories.
Click to hide internal directories.