relgomlib

package
v0.705.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ModelMetadataKey modelMetadataKey = 0

Variables

This section is empty.

Functions

func NewID

func NewID(relations frozen.Map) (frozen.Map, uint64)

func PanicIfRequiredFieldsNotSet

func PanicIfRequiredFieldsNotSet(entityMasks []uint64, requiredFieldsMasks []uint64, fieldsCommalist string)

PanicIfRequiredFieldsNotSet checks the mask and panics if any required fields were not set. It takes a fieldsCommaList instead of a slice to ensure efficiency of successful scenarios.

func UpdateMaskForFieldButPanicIfAlreadySet

func UpdateMaskForFieldButPanicIfAlreadySet(entityMask *uint64, fieldMask uint64)

UpdateMaskForFieldButPanicIfAlreadySet checks the mask and panics if the field was already set.

Types

type DateTimeString

type DateTimeString string

func NewDateTimeString

func NewDateTimeString(t *time.Time) *DateTimeString

func NewDateTimeStringReq added in v0.666.0

func NewDateTimeStringReq(t time.Time) DateTimeString

func (*DateTimeString) Unstage

func (s *DateTimeString) Unstage() (*time.Time, error)

func (DateTimeString) UnstageReq added in v0.666.0

func (s DateTimeString) UnstageReq() (time.Time, error)

type EntityTypeStaticMetadata

type EntityTypeStaticMetadata struct {
	PKMask       []uint64
	RequiredMask []uint64
}

type ModelMetadata

type ModelMetadata struct {
	LastID uint64
}

ModelMetadata holds extra data common to all relgom-generated models.

type Relation

type Relation interface {
	Count() int
}

type RelationMapBuilder

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

func NewRelationMapBuilder

func NewRelationMapBuilder(relations frozen.Map) RelationMapBuilder

func (RelationMapBuilder) Map

func (RelationMapBuilder) Set

func (b RelationMapBuilder) Set(name string, key interface{})

type RelationMapExtractor

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

func NewRelationMapExtractor

func NewRelationMapExtractor(relations frozen.Map) RelationMapExtractor

func (RelationMapExtractor) Set

func (b RelationMapExtractor) Set(name string, key, relationDataPtr interface{})

func (RelationMapExtractor) UnmarshalRelationDataJSON

func (b RelationMapExtractor) UnmarshalRelationDataJSON(data []byte) (frozen.Map, error)

Jump to

Keyboard shortcuts

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