Versions in this module Expand all Collapse all v0 v0.1.0 Mar 11, 2024 Changes in this version + const PREFIX_T + func NewAttributeColumn(attr *Attribute) *table.Column + func NewEntityTable(entity *Entity) *table.Table + func NewRelationTable(relation *Relation) *table.Table + type ArgAssociation struct + Association *Association + TypeArgEntity *ArgEntity + type ArgEntity struct + Associations []*ArgAssociation + Entity *Entity + ExpressionArgs map[string]interface{} + Id int + func BuildArgEntity(entity *Entity, where interface{}, ider Ider) *ArgEntity + func (a *ArgEntity) GetAssociation(name string) *ArgAssociation + func (a *ArgEntity) GetWithMakeAssociation(name string, ider Ider) *ArgAssociation + func (e *ArgEntity) Alise() string + type Association struct + OwnerClassUuid string + Relation *Relation + func NewAssociation(r *Relation, ownerUuid string) *Association + func (a *Association) Description() string + func (a *Association) GetName() string + func (a *Association) IsArray() bool + func (a *Association) IsCombination() bool + func (a *Association) IsSource() bool + func (a *Association) Name() string + func (a *Association) Owner() *Entity + func (a *Association) Path() string + func (a *Association) Table() *table.Table + func (a *Association) TypeEntity() *Entity + func (r *Association) OwnerColumn() *table.Column + func (r *Association) SourceColumn() *table.Column + func (r *Association) TargetColumn() *table.Column + func (r *Association) TypeColumn() *table.Column + type Attribute struct + Class *Class + EnityType *Entity + EumnType *Enum + ValueObjectType *Class + func NewAttribute(a *domain.Attribute, c *Class) *Attribute + func (a *Attribute) GetEnityType() *Entity + func (a *Attribute) GetEumnType() *Enum + func (a *Attribute) GetName() string + func (a *Attribute) GetType() string + type Class struct + Domain *domain.Class + func NewClass(c *domain.Class) *Class + func (c *Class) AddAssociation(a *Association) + func (c *Class) AggregateName() string + func (c *Class) DeleteByIdName() string + func (c *Class) DeleteName() string + func (c *Class) Description() string + func (c *Class) InnerId() uint64 + func (c *Class) IsSoftDelete() bool + func (c *Class) ListName() string + func (c *Class) Name() string + func (c *Class) QueryAggregateName() string + func (c *Class) QueryName() string + func (c *Class) QueryOneName() string + func (c *Class) SetName() string + func (c *Class) TableName() string + func (c *Class) UpsertName() string + func (c *Class) UpsertOneName() string + func (c *Class) Uuid() string + type Entity struct + Interfaces []*Interface + Table *table.Table + func NewEntity(c *domain.Class) *Entity + func (e *Entity) AllAttributeNames() []string + func (e *Entity) AllAttributes() []*Attribute + func (e *Entity) Associations() []*Association + func (e *Entity) GetAssociationByName(name string) *Association + func (e *Entity) GetAttributeByName(name string) *Attribute + func (e *Entity) GetHasManyName() string + func (e *Entity) GetHasOneName() string + func (e *Entity) IsEmperty() bool + type Enum struct + func NewEnum(e *domain.Enum) *Enum + type Ider interface + CreateId func() int + type Interface struct + Children []*Entity + Parents []*Interface + func NewInterface(c *domain.Class) *Interface + func (f *Interface) AllAssociations() []*Association + func (f *Interface) AllAttributeNames() []string + func (f *Interface) AllAttributes() []*Attribute + func (f *Interface) GetAssociationByName(name string) *Association + func (f *Interface) GetAttributeByName(name string) *Attribute + func (f *Interface) IsEmperty() bool + type Model struct + Entities []*Entity + Enums []*Enum + Interfaces []*Interface + Relations []*Relation + Tables []*table.Table + ThirdParties []*ThirdParty + ValueObjects []*Class + func New(m *domain.Model) *Model + func (m *Model) GetEntityByInnerId(innerId uint64) *Entity + func (m *Model) GetEntityByName(name string) *Entity + func (m *Model) GetEntityByUuid(uuid string) *Entity + func (m *Model) GetEnumByUuid(uuid string) *Enum + func (m *Model) GetInterfaceByName(name string) *Interface + func (m *Model) GetInterfaceByUuid(uuid string) *Interface + func (m *Model) GetThirdPartyByName(name string) *ThirdParty + func (m *Model) GetValueObjectByUuid(uuid string) *Class + func (m *Model) RootEnities() []*Entity + func (m *Model) RootInterfaces() []*Interface + func (m *Model) Validate() + type Propertier interface + GetEnityType func() *Entity + GetEumnType func() *Enum + GetName func() string + GetType func() string + type QueryArg = map[string]interface + type Relation struct + AppId uint64 + AssociationClass meta.AssociationClass + DescriptionOnSource string + DescriptionOnTarget string + EnableAssociaitonClass bool + InnerId uint64 + RelationType string + RoleOfSource string + RoleOfTarget string + SourceEntity *Entity + SourceMutiplicity string + Table *table.Table + TargetEntity *Entity + TargetMultiplicity string + Uuid string + func NewRelation(r *domain.Relation, sourceEntity *Entity, targetEntity *Entity) *Relation + type ThirdParty struct + func NewThirdParty(c *domain.Class) *ThirdParty + func (t *ThirdParty) Attributes() []*Attribute