perf

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EntityBinding = entity_{
	Id:  1,
	Uid: 1737161401460991620,
}

Functions

func ObjectBoxModel

func ObjectBoxModel() *objectbox.Model

Types

type Entity

type Entity struct {
	Id      uint64
	Int32   int32
	Int64   int64
	String  string
	Float64 float64
}

type EntityBox

type EntityBox struct {
	*objectbox.Box
}

func BoxForEntity

func BoxForEntity(ob *objectbox.ObjectBox) *EntityBox

func (*EntityBox) Get

func (box *EntityBox) Get(id uint64) (*Entity, error)

func (*EntityBox) GetAll

func (box *EntityBox) GetAll() ([]*Entity, error)

func (*EntityBox) Remove

func (box *EntityBox) Remove(entity *Entity) (err error)

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

func CreateExecutor

func CreateExecutor(dbName string) *Executor

func (*Executor) ChangeValues

func (perf *Executor) ChangeValues(items []*Entity)

func (*Executor) Close

func (perf *Executor) Close()

func (*Executor) PrepareData

func (perf *Executor) PrepareData(count int) []*Entity

func (*Executor) PrintTimes

func (perf *Executor) PrintTimes(functions []string)

func (*Executor) PutAll

func (perf *Executor) PutAll(items []*Entity)

func (*Executor) PutAsync

func (perf *Executor) PutAsync(items []*Entity)

func (*Executor) ReadAll

func (perf *Executor) ReadAll(count int) []*Entity

func (*Executor) RemoveAll

func (perf *Executor) RemoveAll()

func (*Executor) UpdateAll

func (perf *Executor) UpdateAll(items []*Entity)

Jump to

Keyboard shortcuts

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