connection

package
v0.0.0-...-e82adf8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 15 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(u *url.URL) (bool, error)

func CurrentDb

func CurrentDb(store store.Store, indexRootId, logRootId string, logTail []byte) (*database.Db, *log.Log)

func DbNameToId

func DbNameToId(dbName string) string

func Register

func Register(name string, connector Connector)

Types

type Connection

type Connection interface {
	Db() *database.Db
	Log() *txlog.Log
	Index(datoms []index.Datom) error
	Transact(datoms []transactor.TxDatum) (*transactor.TxResult, error)
}

func New

func New(u *url.URL) (Connection, error)

type Connector

type Connector func(u *url.URL) (Connection, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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