Documentation
¶
Overview ¶
Package generator provides tools to generate ObjectBox entity bindings between GO structs & ObjectBox schema
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindingFile ¶
func ModelInfoFile ¶
Types ¶
type Annotation ¶
type Annotation struct {
Value string
}
type Binding ¶
func (*Binding) UsesFbUtils ¶
called from the template avoid GO error "imported and not used"
type Entity ¶
type Entity struct {
Name string
Id id
Uid uid
Properties []*Property
IdProperty *Property
LastPropertyId modelinfo.IdUid
// contains filtered or unexported fields
}
func (*Entity) HasNonIdProperty ¶
called from the template avoid GO error "variable declared and not used"
type Property ¶
type Property struct {
Name string
ObName string
Id id
Uid uid
Annotations map[string]*Annotation
ObType string
ObFlags []string
GoType string
FbType string
Relation *Relation
Index *Index
// contains filtered or unexported fields
}
func (*Property) FbvTableOffset ¶
calculates flatbuffers vTableOffset called from the template
Click to show internal directories.
Click to hide internal directories.