...
Package txn
import "bitbucket.org/twicedb/twicedb-go/client/txn"
- Overview
- Index
Package txn provides a struct and utilities for working with transactions in
TwiceDB.
- type Txn
- func NewEventTxn(ev shared.Event) *Txn
- func NewTxn() *Txn
- func (t *Txn) Delete(objectId shared.ObjectId, lastRead shared.Tt, vtFrom shared.Vt)
- func (t *Txn) DeleteObject(object capi.Indexable, vtFrom shared.Vt) error
- func (t *Txn) Event() (shared.Event, error)
- func (t *Txn) HasEvent() bool
- func (t *Txn) Objects() []capi.Indexable
- func (t *Txn) Put(objectId shared.ObjectId, lastRead shared.Tt, vtFrom shared.Vt, blob *shared.Blob)
- func (t *Txn) PutObject(object capi.Indexable, vtFrom shared.Vt) error
- func (t *Txn) Reinstate(objectId shared.ObjectId, lastRead shared.Tt, vtFrom shared.Vt)
- func (t *Txn) ReinstateObject(object capi.Indexable, vtFrom shared.Vt) error
- func (t *Txn) SetEvent(ev shared.Event) error
- func (t *Txn) WriteCommands() []*writerp.WriteRequest_WriteCommand
Package files
doc.go
txn.go
type Txn struct {
}
func NewEventTxn(ev shared.Event) *Txn
func NewTxn() *Txn
func (t *Txn) Delete(objectId shared.ObjectId, lastRead shared.Tt, vtFrom shared.Vt)
func (t *Txn) DeleteObject(object capi.Indexable, vtFrom shared.Vt) error
func (*Txn) Event
¶
func (t *Txn) Event() (shared.Event, error)
func (t *Txn) HasEvent() bool
func (t *Txn) Objects() []capi.Indexable
func (*Txn) Put
¶
func (t *Txn) Put(objectId shared.ObjectId, lastRead shared.Tt, vtFrom shared.Vt, blob *shared.Blob)
func (t *Txn) PutObject(object capi.Indexable, vtFrom shared.Vt) error
func (t *Txn) Reinstate(objectId shared.ObjectId, lastRead shared.Tt, vtFrom shared.Vt)
func (t *Txn) ReinstateObject(object capi.Indexable, vtFrom shared.Vt) error
func (t *Txn) SetEvent(ev shared.Event) error
func (t *Txn) WriteCommands() []*writerp.WriteRequest_WriteCommand