Documentation ¶
Index ¶
- Variables
- type Example
- type ExampleQuerySet
- func (qs ExampleQuerySet) All(ret *[]Example) error
- func (qs ExampleQuerySet) Count() (int, error)
- func (qs ExampleQuerySet) Currency1Eq(currency1 forex.Currency1) ExampleQuerySet
- func (qs ExampleQuerySet) Currency1Gt(currency1 forex.Currency1) ExampleQuerySet
- func (qs ExampleQuerySet) Currency1Gte(currency1 forex.Currency1) ExampleQuerySet
- func (qs ExampleQuerySet) Currency1In(currency1 forex.Currency1, currency1Rest ...forex.Currency1) ExampleQuerySet
- func (qs ExampleQuerySet) Currency1Lt(currency1 forex.Currency1) ExampleQuerySet
- func (qs ExampleQuerySet) Currency1Lte(currency1 forex.Currency1) ExampleQuerySet
- func (qs ExampleQuerySet) Currency1Ne(currency1 forex.Currency1) ExampleQuerySet
- func (qs ExampleQuerySet) Currency1NotIn(currency1 forex.Currency1, currency1Rest ...forex.Currency1) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Eq(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2In(currency2 forex.Currency2, currency2Rest ...forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Ne(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2NotIn(currency2 forex.Currency2, currency2Rest ...forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Eq(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3In(currency3 forex.Currency3, currency3Rest ...forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Ne(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3NotIn(currency3 forex.Currency3, currency3Rest ...forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Delete() error
- func (qs ExampleQuerySet) GetUpdater() ExampleUpdater
- func (qs ExampleQuerySet) Limit(limit int) ExampleQuerySet
- func (qs ExampleQuerySet) One(ret *Example) error
- func (qs ExampleQuerySet) OrderAscByCurrency1() ExampleQuerySet
- func (qs ExampleQuerySet) OrderAscByPriceID() ExampleQuerySet
- func (qs ExampleQuerySet) OrderDescByCurrency1() ExampleQuerySet
- func (qs ExampleQuerySet) OrderDescByPriceID() ExampleQuerySet
- func (qs ExampleQuerySet) PriceIDEq(priceID int64) ExampleQuerySet
- func (qs ExampleQuerySet) PriceIDGt(priceID int64) ExampleQuerySet
- func (qs ExampleQuerySet) PriceIDGte(priceID int64) ExampleQuerySet
- func (qs ExampleQuerySet) PriceIDIn(priceID int64, priceIDRest ...int64) ExampleQuerySet
- func (qs ExampleQuerySet) PriceIDLt(priceID int64) ExampleQuerySet
- func (qs ExampleQuerySet) PriceIDLte(priceID int64) ExampleQuerySet
- func (qs ExampleQuerySet) PriceIDNe(priceID int64) ExampleQuerySet
- func (qs ExampleQuerySet) PriceIDNotIn(priceID int64, priceIDRest ...int64) ExampleQuerySet
- type ExampleUpdater
- func (u ExampleUpdater) SetCurrency1(currency1 forex.Currency1) ExampleUpdater
- func (u ExampleUpdater) SetCurrency2(currency2 forex.Currency2) ExampleUpdater
- func (u ExampleUpdater) SetCurrency3(currency3 forex.Currency3) ExampleUpdater
- func (u ExampleUpdater) SetPriceID(priceID int64) ExampleUpdater
- func (u ExampleUpdater) Update() error
- func (u ExampleUpdater) UpdateNum() (int64, error)
Constants ¶
This section is empty.
Variables ¶
var ExampleDBSchema = struct {
PriceID exampleDBSchemaField
Currency1 exampleDBSchemaField
Currency2 exampleDBSchemaField
Currency3 exampleDBSchemaField
}{
PriceID: exampleDBSchemaField("price_id"),
Currency1: exampleDBSchemaField("currency1"),
Currency2: exampleDBSchemaField("currency2"),
Currency3: exampleDBSchemaField("currency3"),
}
ExampleDBSchema stores db field names of Example
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example struct { PriceID int64 Currency1 forexAlias.Currency1 Currency2 forex.Currency2 Currency3 forex.Currency3 }
Example is a test struct gen:qs
type ExampleQuerySet ¶
type ExampleQuerySet struct {
// contains filtered or unexported fields
}
ExampleQuerySet is an queryset type for Example
func NewExampleQuerySet ¶
func NewExampleQuerySet(db *gorm.DB) ExampleQuerySet
NewExampleQuerySet constructs new ExampleQuerySet
func (ExampleQuerySet) All ¶
func (qs ExampleQuerySet) All(ret *[]Example) error
All is an autogenerated method nolint: dupl
func (ExampleQuerySet) Count ¶
func (qs ExampleQuerySet) Count() (int, error)
Count is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency1Eq ¶
func (qs ExampleQuerySet) Currency1Eq(currency1 forex.Currency1) ExampleQuerySet
Currency1Eq is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency1Gt ¶
func (qs ExampleQuerySet) Currency1Gt(currency1 forex.Currency1) ExampleQuerySet
Currency1Gt is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency1Gte ¶
func (qs ExampleQuerySet) Currency1Gte(currency1 forex.Currency1) ExampleQuerySet
Currency1Gte is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency1In ¶
func (qs ExampleQuerySet) Currency1In(currency1 forex.Currency1, currency1Rest ...forex.Currency1) ExampleQuerySet
Currency1In is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency1Lt ¶
func (qs ExampleQuerySet) Currency1Lt(currency1 forex.Currency1) ExampleQuerySet
Currency1Lt is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency1Lte ¶
func (qs ExampleQuerySet) Currency1Lte(currency1 forex.Currency1) ExampleQuerySet
Currency1Lte is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency1Ne ¶
func (qs ExampleQuerySet) Currency1Ne(currency1 forex.Currency1) ExampleQuerySet
Currency1Ne is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency1NotIn ¶
func (qs ExampleQuerySet) Currency1NotIn(currency1 forex.Currency1, currency1Rest ...forex.Currency1) ExampleQuerySet
Currency1NotIn is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2Eq ¶
func (qs ExampleQuerySet) Currency2Eq(currency2 forex.Currency2) ExampleQuerySet
Currency2Eq is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2In ¶
func (qs ExampleQuerySet) Currency2In(currency2 forex.Currency2, currency2Rest ...forex.Currency2) ExampleQuerySet
Currency2In is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2Ne ¶
func (qs ExampleQuerySet) Currency2Ne(currency2 forex.Currency2) ExampleQuerySet
Currency2Ne is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2NotIn ¶
func (qs ExampleQuerySet) Currency2NotIn(currency2 forex.Currency2, currency2Rest ...forex.Currency2) ExampleQuerySet
Currency2NotIn is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3Eq ¶
func (qs ExampleQuerySet) Currency3Eq(currency3 forex.Currency3) ExampleQuerySet
Currency3Eq is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3In ¶
func (qs ExampleQuerySet) Currency3In(currency3 forex.Currency3, currency3Rest ...forex.Currency3) ExampleQuerySet
Currency3In is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3Ne ¶
func (qs ExampleQuerySet) Currency3Ne(currency3 forex.Currency3) ExampleQuerySet
Currency3Ne is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3NotIn ¶
func (qs ExampleQuerySet) Currency3NotIn(currency3 forex.Currency3, currency3Rest ...forex.Currency3) ExampleQuerySet
Currency3NotIn is an autogenerated method nolint: dupl
func (ExampleQuerySet) Delete ¶
func (qs ExampleQuerySet) Delete() error
Delete is an autogenerated method nolint: dupl
func (ExampleQuerySet) GetUpdater ¶
func (qs ExampleQuerySet) GetUpdater() ExampleUpdater
GetUpdater is an autogenerated method nolint: dupl
func (ExampleQuerySet) Limit ¶
func (qs ExampleQuerySet) Limit(limit int) ExampleQuerySet
Limit is an autogenerated method nolint: dupl
func (ExampleQuerySet) One ¶
func (qs ExampleQuerySet) One(ret *Example) error
One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched
func (ExampleQuerySet) OrderAscByCurrency1 ¶
func (qs ExampleQuerySet) OrderAscByCurrency1() ExampleQuerySet
OrderAscByCurrency1 is an autogenerated method nolint: dupl
func (ExampleQuerySet) OrderAscByPriceID ¶
func (qs ExampleQuerySet) OrderAscByPriceID() ExampleQuerySet
OrderAscByPriceID is an autogenerated method nolint: dupl
func (ExampleQuerySet) OrderDescByCurrency1 ¶
func (qs ExampleQuerySet) OrderDescByCurrency1() ExampleQuerySet
OrderDescByCurrency1 is an autogenerated method nolint: dupl
func (ExampleQuerySet) OrderDescByPriceID ¶
func (qs ExampleQuerySet) OrderDescByPriceID() ExampleQuerySet
OrderDescByPriceID is an autogenerated method nolint: dupl
func (ExampleQuerySet) PriceIDEq ¶
func (qs ExampleQuerySet) PriceIDEq(priceID int64) ExampleQuerySet
PriceIDEq is an autogenerated method nolint: dupl
func (ExampleQuerySet) PriceIDGt ¶
func (qs ExampleQuerySet) PriceIDGt(priceID int64) ExampleQuerySet
PriceIDGt is an autogenerated method nolint: dupl
func (ExampleQuerySet) PriceIDGte ¶
func (qs ExampleQuerySet) PriceIDGte(priceID int64) ExampleQuerySet
PriceIDGte is an autogenerated method nolint: dupl
func (ExampleQuerySet) PriceIDIn ¶
func (qs ExampleQuerySet) PriceIDIn(priceID int64, priceIDRest ...int64) ExampleQuerySet
PriceIDIn is an autogenerated method nolint: dupl
func (ExampleQuerySet) PriceIDLt ¶
func (qs ExampleQuerySet) PriceIDLt(priceID int64) ExampleQuerySet
PriceIDLt is an autogenerated method nolint: dupl
func (ExampleQuerySet) PriceIDLte ¶
func (qs ExampleQuerySet) PriceIDLte(priceID int64) ExampleQuerySet
PriceIDLte is an autogenerated method nolint: dupl
func (ExampleQuerySet) PriceIDNe ¶
func (qs ExampleQuerySet) PriceIDNe(priceID int64) ExampleQuerySet
PriceIDNe is an autogenerated method nolint: dupl
func (ExampleQuerySet) PriceIDNotIn ¶
func (qs ExampleQuerySet) PriceIDNotIn(priceID int64, priceIDRest ...int64) ExampleQuerySet
PriceIDNotIn is an autogenerated method nolint: dupl
type ExampleUpdater ¶
type ExampleUpdater struct {
// contains filtered or unexported fields
}
ExampleUpdater is an Example updates manager
func NewExampleUpdater ¶
func NewExampleUpdater(db *gorm.DB) ExampleUpdater
NewExampleUpdater creates new Example updater
func (ExampleUpdater) SetCurrency1 ¶
func (u ExampleUpdater) SetCurrency1(currency1 forex.Currency1) ExampleUpdater
SetCurrency1 is an autogenerated method nolint: dupl
func (ExampleUpdater) SetCurrency2 ¶
func (u ExampleUpdater) SetCurrency2(currency2 forex.Currency2) ExampleUpdater
SetCurrency2 is an autogenerated method nolint: dupl
func (ExampleUpdater) SetCurrency3 ¶
func (u ExampleUpdater) SetCurrency3(currency3 forex.Currency3) ExampleUpdater
SetCurrency3 is an autogenerated method nolint: dupl
func (ExampleUpdater) SetPriceID ¶
func (u ExampleUpdater) SetPriceID(priceID int64) ExampleUpdater
SetPriceID is an autogenerated method nolint: dupl
func (ExampleUpdater) Update ¶
func (u ExampleUpdater) Update() error
Update is an autogenerated method nolint: dupl
func (ExampleUpdater) UpdateNum ¶
func (u ExampleUpdater) UpdateNum() (int64, error)
UpdateNum is an autogenerated method nolint: dupl