Documentation
¶
Overview ¶
Code generated by cql-gen v0.1.0, DO NOT EDIT.
Index ¶
- type Bicycle
- type Brand
- type Child
- type City
- type Company
- type CompanyNoTimestamps
- type Country
- type Employee
- type MultiString
- func (s MultiString) GetValue() MultiString
- func (MultiString) GormDBDataType(db *gorm.DB, _ *schema.Field) string
- func (MultiString) GormDataType() string
- func (s *MultiString) Scan(src interface{}) error
- func (s MultiString) ToSQL(_ *condition.CQLQuery) (string, []any, error)
- func (s MultiString) Value() (driver.Value, error)
- type Parent1
- type Parent2
- type ParentParent
- type Person
- type Phone
- type PhoneNoTimestamps
- type Product
- type ProductNoTimestamps
- type Sale
- type SaleNoTimestamps
- type Seller
- type SellerNoTimestamps
- type ToBeEmbedded
- type ToBeGormEmbedded
- type University
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.UUIDModelWithTimestamps
Name string
Sellers *[]Seller // Company HasMany Sellers (Company 0..1 -> 0..* Seller)
}
func (Company) GetSellers ¶
type CompanyNoTimestamps ¶ added in v0.6.0
type CompanyNoTimestamps struct {
model.UUIDModel
Name string
Sellers *[]SellerNoTimestamps // Company HasMany Sellers (Company 0..1 -> 0..* Seller)
}
func (CompanyNoTimestamps) Equal ¶ added in v0.6.0
func (m CompanyNoTimestamps) Equal(other CompanyNoTimestamps) bool
func (CompanyNoTimestamps) GetSellers ¶ added in v0.6.0
func (m CompanyNoTimestamps) GetSellers() ([]SellerNoTimestamps, error)
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) GetValue ¶ added in v0.2.0
func (s MultiString) GetValue() MultiString
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
Name string
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 Phone struct {
model.UIntModelWithTimestamps
Name string
// Phone belongsTo Brand (Phone 0..* -> 1 Brand)
Brand Brand
BrandID uint
}
type PhoneNoTimestamps ¶ added in v0.6.0
type PhoneNoTimestamps struct {
model.UIntModel
Name string
// Phone belongsTo Brand (Phone 0..* -> 1 Brand)
Brand Brand
BrandID uint
}
func (PhoneNoTimestamps) Equal ¶ added in v0.6.0
func (m PhoneNoTimestamps) Equal(other PhoneNoTimestamps) bool
func (PhoneNoTimestamps) GetBrand ¶ added in v0.6.0
func (m PhoneNoTimestamps) GetBrand() (*Brand, error)
type Product ¶
type Product struct {
model.UUIDModelWithTimestamps
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_"`
String2 string
}
type ProductNoTimestamps ¶ added in v0.6.0
type ProductNoTimestamps 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_"`
String2 string
}
func (ProductNoTimestamps) Equal ¶ added in v0.6.0
func (m ProductNoTimestamps) Equal(other ProductNoTimestamps) bool
type Sale ¶
type Sale struct {
model.UUIDModelWithTimestamps
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 SaleNoTimestamps ¶ added in v0.6.0
type SaleNoTimestamps struct {
model.UUIDModel
Code int
Description string
// Sale belongsTo Product (Sale 0..* -> 1 Product)
Product ProductNoTimestamps
ProductID model.UUID
// Sale belongsTo Seller (Sale 0..* -> 0..1 Seller)
Seller *SellerNoTimestamps
SellerID *model.UUID
}
func (SaleNoTimestamps) Equal ¶ added in v0.6.0
func (m SaleNoTimestamps) Equal(other SaleNoTimestamps) bool
func (SaleNoTimestamps) GetProduct ¶ added in v0.6.0
func (m SaleNoTimestamps) GetProduct() (*ProductNoTimestamps, error)
func (SaleNoTimestamps) GetSeller ¶ added in v0.6.0
func (m SaleNoTimestamps) GetSeller() (*SellerNoTimestamps, error)
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 SellerNoTimestamps ¶ added in v0.6.0
type SellerNoTimestamps struct {
model.UUIDModel
Name string
CompanyNoTimestamps *CompanyNoTimestamps
CompanyNoTimestampsID *model.UUID // Company HasMany Sellers (Company 0..1 -> 0..* Seller)
University *University
UniversityID *model.UUID
}
func (SellerNoTimestamps) Equal ¶ added in v0.6.0
func (m SellerNoTimestamps) Equal(other SellerNoTimestamps) bool
func (SellerNoTimestamps) GetCompanyNoTimestamps ¶ added in v0.6.0
func (m SellerNoTimestamps) GetCompanyNoTimestamps() (*CompanyNoTimestamps, error)
func (SellerNoTimestamps) GetUniversity ¶ added in v0.6.0
func (m SellerNoTimestamps) 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.