tmdb

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

Error just implements the error interface for TopicMapNotSpecifiedError.

type Txn

type Txn struct {
	models.Txn
}

Txn corresponds to an underlying ACID transaction and is the gateway to all the storage and retrieval features provided by this package.

func NewTxn

func NewTxn(ms models.Txn) Txn

NewTxn is a low-level function for creating a Txn

func (Txn) Merge

func (tx Txn) Merge(t *pb.AnyItem) error

Merge merges any topic map item into the backing store.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL