Documentation ¶
Overview ¶
Code generated by cql-gen v0.0.3, DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bicycle ¶
type Child ¶
type Child struct { model.UUIDModel Name string Number int Parent1 Parent1 Parent1ID model.UUID Parent2 Parent2 Parent2ID model.UUID }
func (Child) GetParent1 ¶
func (Child) GetParent2 ¶
type City ¶
type City struct { model.UUIDModel Name string Country *Country CountryID model.UUID // Country HasOne City (Country 1 -> 1 City) }
func (City) GetCountry ¶
type Company ¶
type Company struct { model.UUIDModel Name string Sellers *[]Seller // Company HasMany Sellers (Company 0..1 -> 0..* Seller) }
func (Company) GetSellers ¶
type Country ¶
type Country struct { model.UUIDModel Name string Capital City // Country HasOne City (Country 1 -> 1 City) }
func (Country) GetCapital ¶
type Employee ¶
type MultiString ¶
type MultiString []string
func (MultiString) GormDBDataType ¶
func (MultiString) GormDataType ¶
func (MultiString) GormDataType() string
func (*MultiString) Scan ¶
func (s *MultiString) Scan(src interface{}) error
type Parent1 ¶
type Parent1 struct { model.UUIDModel ParentParent ParentParent ParentParentID model.UUID }
func (Parent1) GetParentParent ¶
func (m Parent1) GetParentParent() (*ParentParent, error)
type Parent2 ¶
type Parent2 struct { model.UUIDModel ParentParent ParentParent ParentParentID model.UUID }
func (Parent2) GetParentParent ¶
func (m Parent2) GetParentParent() (*ParentParent, error)
type ParentParent ¶
func (ParentParent) Equal ¶
func (m ParentParent) Equal(other ParentParent) bool
type Phone ¶
type Product ¶
type Product struct { model.UUIDModel String string `gorm:"column:string_something_else"` Int int IntPointer *int Float float64 NullFloat sql.NullFloat64 Bool bool NullBool sql.NullBool ByteArray []byte MultiString MultiString ToBeEmbedded GormEmbedded ToBeGormEmbedded `gorm:"embedded;embeddedPrefix:gorm_embedded_"` }
type Sale ¶
type Sale struct { model.UUIDModel Code int Description string // Sale belongsTo Product (Sale 0..* -> 1 Product) Product Product ProductID model.UUID // Sale belongsTo Seller (Sale 0..* -> 0..1 Seller) Seller *Seller SellerID *model.UUID }
func (Sale) GetProduct ¶
type Seller ¶
type Seller struct { model.UUIDModel Name string Company *Company CompanyID *model.UUID // Company HasMany Sellers (Company 0..1 -> 0..* Seller) University *University UniversityID *model.UUID }
func (Seller) GetCompany ¶
func (Seller) GetUniversity ¶
func (m Seller) GetUniversity() (*University, error)
type ToBeEmbedded ¶
type ToBeEmbedded struct {
EmbeddedInt int
}
type ToBeGormEmbedded ¶
type ToBeGormEmbedded struct {
Int int
}
type University ¶
func (University) Equal ¶
func (m University) Equal(other University) bool
Click to show internal directories.
Click to hide internal directories.