package
2.0.0+incompatible
Repository: https://github.com/objectbox/objectbox-go.git
Documentation: pkg.go.dev
# Packages
Package fbutils provides utilities for the FlatBuffers in ObjectBox.
# Functions
Alias wraps a string as an identifier usable for Query.Set*Params*() methods.
All provides a way to combine multiple query conditions (equivalent to AND logical operator).
Any provides a way to combine multiple query conditions (equivalent to OR logical operator).
NanoTimeInt64ConvertToDatabaseValue converts time.Time to Unix timestamp in nanoseconds (internal format expected by ObjectBox on a date-nano field).
NanoTimeInt64ConvertToEntityProperty converts Unix timestamp in nanoseconds (ObjectBox date-nano field) to time.Time.
StringIdConvertToDatabaseValue implements "StringIdConvert" property value converter.
StringIdConvertToEntityProperty implements "StringIdConvert" property value converter.
TimeBinaryConvertToDatabaseValue uses time.Time.MarshalBinary() to encode time.Time.
TimeBinaryConvertToEntityProperty uses time.Time.UnmarshalBinary() to decode time.Time.
TimeInt64ConvertToDatabaseValue converts time.Time to Unix timestamp in milliseconds (internal format expected by ObjectBox on a date field) NOTE - you lose precision - anything smaller then milliseconds is dropped.
TimeInt64ConvertToEntityProperty converts Unix timestamp in milliseconds (ObjectBox date field) to time.Time NOTE - you lose precision - anything smaller then milliseconds is dropped.
TimeTextConvertToDatabaseValue uses time.Time.MarshalText() to encode time.Time into RFC 3339 formatted string.
TimeTextConvertToEntityProperty uses time.Time.UnmarshalText() to decode RFC 3339 formatted string to time.Time.
# Structs
BaseProperty serves as a common base for all the property types.
Entity is used to specify model in the generated binding code.
PropertyBool holds information about a property and provides query building methods.
PropertyByte holds information about a property and provides query building methods.
PropertyByteVector holds information about a property and provides query building methods.
PropertyFloat32 holds information about a property and provides query building methods.
PropertyFloat64 holds information about a property and provides query building methods.
PropertyInt holds information about a property and provides query building methods.
PropertyInt16 holds information about a property and provides query building methods.
PropertyInt32 holds information about a property and provides query building methods.
PropertyInt64 holds information about a property and provides query building methods.
PropertyInt8 holds information about a property and provides query building methods.
PropertyRune holds information about a property and provides query building methods.
PropertyString holds information about a property and provides query building methods.
PropertyStringVector holds information about a property and provides query building methods.
PropertyUint holds information about a property and provides query building methods.
PropertyUint16 holds information about a property and provides query building methods.
PropertyUint32 holds information about a property and provides query building methods.
PropertyUint64 holds information about a property and provides query building methods.
PropertyUint8 holds information about a property and provides query building methods.
RelationToMany holds information about a standalone relation link between two entities.
RelationToOne holds information about a relation link on a property.
# Interfaces
Condition is used by Query to limit object selection or specify their order.
# Type aliases
ConditionId is a condition identifier type, used when building queries.