Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Settings) predicate.Settings
- func CreateTime(v time.Time) predicate.Settings
- func CreateTimeEQ(v time.Time) predicate.Settings
- func CreateTimeGT(v time.Time) predicate.Settings
- func CreateTimeGTE(v time.Time) predicate.Settings
- func CreateTimeIn(vs ...time.Time) predicate.Settings
- func CreateTimeLT(v time.Time) predicate.Settings
- func CreateTimeLTE(v time.Time) predicate.Settings
- func CreateTimeNEQ(v time.Time) predicate.Settings
- func CreateTimeNotIn(vs ...time.Time) predicate.Settings
- func DexAggregatorEQ(v DexAggregator) predicate.Settings
- func DexAggregatorIn(vs ...DexAggregator) predicate.Settings
- func DexAggregatorNEQ(v DexAggregator) predicate.Settings
- func DexAggregatorNotIn(vs ...DexAggregator) predicate.Settings
- func DexAggregatorValidator(da DexAggregator) error
- func EnableInfiniteApproval(v bool) predicate.Settings
- func EnableInfiniteApprovalEQ(v bool) predicate.Settings
- func EnableInfiniteApprovalIsNil() predicate.Settings
- func EnableInfiniteApprovalNEQ(v bool) predicate.Settings
- func EnableInfiniteApprovalNotNil() predicate.Settings
- func ExitSlippageBps(v int) predicate.Settings
- func ExitSlippageBpsEQ(v int) predicate.Settings
- func ExitSlippageBpsGT(v int) predicate.Settings
- func ExitSlippageBpsGTE(v int) predicate.Settings
- func ExitSlippageBpsIn(vs ...int) predicate.Settings
- func ExitSlippageBpsIsNil() predicate.Settings
- func ExitSlippageBpsLT(v int) predicate.Settings
- func ExitSlippageBpsLTE(v int) predicate.Settings
- func ExitSlippageBpsNEQ(v int) predicate.Settings
- func ExitSlippageBpsNotIn(vs ...int) predicate.Settings
- func ExitSlippageBpsNotNil() predicate.Settings
- func ID(id int) predicate.Settings
- func IDEQ(id int) predicate.Settings
- func IDGT(id int) predicate.Settings
- func IDGTE(id int) predicate.Settings
- func IDIn(ids ...int) predicate.Settings
- func IDLT(id int) predicate.Settings
- func IDLTE(id int) predicate.Settings
- func IDNEQ(id int) predicate.Settings
- func IDNotIn(ids ...int) predicate.Settings
- func Not(p predicate.Settings) predicate.Settings
- func Or(predicates ...predicate.Settings) predicate.Settings
- func SellSlippageBps(v int) predicate.Settings
- func SellSlippageBpsEQ(v int) predicate.Settings
- func SellSlippageBpsGT(v int) predicate.Settings
- func SellSlippageBpsGTE(v int) predicate.Settings
- func SellSlippageBpsIn(vs ...int) predicate.Settings
- func SellSlippageBpsIsNil() predicate.Settings
- func SellSlippageBpsLT(v int) predicate.Settings
- func SellSlippageBpsLTE(v int) predicate.Settings
- func SellSlippageBpsNEQ(v int) predicate.Settings
- func SellSlippageBpsNotIn(vs ...int) predicate.Settings
- func SellSlippageBpsNotNil() predicate.Settings
- func SlippageBps(v int) predicate.Settings
- func SlippageBpsEQ(v int) predicate.Settings
- func SlippageBpsGT(v int) predicate.Settings
- func SlippageBpsGTE(v int) predicate.Settings
- func SlippageBpsIn(vs ...int) predicate.Settings
- func SlippageBpsLT(v int) predicate.Settings
- func SlippageBpsLTE(v int) predicate.Settings
- func SlippageBpsNEQ(v int) predicate.Settings
- func SlippageBpsNotIn(vs ...int) predicate.Settings
- func UpdateTime(v time.Time) predicate.Settings
- func UpdateTimeEQ(v time.Time) predicate.Settings
- func UpdateTimeGT(v time.Time) predicate.Settings
- func UpdateTimeGTE(v time.Time) predicate.Settings
- func UpdateTimeIn(vs ...time.Time) predicate.Settings
- func UpdateTimeLT(v time.Time) predicate.Settings
- func UpdateTimeLTE(v time.Time) predicate.Settings
- func UpdateTimeNEQ(v time.Time) predicate.Settings
- func UpdateTimeNotIn(vs ...time.Time) predicate.Settings
- func UserId(v int64) predicate.Settings
- func UserIdEQ(v int64) predicate.Settings
- func UserIdGT(v int64) predicate.Settings
- func UserIdGTE(v int64) predicate.Settings
- func UserIdIn(vs ...int64) predicate.Settings
- func UserIdLT(v int64) predicate.Settings
- func UserIdLTE(v int64) predicate.Settings
- func UserIdNEQ(v int64) predicate.Settings
- func UserIdNotIn(vs ...int64) predicate.Settings
- func ValidColumn(column string) bool
- type DexAggregator
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDexAggregator(opts ...sql.OrderTermOption) OrderOption
- func ByEnableInfiniteApproval(opts ...sql.OrderTermOption) OrderOption
- func ByExitSlippageBps(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySellSlippageBps(opts ...sql.OrderTermOption) OrderOption
- func BySlippageBps(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserId(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the settings type in the database. Label = "settings" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldUserId holds the string denoting the userid field in the database. FieldUserId = "user_id" // FieldSlippageBps holds the string denoting the slippagebps field in the database. FieldSlippageBps = "slippage_bps" // FieldSellSlippageBps holds the string denoting the sellslippagebps field in the database. FieldSellSlippageBps = "sell_slippage_bps" // FieldExitSlippageBps holds the string denoting the exitslippagebps field in the database. FieldExitSlippageBps = "exit_slippage_bps" // FieldDexAggregator holds the string denoting the dexaggregator field in the database. FieldDexAggregator = "dex_aggregator" // FieldEnableInfiniteApproval holds the string denoting the enableinfiniteapproval field in the database. FieldEnableInfiniteApproval = "enable_infinite_approval" // Table holds the table name of the settings in the database. Table = "settings" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // SlippageBpsValidator is a validator for the "slippageBps" field. It is called by the builders before save. SlippageBpsValidator func(int) error // SellSlippageBpsValidator is a validator for the "sellSlippageBps" field. It is called by the builders before save. SellSlippageBpsValidator func(int) error // ExitSlippageBpsValidator is a validator for the "exitSlippageBps" field. It is called by the builders before save. ExitSlippageBpsValidator func(int) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldUserId, FieldSlippageBps, FieldSellSlippageBps, FieldExitSlippageBps, FieldDexAggregator, FieldEnableInfiniteApproval, }
Columns holds all SQL columns for settings fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DexAggregatorEQ ¶
func DexAggregatorEQ(v DexAggregator) predicate.Settings
DexAggregatorEQ applies the EQ predicate on the "dexAggregator" field.
func DexAggregatorIn ¶
func DexAggregatorIn(vs ...DexAggregator) predicate.Settings
DexAggregatorIn applies the In predicate on the "dexAggregator" field.
func DexAggregatorNEQ ¶
func DexAggregatorNEQ(v DexAggregator) predicate.Settings
DexAggregatorNEQ applies the NEQ predicate on the "dexAggregator" field.
func DexAggregatorNotIn ¶
func DexAggregatorNotIn(vs ...DexAggregator) predicate.Settings
DexAggregatorNotIn applies the NotIn predicate on the "dexAggregator" field.
func DexAggregatorValidator ¶
func DexAggregatorValidator(da DexAggregator) error
DexAggregatorValidator is a validator for the "dexAggregator" field enum values. It is called by the builders before save.
func EnableInfiniteApproval ¶
EnableInfiniteApproval applies equality check predicate on the "enableInfiniteApproval" field. It's identical to EnableInfiniteApprovalEQ.
func EnableInfiniteApprovalEQ ¶
EnableInfiniteApprovalEQ applies the EQ predicate on the "enableInfiniteApproval" field.
func EnableInfiniteApprovalIsNil ¶
EnableInfiniteApprovalIsNil applies the IsNil predicate on the "enableInfiniteApproval" field.
func EnableInfiniteApprovalNEQ ¶
EnableInfiniteApprovalNEQ applies the NEQ predicate on the "enableInfiniteApproval" field.
func EnableInfiniteApprovalNotNil ¶
EnableInfiniteApprovalNotNil applies the NotNil predicate on the "enableInfiniteApproval" field.
func ExitSlippageBps ¶
ExitSlippageBps applies equality check predicate on the "exitSlippageBps" field. It's identical to ExitSlippageBpsEQ.
func ExitSlippageBpsEQ ¶
ExitSlippageBpsEQ applies the EQ predicate on the "exitSlippageBps" field.
func ExitSlippageBpsGT ¶
ExitSlippageBpsGT applies the GT predicate on the "exitSlippageBps" field.
func ExitSlippageBpsGTE ¶
ExitSlippageBpsGTE applies the GTE predicate on the "exitSlippageBps" field.
func ExitSlippageBpsIn ¶
ExitSlippageBpsIn applies the In predicate on the "exitSlippageBps" field.
func ExitSlippageBpsIsNil ¶
ExitSlippageBpsIsNil applies the IsNil predicate on the "exitSlippageBps" field.
func ExitSlippageBpsLT ¶
ExitSlippageBpsLT applies the LT predicate on the "exitSlippageBps" field.
func ExitSlippageBpsLTE ¶
ExitSlippageBpsLTE applies the LTE predicate on the "exitSlippageBps" field.
func ExitSlippageBpsNEQ ¶
ExitSlippageBpsNEQ applies the NEQ predicate on the "exitSlippageBps" field.
func ExitSlippageBpsNotIn ¶
ExitSlippageBpsNotIn applies the NotIn predicate on the "exitSlippageBps" field.
func ExitSlippageBpsNotNil ¶
ExitSlippageBpsNotNil applies the NotNil predicate on the "exitSlippageBps" field.
func SellSlippageBps ¶
SellSlippageBps applies equality check predicate on the "sellSlippageBps" field. It's identical to SellSlippageBpsEQ.
func SellSlippageBpsEQ ¶
SellSlippageBpsEQ applies the EQ predicate on the "sellSlippageBps" field.
func SellSlippageBpsGT ¶
SellSlippageBpsGT applies the GT predicate on the "sellSlippageBps" field.
func SellSlippageBpsGTE ¶
SellSlippageBpsGTE applies the GTE predicate on the "sellSlippageBps" field.
func SellSlippageBpsIn ¶
SellSlippageBpsIn applies the In predicate on the "sellSlippageBps" field.
func SellSlippageBpsIsNil ¶
SellSlippageBpsIsNil applies the IsNil predicate on the "sellSlippageBps" field.
func SellSlippageBpsLT ¶
SellSlippageBpsLT applies the LT predicate on the "sellSlippageBps" field.
func SellSlippageBpsLTE ¶
SellSlippageBpsLTE applies the LTE predicate on the "sellSlippageBps" field.
func SellSlippageBpsNEQ ¶
SellSlippageBpsNEQ applies the NEQ predicate on the "sellSlippageBps" field.
func SellSlippageBpsNotIn ¶
SellSlippageBpsNotIn applies the NotIn predicate on the "sellSlippageBps" field.
func SellSlippageBpsNotNil ¶
SellSlippageBpsNotNil applies the NotNil predicate on the "sellSlippageBps" field.
func SlippageBps ¶
SlippageBps applies equality check predicate on the "slippageBps" field. It's identical to SlippageBpsEQ.
func SlippageBpsEQ ¶
SlippageBpsEQ applies the EQ predicate on the "slippageBps" field.
func SlippageBpsGT ¶
SlippageBpsGT applies the GT predicate on the "slippageBps" field.
func SlippageBpsGTE ¶
SlippageBpsGTE applies the GTE predicate on the "slippageBps" field.
func SlippageBpsIn ¶
SlippageBpsIn applies the In predicate on the "slippageBps" field.
func SlippageBpsLT ¶
SlippageBpsLT applies the LT predicate on the "slippageBps" field.
func SlippageBpsLTE ¶
SlippageBpsLTE applies the LTE predicate on the "slippageBps" field.
func SlippageBpsNEQ ¶
SlippageBpsNEQ applies the NEQ predicate on the "slippageBps" field.
func SlippageBpsNotIn ¶
SlippageBpsNotIn applies the NotIn predicate on the "slippageBps" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UserId ¶
UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.
func UserIdNotIn ¶
UserIdNotIn applies the NotIn predicate on the "userId" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type DexAggregator ¶
type DexAggregator string
DexAggregator defines the type for the "dexAggregator" enum field.
const (
DexAggregatorRelay DexAggregator = "relay"
)
DexAggregator values.
func (DexAggregator) String ¶
func (da DexAggregator) String() string
type OrderOption ¶
OrderOption defines the ordering options for the Settings queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDexAggregator ¶
func ByDexAggregator(opts ...sql.OrderTermOption) OrderOption
ByDexAggregator orders the results by the dexAggregator field.
func ByEnableInfiniteApproval ¶
func ByEnableInfiniteApproval(opts ...sql.OrderTermOption) OrderOption
ByEnableInfiniteApproval orders the results by the enableInfiniteApproval field.
func ByExitSlippageBps ¶
func ByExitSlippageBps(opts ...sql.OrderTermOption) OrderOption
ByExitSlippageBps orders the results by the exitSlippageBps field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySellSlippageBps ¶
func BySellSlippageBps(opts ...sql.OrderTermOption) OrderOption
BySellSlippageBps orders the results by the sellSlippageBps field.
func BySlippageBps ¶
func BySlippageBps(opts ...sql.OrderTermOption) OrderOption
BySlippageBps orders the results by the slippageBps field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserId ¶
func ByUserId(opts ...sql.OrderTermOption) OrderOption
ByUserId orders the results by the userId field.