Documentation ¶
Overview ¶
Code generated by go-queryset. DO NOT EDIT.
Index ¶
- Variables
- type Example
- type ExampleDBSchemaField
- type ExampleQuerySet
- func (qs ExampleQuerySet) All(ret *[]Example) error
- func (qs ExampleQuerySet) Count() (int64, 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) 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) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Eq(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Gt(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Gte(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2In(currency2 ...forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Like(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Lt(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Lte(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Ne(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2NotIn(currency2 ...forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency2Notlike(currency2 forex.Currency2) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Eq(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Gt(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Gte(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3In(currency3 ...forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Like(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Lt(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Lte(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Ne(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3NotIn(currency3 ...forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Currency3Notlike(currency3 forex.Currency3) ExampleQuerySet
- func (qs ExampleQuerySet) Delete() error
- func (qs ExampleQuerySet) DeleteNum() (int64, error)
- func (qs ExampleQuerySet) DeleteNumUnscoped() (int64, error)
- func (qs ExampleQuerySet) GetDB() *gorm.DB
- func (qs ExampleQuerySet) GetUpdater() ExampleUpdater
- func (qs ExampleQuerySet) Limit(limit int) ExampleQuerySet
- func (qs ExampleQuerySet) Offset(offset int) ExampleQuerySet
- func (qs ExampleQuerySet) One(ret *Example) error
- func (qs ExampleQuerySet) OrderAscByCurrency1() ExampleQuerySet
- func (qs ExampleQuerySet) OrderAscByCurrency2() ExampleQuerySet
- func (qs ExampleQuerySet) OrderAscByCurrency3() ExampleQuerySet
- func (qs ExampleQuerySet) OrderAscByPriceID() ExampleQuerySet
- func (qs ExampleQuerySet) OrderDescByCurrency1() ExampleQuerySet
- func (qs ExampleQuerySet) OrderDescByCurrency2() ExampleQuerySet
- func (qs ExampleQuerySet) OrderDescByCurrency3() 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) 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) ExampleQuerySet
- func (qs ExampleQuerySet) Select(fields ...ExampleDBSchemaField) 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("PriceID"), 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 ExampleDBSchemaField ¶
type ExampleDBSchemaField string
ExampleDBSchemaField describes database schema field. It requires for method 'Update'
func (ExampleDBSchemaField) String ¶
func (f ExampleDBSchemaField) String() string
String method returns string representation of field. nolint: dupl
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() (int64, 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) 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) 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) Currency2Gt ¶
func (qs ExampleQuerySet) Currency2Gt(currency2 forex.Currency2) ExampleQuerySet
Currency2Gt is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2Gte ¶
func (qs ExampleQuerySet) Currency2Gte(currency2 forex.Currency2) ExampleQuerySet
Currency2Gte is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2In ¶
func (qs ExampleQuerySet) Currency2In(currency2 ...forex.Currency2) ExampleQuerySet
Currency2In is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2Like ¶
func (qs ExampleQuerySet) Currency2Like(currency2 forex.Currency2) ExampleQuerySet
Currency2Like is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2Lt ¶
func (qs ExampleQuerySet) Currency2Lt(currency2 forex.Currency2) ExampleQuerySet
Currency2Lt is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2Lte ¶
func (qs ExampleQuerySet) Currency2Lte(currency2 forex.Currency2) ExampleQuerySet
Currency2Lte 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) ExampleQuerySet
Currency2NotIn is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency2Notlike ¶
func (qs ExampleQuerySet) Currency2Notlike(currency2 forex.Currency2) ExampleQuerySet
Currency2Notlike 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) Currency3Gt ¶
func (qs ExampleQuerySet) Currency3Gt(currency3 forex.Currency3) ExampleQuerySet
Currency3Gt is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3Gte ¶
func (qs ExampleQuerySet) Currency3Gte(currency3 forex.Currency3) ExampleQuerySet
Currency3Gte is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3In ¶
func (qs ExampleQuerySet) Currency3In(currency3 ...forex.Currency3) ExampleQuerySet
Currency3In is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3Like ¶
func (qs ExampleQuerySet) Currency3Like(currency3 forex.Currency3) ExampleQuerySet
Currency3Like is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3Lt ¶
func (qs ExampleQuerySet) Currency3Lt(currency3 forex.Currency3) ExampleQuerySet
Currency3Lt is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3Lte ¶
func (qs ExampleQuerySet) Currency3Lte(currency3 forex.Currency3) ExampleQuerySet
Currency3Lte 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) ExampleQuerySet
Currency3NotIn is an autogenerated method nolint: dupl
func (ExampleQuerySet) Currency3Notlike ¶
func (qs ExampleQuerySet) Currency3Notlike(currency3 forex.Currency3) ExampleQuerySet
Currency3Notlike is an autogenerated method nolint: dupl
func (ExampleQuerySet) Delete ¶
func (qs ExampleQuerySet) Delete() error
Delete is an autogenerated method nolint: dupl
func (ExampleQuerySet) DeleteNum ¶
func (qs ExampleQuerySet) DeleteNum() (int64, error)
DeleteNum is an autogenerated method nolint: dupl
func (ExampleQuerySet) DeleteNumUnscoped ¶
func (qs ExampleQuerySet) DeleteNumUnscoped() (int64, error)
DeleteNumUnscoped is an autogenerated method nolint: dupl
func (ExampleQuerySet) GetDB ¶
func (qs ExampleQuerySet) GetDB() *gorm.DB
GetDB 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) Offset ¶
func (qs ExampleQuerySet) Offset(offset int) ExampleQuerySet
Offset 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) OrderAscByCurrency2 ¶
func (qs ExampleQuerySet) OrderAscByCurrency2() ExampleQuerySet
OrderAscByCurrency2 is an autogenerated method nolint: dupl
func (ExampleQuerySet) OrderAscByCurrency3 ¶
func (qs ExampleQuerySet) OrderAscByCurrency3() ExampleQuerySet
OrderAscByCurrency3 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) OrderDescByCurrency2 ¶
func (qs ExampleQuerySet) OrderDescByCurrency2() ExampleQuerySet
OrderDescByCurrency2 is an autogenerated method nolint: dupl
func (ExampleQuerySet) OrderDescByCurrency3 ¶
func (qs ExampleQuerySet) OrderDescByCurrency3() ExampleQuerySet
OrderDescByCurrency3 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) 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) ExampleQuerySet
PriceIDNotIn is an autogenerated method nolint: dupl
func (ExampleQuerySet) Select ¶
func (qs ExampleQuerySet) Select(fields ...ExampleDBSchemaField) ExampleQuerySet
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 nolint: dupl
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