model

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TaskBinding = task_EntityInfo{
	Id:  1,
	Uid: 1306759095002958910,
}
View Source
var Task_ = struct {
	Id           objectbox.TypeId
	Text         objectbox.TypeId
	DateCreated  objectbox.TypeId
	DateFinished objectbox.TypeId
}{
	Id:           1,
	Text:         2,
	DateCreated:  3,
	DateFinished: 4,
}

Functions

func ObjectBoxModel

func ObjectBoxModel() *objectbox.Model

Types

type Task

type Task struct {
	Id           uint64
	Text         string
	DateCreated  int64
	DateFinished int64
}

type TaskBox

type TaskBox struct {
	*objectbox.Box
}

func BoxForTask

func BoxForTask(ob *objectbox.ObjectBox) *TaskBox

func (*TaskBox) Get

func (box *TaskBox) Get(id uint64) (*Task, error)

func (*TaskBox) GetAll

func (box *TaskBox) GetAll() ([]*Task, error)

func (*TaskBox) Put added in v0.7.0

func (box *TaskBox) Put(object *Task) (uint64, error)

func (*TaskBox) PutAll added in v0.7.0

func (box *TaskBox) PutAll(objects []*Task) ([]uint64, error)

func (*TaskBox) PutAsync added in v0.7.0

func (box *TaskBox) PutAsync(object *Task) (uint64, error)

func (*TaskBox) Remove

func (box *TaskBox) Remove(object *Task) (err error)

Jump to

Keyboard shortcuts

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