settings

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for settings fields.

Functions

func And

func And(predicates ...predicate.Settings) predicate.Settings

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Settings

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Settings

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Settings

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Settings

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Settings

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Settings

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Settings

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Settings

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Settings

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

func EnableInfiniteApproval(v bool) predicate.Settings

EnableInfiniteApproval applies equality check predicate on the "enableInfiniteApproval" field. It's identical to EnableInfiniteApprovalEQ.

func EnableInfiniteApprovalEQ

func EnableInfiniteApprovalEQ(v bool) predicate.Settings

EnableInfiniteApprovalEQ applies the EQ predicate on the "enableInfiniteApproval" field.

func EnableInfiniteApprovalIsNil

func EnableInfiniteApprovalIsNil() predicate.Settings

EnableInfiniteApprovalIsNil applies the IsNil predicate on the "enableInfiniteApproval" field.

func EnableInfiniteApprovalNEQ

func EnableInfiniteApprovalNEQ(v bool) predicate.Settings

EnableInfiniteApprovalNEQ applies the NEQ predicate on the "enableInfiniteApproval" field.

func EnableInfiniteApprovalNotNil

func EnableInfiniteApprovalNotNil() predicate.Settings

EnableInfiniteApprovalNotNil applies the NotNil predicate on the "enableInfiniteApproval" field.

func ExitSlippageBps

func ExitSlippageBps(v int) predicate.Settings

ExitSlippageBps applies equality check predicate on the "exitSlippageBps" field. It's identical to ExitSlippageBpsEQ.

func ExitSlippageBpsEQ

func ExitSlippageBpsEQ(v int) predicate.Settings

ExitSlippageBpsEQ applies the EQ predicate on the "exitSlippageBps" field.

func ExitSlippageBpsGT

func ExitSlippageBpsGT(v int) predicate.Settings

ExitSlippageBpsGT applies the GT predicate on the "exitSlippageBps" field.

func ExitSlippageBpsGTE

func ExitSlippageBpsGTE(v int) predicate.Settings

ExitSlippageBpsGTE applies the GTE predicate on the "exitSlippageBps" field.

func ExitSlippageBpsIn

func ExitSlippageBpsIn(vs ...int) predicate.Settings

ExitSlippageBpsIn applies the In predicate on the "exitSlippageBps" field.

func ExitSlippageBpsIsNil

func ExitSlippageBpsIsNil() predicate.Settings

ExitSlippageBpsIsNil applies the IsNil predicate on the "exitSlippageBps" field.

func ExitSlippageBpsLT

func ExitSlippageBpsLT(v int) predicate.Settings

ExitSlippageBpsLT applies the LT predicate on the "exitSlippageBps" field.

func ExitSlippageBpsLTE

func ExitSlippageBpsLTE(v int) predicate.Settings

ExitSlippageBpsLTE applies the LTE predicate on the "exitSlippageBps" field.

func ExitSlippageBpsNEQ

func ExitSlippageBpsNEQ(v int) predicate.Settings

ExitSlippageBpsNEQ applies the NEQ predicate on the "exitSlippageBps" field.

func ExitSlippageBpsNotIn

func ExitSlippageBpsNotIn(vs ...int) predicate.Settings

ExitSlippageBpsNotIn applies the NotIn predicate on the "exitSlippageBps" field.

func ExitSlippageBpsNotNil

func ExitSlippageBpsNotNil() predicate.Settings

ExitSlippageBpsNotNil applies the NotNil predicate on the "exitSlippageBps" field.

func ID

func ID(id int) predicate.Settings

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Settings

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Settings

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Settings

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Settings

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Settings

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Settings

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Settings

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Settings

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Settings) predicate.Settings

Or groups predicates with the OR operator between them.

func SellSlippageBps

func SellSlippageBps(v int) predicate.Settings

SellSlippageBps applies equality check predicate on the "sellSlippageBps" field. It's identical to SellSlippageBpsEQ.

func SellSlippageBpsEQ

func SellSlippageBpsEQ(v int) predicate.Settings

SellSlippageBpsEQ applies the EQ predicate on the "sellSlippageBps" field.

func SellSlippageBpsGT

func SellSlippageBpsGT(v int) predicate.Settings

SellSlippageBpsGT applies the GT predicate on the "sellSlippageBps" field.

func SellSlippageBpsGTE

