Versions in this module Expand all Collapse all v4 v4.0.0 Nov 4, 2024 Changes in this version + const HnswDistanceType_Cosine + const HnswDistanceType_DotProduct + const HnswDistanceType_DotProductNonNormalized + const HnswDistanceType_Euclidean + const HnswDistanceType_Unknown + const ModelVersion + var EntityFlagNames = map[EntityFlags]string + var HnswFlagNames = map[HnswFlags]string + var HnswFlagValues = map[string]HnswFlags + var PropertyFlagNames = map[PropertyFlags]string + var PropertyTypeNames = map[PropertyType]string + type Entity struct + Comments []string + CurrentlyPresent bool + Flags EntityFlags + Id IdUid + LastPropertyId IdUid + Meta EntityMeta + Model *ModelInfo + Name string + Properties []*Property + Relations []*StandaloneRelation + UidRequest bool + func CreateEntity(model *ModelInfo, id Id, uid Uid) *Entity + func (entity *Entity) AddFlag(flag EntityFlags) + func (entity *Entity) AutosetIdProperty(acceptedTypes []PropertyType) error + func (entity *Entity) CreateProperty() (*Property, error) + func (entity *Entity) CreateRelation() (*StandaloneRelation, error) + func (entity *Entity) FindPropertyByName(name string) (*Property, error) + func (entity *Entity) FindPropertyByUid(uid Uid) (*Property, error) + func (entity *Entity) FindRelationByName(name string) (*StandaloneRelation, error) + func (entity *Entity) FindRelationByUid(uid Uid) (*StandaloneRelation, error) + func (entity *Entity) IdProperty() (*Property, error) + func (entity *Entity) RemoveProperty(property *Property) error + func (entity *Entity) RemoveRelation(relation *StandaloneRelation) error + func (entity *Entity) Validate() (err error) + type EntityFlags int32 + const EntityFlagSharedGlobalIds + const EntityFlagSyncEnabled + type EntityMeta interface + Merge func(entity *Entity) EntityMeta + type HnswDistanceType string + type HnswFlags int32 + const HnswFlagDebugLogs + const HnswFlagDebugLogsDetailed + const HnswFlagNone + const HnswFlagReparationLimitCandidates + const HnswFlagVectorCacheSimdPaddingOff + type HnswParams struct + Dimensions *uint64 + DistanceType string + Flags *HnswFlags + IndexingSearchCount *uint32 + NeighborsPerNode *uint32 + ReparationBacklinkProbability *float32 + VectorCacheHintSizeKb *uint64 + type Id = uint32 + type IdUid string + func CreateIdUid(id Id, uid Uid) IdUid + func (str *IdUid) Get() (Id, Uid, error) + func (str *IdUid) GetId() (Id, error) + func (str *IdUid) GetIdAllowZero() (Id, error) + func (str *IdUid) GetUid() (Uid, error) + func (str *IdUid) GetUidAllowZero() (Uid, error) + func (str *IdUid) Validate() error + type ModelInfo struct + Entities []*Entity + LastEntityId IdUid + LastIndexId IdUid + LastRelationId IdUid + MinimumParserVersion int + ModelVersion int + Note1 string + Note2 string + Note3 string + Rand *rand.Rand + RetiredEntityUids []Uid + RetiredIndexUids []Uid + RetiredPropertyUids []Uid + RetiredRelationUids []Uid + Version int + func LoadModelFromJSONFile(path string) (model *ModelInfo, err error) + func LoadOrCreateModel(path string) (model *ModelInfo, err error) + func (model *ModelInfo) CheckRelationCycles() error + func (model *ModelInfo) Close() error + func (model *ModelInfo) CreateEntity(name string) (*Entity, error) + func (model *ModelInfo) EntitiesWithMeta() []*Entity + func (model *ModelInfo) Finalize() error + func (model *ModelInfo) FindEntityByName(name string) (*Entity, error) + func (model *ModelInfo) FindEntityByUid(uid Uid) (*Entity, error) + func (model *ModelInfo) GenerateUid() (Uid, error) + func (model *ModelInfo) RemoveEntity(entity *Entity) error + func (model *ModelInfo) Validate() (err error) + func (model *ModelInfo) Write() error + type Property struct + Comments []string + Entity *Entity + Flags PropertyFlags + HnswParams *HnswParams + Id IdUid + IndexId *IdUid + Meta PropertyMeta + Name string + RelationTarget string + Type PropertyType + UidRequest bool + func CreateProperty(entity *Entity, id Id, uid Uid) *Property + func (property *Property) AddFlag(flag PropertyFlags) + func (property *Property) CheckHnswParams() error + func (property *Property) CreateHnswParams() error + func (property *Property) CreateIndex() error + func (property *Property) FbSlot() int + func (property *Property) FbvTableOffset() (uint16, error) + func (property *Property) IsIdProperty() bool + func (property *Property) RemoveIndex() error + func (property *Property) SetIndex() error + func (property *Property) Validate() error + type PropertyFlags int32 + const PropertyFlagId + const PropertyFlagIdCompanion + const PropertyFlagIdMonotonicSequence + const PropertyFlagIdSelfAssignable + const PropertyFlagIndexHash + const PropertyFlagIndexHash64 + const PropertyFlagIndexPartialSkipNull + const PropertyFlagIndexPartialSkipZero + const PropertyFlagIndexed + const PropertyFlagNonPrimitiveType + const PropertyFlagNotNull + const PropertyFlagReserved + const PropertyFlagUnique + const PropertyFlagUnsigned + const PropertyFlagVirtual + type PropertyMeta interface + Merge func(property *Property) PropertyMeta + type PropertyType int8 + const PropertyTypeBool + const PropertyTypeByte + const PropertyTypeByteVector + const PropertyTypeChar + const PropertyTypeDate + const PropertyTypeDateNano + const PropertyTypeDouble + const PropertyTypeFloat + const PropertyTypeFloatVector + const PropertyTypeInt + const PropertyTypeLong + const PropertyTypeRelation + const PropertyTypeShort + const PropertyTypeString + const PropertyTypeStringVector + type StandaloneRelation struct + Id IdUid + Meta StandaloneRelationMeta + Name string + Target *Entity + TargetId IdUid + UidRequest bool + func CreateStandaloneRelation(entity *Entity, id IdUid) *StandaloneRelation + func (relation *StandaloneRelation) SetTarget(entity *Entity) + func (relation *StandaloneRelation) Validate() error + type StandaloneRelationMeta interface + Merge func(relation *StandaloneRelation) StandaloneRelationMeta + type Uid = uint64 v4.0.0-beta Aug 22, 2024 v4.0.0-alpha3 Aug 20, 2024 Other modules containing this package github.com/objectbox/objectbox-generator