Documentation ¶
Overview ¶
Package tmdb is an application database library for storing topic maps.
As an application database library, it does not connect over a network to a remote service. Instead, the topic maps are stored locally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryOption ¶
type QueryOption interface {
// contains filtered or unexported methods
}
func QueryMaskOption ¶
func QueryMaskOption(ms ...pb.Mask) QueryOption
type TopicMapNotSpecifiedError ¶
type TopicMapNotSpecifiedError struct{}
TopicMapNotSpecifiedError indicates that a database operation failed because a topic map was not specified.
func (TopicMapNotSpecifiedError) Error ¶
func (e TopicMapNotSpecifiedError) Error() string
Error just implements the error interface for TopicMapNotSpecifiedError.
type Txn ¶
Txn corresponds to an underlying ACID transaction and is the gateway to all the storage and retrieval features provided by this package.
func (Txn) Query ¶
func (tx Txn) Query(expr *tmql.QueryExpression, os ...QueryOption) (*pb.TupleSequence, error)
Query returns a TupleSequence representing the results of evaluating `expr`.
func (Txn) QueryString ¶
func (tx Txn) QueryString(expr string, os ...QueryOption) (*pb.TupleSequence, error)
QueryString returns a TupleSequence representing the results of evaluating the TMQL query expressed in `expr`.
Directories ¶
Path | Synopsis |
---|---|
Package models implements storage and retrieval of topic maps in a local key-value store using package kv.
|
Package models implements storage and retrieval of topic maps in a local key-value store using package kv. |
internal/pb
Package pb includes protocol buffer message types.
|
Package pb includes protocol buffer message types. |