func SellSlippageBpsGTE(v int) predicate.Settings

SellSlippageBpsGTE applies the GTE predicate on the "sellSlippageBps" field.

func SellSlippageBpsIn

func SellSlippageBpsIn(vs ...int) predicate.Settings

SellSlippageBpsIn applies the In predicate on the "sellSlippageBps" field.

func SellSlippageBpsIsNil

func SellSlippageBpsIsNil() predicate.Settings

SellSlippageBpsIsNil applies the IsNil predicate on the "sellSlippageBps" field.

func SellSlippageBpsLT

func SellSlippageBpsLT(v int) predicate.Settings

SellSlippageBpsLT applies the LT predicate on the "sellSlippageBps" field.

func SellSlippageBpsLTE

func SellSlippageBpsLTE(v int) predicate.Settings

SellSlippageBpsLTE applies the LTE predicate on the "sellSlippageBps" field.

func SellSlippageBpsNEQ

func SellSlippageBpsNEQ(v int) predicate.Settings

SellSlippageBpsNEQ applies the NEQ predicate on the "sellSlippageBps" field.

func SellSlippageBpsNotIn

func SellSlippageBpsNotIn(vs ...int) predicate.Settings

SellSlippageBpsNotIn applies the NotIn predicate on the "sellSlippageBps" field.

func SellSlippageBpsNotNil

func SellSlippageBpsNotNil() predicate.Settings

SellSlippageBpsNotNil applies the NotNil predicate on the "sellSlippageBps" field.

func SlippageBps

func SlippageBps(v int) predicate.Settings

SlippageBps applies equality check predicate on the "slippageBps" field. It's identical to SlippageBpsEQ.

func SlippageBpsEQ

func SlippageBpsEQ(v int) predicate.Settings

SlippageBpsEQ applies the EQ predicate on the "slippageBps" field.

func SlippageBpsGT

func SlippageBpsGT(v int) predicate.Settings

SlippageBpsGT applies the GT predicate on the "slippageBps" field.

func SlippageBpsGTE

func SlippageBpsGTE(v int) predicate.Settings

SlippageBpsGTE applies the GTE predicate on the "slippageBps" field.

func SlippageBpsIn

func SlippageBpsIn(vs ...int) predicate.Settings

SlippageBpsIn applies the In predicate on the "slippageBps" field.

func SlippageBpsLT

func SlippageBpsLT(v int) predicate.Settings

SlippageBpsLT applies the LT predicate on the "slippageBps" field.

func SlippageBpsLTE

func SlippageBpsLTE(v int) predicate.Settings

SlippageBpsLTE applies the LTE predicate on the "slippageBps" field.

func SlippageBpsNEQ

func SlippageBpsNEQ(v int) predicate.Settings

SlippageBpsNEQ applies the NEQ predicate on the "slippageBps" field.

func SlippageBpsNotIn

func SlippageBpsNotIn(vs ...int) predicate.Settings

SlippageBpsNotIn applies the NotIn predicate on the "slippageBps" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Settings

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Settings

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Settings

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Settings

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Settings

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Settings

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Settings

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Settings

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Settings

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UserId

func UserId(v int64) predicate.Settings

UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.

func UserIdEQ

func UserIdEQ(v int64) predicate.Settings

UserIdEQ applies the EQ predicate on the "userId" field.

func UserIdGT

func UserIdGT(v int64) predicate.Settings

UserIdGT applies the GT predicate on the "userId" field.

func UserIdGTE

func UserIdGTE(v int64) predicate.Settings

UserIdGTE applies the GTE predicate on the "userId" field.

func UserIdIn

func UserIdIn(vs ...int64) predicate.Settings

UserIdIn applies the In predicate on the "userId" field.

func UserIdLT

func UserIdLT(v int64) predicate.Settings

UserIdLT applies the LT predicate on the "userId" field.

func UserIdLTE

func UserIdLTE(v int64) predicate.Settings

UserIdLTE applies the LTE predicate on the "userId" field.

func UserIdNEQ

func UserIdNEQ(v int64) predicate.Settings

UserIdNEQ applies the NEQ predicate on the "userId" field.

func UserIdNotIn

func UserIdNotIn(vs ...int64) predicate.Settings

UserIdNotIn applies the NotIn predicate on the "userId" field.

func ValidColumn

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL