Documentation
¶
Index ¶
- func All[V any](s store.Store[loki.Entity], op RowOperation[V]) iter.Seq2[loki.Entity, V]
- func AllFor[V any](s store.Store[loki.Entity], row loki.Entity, op RowOperation[V]) iter.Seq[V]
- func AllOf1[V1 any](op1 RowOperation[V1]) ops.AllOf1[loki.Entity, V1]
- func AllOf2[V1, V2 any](op1 RowOperation[V1], op2 RowOperation[V2]) ops.AllOf2[loki.Entity, V1, V2]
- func AllOf3[V1, V2, V3 any](op1 RowOperation[V1], op2 RowOperation[V2], op3 RowOperation[V3]) ops.AllOf3[loki.Entity, V1, V2, V3]
- func AllOf4[V1, V2, V3, V4 any](op1 RowOperation[V1], op2 RowOperation[V2], op3 RowOperation[V3], ...) ops.AllOf4[loki.Entity, V1, V2, V3, V4]
- func AllOf5[V1, V2, V3, V4, V5 any](op1 RowOperation[V1], op2 RowOperation[V2], op3 RowOperation[V3], ...) ops.AllOf5[loki.Entity, V1, V2, V3, V4, V5]
- func AllOf6[V1, V2, V3, V4, V5, V6 any](op1 RowOperation[V1], op2 RowOperation[V2], op3 RowOperation[V3], ...) ops.AllOf6[loki.Entity, V1, V2, V3, V4, V5, V6]
- func AllOf7[V1, V2, V3, V4, V5, V6, V7 any](op1 RowOperation[V1], op2 RowOperation[V2], op3 RowOperation[V3], ...) ops.AllOf7[loki.Entity, V1, V2, V3, V4, V5, V6, V7]
- func AllOf8[V1, V2, V3, V4, V5, V6, V7, V8 any](op1 RowOperation[V1], op2 RowOperation[V2], op3 RowOperation[V3], ...) ops.AllOf8[loki.Entity, V1, V2, V3, V4, V5, V6, V7, V8]
- func AllOf9[V1, V2, V3, V4, V5, V6, V7, V8, V9 any](op1 RowOperation[V1], op2 RowOperation[V2], op3 RowOperation[V3], ...) ops.AllOf9[loki.Entity, V1, V2, V3, V4, V5, V6, V7, V8, V9]
- func AnyOf1[V any](op1 RowOperation[V]) ops.AnyOf1[loki.Entity, V]
- func AnyOf2[V any](op1, op2 RowOperation[V]) ops.AnyOf2[loki.Entity, V]
- func AnyOf3[V any](op1, op2, op3 RowOperation[V]) ops.AnyOf3[loki.Entity, V]
- func AnyOf4[V any](op1, op2, op3, op4 RowOperation[V]) ops.AnyOf4[loki.Entity, V]
- func AnyOf5[V any](op1, op2, op3, op4, op5 RowOperation[V]) ops.AnyOf5[loki.Entity, V]
- func AnyOf6[V any](op1, op2, op3, op4, op5, op6 RowOperation[V]) ops.AnyOf6[loki.Entity, V]
- func AnyOf7[V any](op1, op2, op3, op4, op5, op6, op7 RowOperation[V]) ops.AnyOf7[loki.Entity, V]
- func AnyOf8[V any](op1, op2, op3, op4, op5, op6, op7, op8 RowOperation[V]) ops.AnyOf8[loki.Entity, V]
- func AnyOf9[V any](op1, op2, op3, op4, op5, op6, op7, op8, op9 RowOperation[V]) ops.AnyOf9[loki.Entity, V]
- func Batch1[U1 ops.Unwrapper[V1], R loki.Component, V1 any](u *loki.Update, fn func(entity loki.Entity, attrs V1) (R, bool))
- func Batch2[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], R loki.Component, V1, V2 any](u *loki.Update, fn func(entity loki.Entity, attrs Values2[V1, V2]) (R, bool))
- func Batch3[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](u *loki.Update, ...)
- func Batch4[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](u *loki.Update, ...)
- func Batch5[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](u *loki.Update, ...)
- func Batch6[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](u *loki.Update, ...)
- func Batch7[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](u *loki.Update, ...)
- func Batch8[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](u *loki.Update, ...)
- func Batch9[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](u *loki.Update, ...)
- func Get[V any](s store.Store[loki.Entity], row loki.Entity, op RowOperation[V]) (V, bool)
- func GroupBy[K cmp.Ordered, V, U any](on Operation[V], key ops.KeyFn[V, K], merge ops.MergeFn[V, U]) ops.GroupBy[loki.Entity, K, V, U]
- func Join[L, R, V any](left Operation[L], right Operation[R], join ops.JoinFn[L, R, V]) ops.Join[loki.Entity, L, R, V]
- func Query[V any](op RowOperation[V]) ops.RowQuery[loki.Entity, V]
- func Select[V, U any](on Operation[V], fn ops.SelectFn[V, U]) ops.Select[loki.Entity, V, U]
- func SelectRow[V, U any](on RowOperation[V], fn ops.SelectFn[V, U]) ops.Select[loki.Entity, RowValue[V], RowValue[U]]
- type AllOf
- type AllSlots
- type AnyOf
- type Attribute
- type Behavior
- type Const
- type Defaulted
- type Ephemeral
- type Expression
- type Maybe
- type Operation
- type Optional
- type Read
- type ReadAll
- type ReadOptional
- type ReadSlots
- type ReadWithDefault
- type RowOperation
- func Calculate1[U1 ops.Unwrapper[V1], V1, R any](fn func(V1) (R, bool)) RowOperation[R]
- func Calculate2[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], V1, V2, R any](fn func(V1, V2) (R, bool)) RowOperation[R]
- func Calculate3[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](fn func(V1, V2, V3) (R, bool)) RowOperation[R]
- func Calculate4[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](fn func(V1, V2, V3, V4) (R, bool)) RowOperation[R]
- func Calculate5[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](fn func(V1, V2, V3, V4, V5) (R, bool)) RowOperation[R]
- func Calculate6[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](fn func(V1, V2, V3, V4, V5, V6) (R, bool)) RowOperation[R]
- func Calculate7[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](fn func(V1, V2, V3, V4, V5, V6, V7) (R, bool)) RowOperation[R]
- func Calculate8[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](fn func(V1, V2, V3, V4, V5, V6, V7, V8) (R, bool)) RowOperation[R]
- func Calculate9[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...](fn func(V1, V2, V3, V4, V5, V6, V7, V8, V9) (R, bool)) RowOperation[R]
- func RowAsAny[V any](op RowOperation[V]) RowOperation[any]
- type RowQuery
- func Query1[U1 ops.Unwrapper[V1], V1 any]() RowQuery[V1]
- func Query2[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], V1, V2 any]() RowQuery[Values2[V1, V2]]
- func Query3[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...]() RowQuery[Values3[V1, V2, V3]]
- func Query4[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...]() RowQuery[Values4[V1, V2, V3, V4]]
- func Query5[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...]() RowQuery[Values5[V1, V2, V3, V4, V5]]
- func Query6[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...]() RowQuery[Values6[V1, V2, V3, V4, V5, V6]]
- func Query7[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...]() RowQuery[Values7[V1, V2, V3, V4, V5, V6, V7]]
- func Query8[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...]() RowQuery[Values8[V1, V2, V3, V4, V5, V6, V7, V8]]
- func Query9[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], ...]() RowQuery[Values9[V1, V2, V3, V4, V5, V6, V7, V8, V9]]
- type RowValue
- type Slots
- type Slotted
- type Unwrap
- type Values1
- type Values2
- type Values3
- type Values4
- type Values5
- type Values6
- type Values7
- type Values8
- type Values9
- type Without
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllOf9 ¶
func AllOf9[V1, V2, V3, V4, V5, V6, V7, V8, V9 any]( op1 RowOperation[V1], op2 RowOperation[V2], op3 RowOperation[V3], op4 RowOperation[V4], op5 RowOperation[V5], op6 RowOperation[V6], op7 RowOperation[V7], op8 RowOperation[V8], op9 RowOperation[V9], ) ops.AllOf9[loki.Entity, V1, V2, V3, V4, V5, V6, V7, V8, V9]
func Batch7 ¶
func Batch7[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], U4 ops.Unwrapper[V4], U5 ops.Unwrapper[V5], U6 ops.Unwrapper[V6], U7 ops.Unwrapper[V7], R loki.Component, V1, V2, V3, V4, V5, V6, V7 any](u *loki.Update, fn func(entity loki.Entity, attrs Values7[V1, V2, V3, V4, V5, V6, V7]) (R, bool))
func Batch8 ¶
func Batch8[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], U4 ops.Unwrapper[V4], U5 ops.Unwrapper[V5], U6 ops.Unwrapper[V6], U7 ops.Unwrapper[V7], U8 ops.Unwrapper[V8], R loki.Component, V1, V2, V3, V4, V5, V6, V7, V8 any](u *loki.Update, fn func(entity loki.Entity, attrs Values8[V1, V2, V3, V4, V5, V6, V7, V8]) (R, bool))
func Batch9 ¶
func Batch9[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], U4 ops.Unwrapper[V4], U5 ops.Unwrapper[V5], U6 ops.Unwrapper[V6], U7 ops.Unwrapper[V7], U8 ops.Unwrapper[V8], U9 ops.Unwrapper[V9], R loki.Component, V1, V2, V3, V4, V5, V6, V7, V8, V9 any](u *loki.Update, fn func(entity loki.Entity, attrs Values9[V1, V2, V3, V4, V5, V6, V7, V8, V9]) (R, bool))
Types ¶
type AllSlots ¶
type AllSlots[C loki.SlottedComponent] struct{}
type Attribute ¶
type Attribute[C loki.AttributeType] struct{}
type Behavior ¶
type Behavior[C loki.BehaviorType] struct{}
type Ephemeral ¶
type Ephemeral[C loki.EphemeralType] struct{}
type Expression ¶
type Expression[V any] interface { Compile() Operation[V] }
type ReadOptional ¶
type ReadOptional[V any] = ops.ReadOptional[loki.Entity, V]
type ReadWithDefault ¶
type ReadWithDefault[V any] = ops.ReadWithDefault[loki.Entity, V]
type RowOperation ¶
type RowOperation[V any] = ops.RowOperation[loki.Entity, V]
func Calculate1 ¶
func Calculate2 ¶
func Calculate3 ¶
func Calculate4 ¶
func Calculate5 ¶
func Calculate6 ¶
func Calculate7 ¶
func Calculate8 ¶
func Calculate9 ¶
func Calculate9[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], U4 ops.Unwrapper[V4], U5 ops.Unwrapper[V5], U6 ops.Unwrapper[V6], U7 ops.Unwrapper[V7], U8 ops.Unwrapper[V8], U9 ops.Unwrapper[V9], V1, V2, V3, V4, V5, V6, V7, V8, V9, R any](fn func(V1, V2, V3, V4, V5, V6, V7, V8, V9) (R, bool)) RowOperation[R]
type RowQuery ¶
func Query9 ¶
func Query9[U1 ops.Unwrapper[V1], U2 ops.Unwrapper[V2], U3 ops.Unwrapper[V3], U4 ops.Unwrapper[V4], U5 ops.Unwrapper[V5], U6 ops.Unwrapper[V6], U7 ops.Unwrapper[V7], U8 ops.Unwrapper[V8], U9 ops.Unwrapper[V9], V1, V2, V3, V4, V5, V6, V7, V8, V9 any]() RowQuery[Values9[V1, V2, V3, V4, V5, V6, V7, V8, V9]]
type Slots ¶
type Slots[C loki.SlottedComponent] struct{}
Click to show internal directories.
Click to hide internal directories.