aggregate

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillAggregate

func FillAggregate(file *protogen.File, g *protogen.GeneratedFile, m *protogen.Message)

FillAggregate fills the in global loadedAggregates with parsed data

func Generate added in v0.5.6

func Generate(file *protogen.File, g *protogen.GeneratedFile)

Generate generates the repo functions for messages which are identified as model with {{@entity cql}}

func GetAggregates

func GetAggregates() map[string]*Aggregate

GetAggregates

func ResetAggregates

func ResetAggregates()

ResetAggregates reset the internal data

Types

type Aggregate

type Aggregate struct {
	Type       string
	Name       string
	Table      Key
	Views      []Key
	ViewParams []string
	FieldNames []string
	FieldsCql  map[string]string
	FieldsGo   map[string]string
}

func (*Aggregate) FuncArgs

func (m *Aggregate) FuncArgs(keyPrefix string, key Key) string

func (*Aggregate) FuncArgsCKs

func (m *Aggregate) FuncArgsCKs(keyPrefix string, key Key) string

func (*Aggregate) FuncArgsPKs

func (m *Aggregate) FuncArgsPKs(keyPrefix string, key Key) string

type Key

type Key struct {
	PKs    []string
	CKs    []string
	Orders []string
}

func (*Key) Checksum

func (k *Key) Checksum() uint32

func (*Key) ChecksumPKs

func (k *Key) ChecksumPKs(keyPrefix string, sep string, lowerCamel bool) uint32

func (*Key) Keys

func (k *Key) Keys() []string

func (*Key) String

func (k *Key) String(prefix string, sep string, lowerCamel bool) string

func (*Key) StringCKs

func (k *Key) StringCKs(prefix string, sep string, lowerCamel bool) string

func (*Key) StringPKs

func (k *Key) StringPKs(prefix string, sep string, lowerCamel bool) string

Jump to

Keyboard shortcuts

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