globalsettings

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the globalsettings type in the database.
	Label = "global_settings"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldCategory holds the string denoting the category field in the database.
	FieldCategory = "category"
	// FieldSettingKey holds the string denoting the setting_key field in the database.
	FieldSettingKey = "setting_key"
	// FieldSettingValue holds the string denoting the setting_value field in the database.
	FieldSettingValue = "setting_value"
	// FieldValueType holds the string denoting the value_type field in the database.
	FieldValueType = "value_type"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldProtected holds the string denoting the protected field in the database.
	FieldProtected = "protected"
	// Table holds the table name of the globalsettings in the database.
	Table = "lion_settings"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy int64
	// DefaultUpdatedBy holds the default value on creation for the "updated_by" field.
	DefaultUpdatedBy int64
	// CategoryValidator is a validator for the "category" field. It is called by the builders before save.
	CategoryValidator func(string) error
	// SettingKeyValidator is a validator for the "setting_key" field. It is called by the builders before save.
	SettingKeyValidator func(string) error
	// DefaultSettingValue holds the default value on creation for the "setting_value" field.
	DefaultSettingValue string
	// DefaultValueType holds the default value on creation for the "value_type" field.
	DefaultValueType string
	// ValueTypeValidator is a validator for the "value_type" field. It is called by the builders before save.
	ValueTypeValidator func(string) error
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// DefaultProtected holds the default value on creation for the "protected" field.
	DefaultProtected bool
)

Columns holds all SQL columns for globalsettings fields.

Functions

func And

And groups predicates with the AND operator between them.

func Category

func Category(v string) predicate.GlobalSettings

Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.

func CategoryContains

func CategoryContains(v string) predicate.GlobalSettings

CategoryContains applies the Contains predicate on the "category" field.

func CategoryContainsFold

func CategoryContainsFold(v string) predicate.GlobalSettings

CategoryContainsFold applies the ContainsFold predicate on the "category" field.

func CategoryEQ

func CategoryEQ(v string) predicate.GlobalSettings

CategoryEQ applies the EQ predicate on the "category" field.

func CategoryEqualFold

func CategoryEqualFold(v string) predicate.GlobalSettings

CategoryEqualFold applies the EqualFold predicate on the "category" field.

func CategoryGT

func CategoryGT(v string) predicate.GlobalSettings

CategoryGT applies the GT predicate on the "category" field.

func CategoryGTE

func CategoryGTE(v string) predicate.GlobalSettings

CategoryGTE applies the GTE predicate on the "category" field.

func CategoryHasPrefix

func CategoryHasPrefix(v string) predicate.GlobalSettings

CategoryHasPrefix applies the HasPrefix predicate on the "category" field.

func CategoryHasSuffix

func CategoryHasSuffix(v string) predicate.GlobalSettings

CategoryHasSuffix applies the HasSuffix predicate on the "category" field.

func CategoryIn

func CategoryIn(vs ...string) predicate.GlobalSettings

CategoryIn applies the In predicate on the "category" field.

func CategoryLT

func CategoryLT(v string) predicate.GlobalSettings

CategoryLT applies the LT predicate on the "category" field.

func CategoryLTE

func CategoryLTE(v string) predicate.GlobalSettings

CategoryLTE applies the LTE predicate on the "category" field.

func CategoryNEQ

func CategoryNEQ(v string) predicate.GlobalSettings

CategoryNEQ applies the NEQ predicate on the "category" field.

func CategoryNotIn

func CategoryNotIn(vs ...string) predicate.GlobalSettings

CategoryNotIn applies the NotIn predicate on the "category" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.GlobalSettings

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.GlobalSettings

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.GlobalSettings

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.GlobalSettings

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.GlobalSettings

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.GlobalSettings

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.GlobalSettings

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.GlobalSettings

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.GlobalSettings

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int64) predicate.GlobalSettings

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.GlobalSettings

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.GlobalSettings

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.GlobalSettings

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.GlobalSettings

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.GlobalSettings

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.GlobalSettings

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.GlobalSettings

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.GlobalSettings

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.GlobalSettings

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.GlobalSettings

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func Description

func Description(v string) predicate.GlobalSettings

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.GlobalSettings

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.GlobalSettings

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.GlobalSettings

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.GlobalSettings

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.GlobalSettings

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.GlobalSettings

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.GlobalSettings

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.GlobalSettings

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.GlobalSettings

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.GlobalSettings

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.GlobalSettings

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.GlobalSettings

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.GlobalSettings

DescriptionNotIn applies the NotIn predicate on the "description" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.GlobalSettings

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.GlobalSettings

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.GlobalSettings

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.GlobalSettings

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.GlobalSettings

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.GlobalSettings

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Protected

func Protected(v bool) predicate.GlobalSettings

Protected applies equality check predicate on the "protected" field. It's identical to ProtectedEQ.

func ProtectedEQ

func ProtectedEQ(v bool) predicate.GlobalSettings

ProtectedEQ applies the EQ predicate on the "protected" field.

func ProtectedNEQ

func ProtectedNEQ(v bool) predicate.GlobalSettings

ProtectedNEQ applies the NEQ predicate on the "protected" field.

func SettingKey

func SettingKey(v string) predicate.GlobalSettings

SettingKey applies equality check predicate on the "setting_key" field. It's identical to SettingKeyEQ.

func SettingKeyContains

func SettingKeyContains(v string) predicate.GlobalSettings

SettingKeyContains applies the Contains predicate on the "setting_key" field.

func SettingKeyContainsFold

func SettingKeyContainsFold(v string) predicate.GlobalSettings

SettingKeyContainsFold applies the ContainsFold predicate on the "setting_key" field.

func SettingKeyEQ

func SettingKeyEQ(v string) predicate.GlobalSettings

SettingKeyEQ applies the EQ predicate on the "setting_key" field.

func SettingKeyEqualFold

func SettingKeyEqualFold(v string) predicate.GlobalSettings

SettingKeyEqualFold applies the EqualFold predicate on the "setting_key" field.

func SettingKeyGT

func SettingKeyGT(v string) predicate.GlobalSettings

SettingKeyGT applies the GT predicate on the "setting_key" field.

func SettingKeyGTE

func SettingKeyGTE(v string) predicate.GlobalSettings

SettingKeyGTE applies the GTE predicate on the "setting_key" field.

func SettingKeyHasPrefix

func SettingKeyHasPrefix(v string) predicate.GlobalSettings

SettingKeyHasPrefix applies the HasPrefix predicate on the "setting_key" field.

func SettingKeyHasSuffix

func SettingKeyHasSuffix(v string) predicate.GlobalSettings

SettingKeyHasSuffix applies the HasSuffix predicate on the "setting_key" field.

func SettingKeyIn

func SettingKeyIn(vs ...string) predicate.GlobalSettings

SettingKeyIn applies the In predicate on the "setting_key" field.

func SettingKeyLT

func SettingKeyLT(v string) predicate.GlobalSettings

SettingKeyLT applies the LT predicate on the "setting_key" field.

func SettingKeyLTE

func SettingKeyLTE(v string) predicate.GlobalSettings

SettingKeyLTE applies the LTE predicate on the "setting_key" field.

func SettingKeyNEQ

func SettingKeyNEQ(v string) predicate.GlobalSettings

SettingKeyNEQ applies the NEQ predicate on the "setting_key" field.

func SettingKeyNotIn

func SettingKeyNotIn(vs ...string) predicate.GlobalSettings

SettingKeyNotIn applies the NotIn predicate on the "setting_key" field.

func SettingValue

func SettingValue(v string) predicate.GlobalSettings

SettingValue applies equality check predicate on the "setting_value" field. It's identical to SettingValueEQ.

func SettingValueContains

func SettingValueContains(v string) predicate.GlobalSettings

SettingValueContains applies the Contains predicate on the "setting_value" field.

func SettingValueContainsFold

func SettingValueContainsFold(v string) predicate.GlobalSettings

SettingValueContainsFold applies the ContainsFold predicate on the "setting_value" field.

func SettingValueEQ

func SettingValueEQ(v string) predicate.GlobalSettings

SettingValueEQ applies the EQ predicate on the "setting_value" field.

func SettingValueEqualFold

func SettingValueEqualFold(v string) predicate.GlobalSettings

SettingValueEqualFold applies the EqualFold predicate on the "setting_value" field.

func SettingValueGT

func SettingValueGT(v string) predicate.GlobalSettings

SettingValueGT applies the GT predicate on the "setting_value" field.

func SettingValueGTE

func SettingValueGTE(v string) predicate.GlobalSettings

SettingValueGTE applies the GTE predicate on the "setting_value" field.

func SettingValueHasPrefix

func SettingValueHasPrefix(v string) predicate.GlobalSettings

SettingValueHasPrefix applies the HasPrefix predicate on the "setting_value" field.

func SettingValueHasSuffix

func SettingValueHasSuffix(v string) predicate.GlobalSettings

SettingValueHasSuffix applies the HasSuffix predicate on the "setting_value" field.

func SettingValueIn

func SettingValueIn(vs ...string) predicate.GlobalSettings

SettingValueIn applies the In predicate on the "setting_value" field.

func SettingValueLT

func SettingValueLT(v string) predicate.GlobalSettings

SettingValueLT applies the LT predicate on the "setting_value" field.

func SettingValueLTE

func SettingValueLTE(v string) predicate.GlobalSettings

SettingValueLTE applies the LTE predicate on the "setting_value" field.

func SettingValueNEQ

func SettingValueNEQ(v string) predicate.GlobalSettings

SettingValueNEQ applies the NEQ predicate on the "setting_value" field.

func SettingValueNotIn

func SettingValueNotIn(vs ...string) predicate.GlobalSettings

SettingValueNotIn applies the NotIn predicate on the "setting_value" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.GlobalSettings

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.GlobalSettings

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.GlobalSettings

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.GlobalSettings

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.GlobalSettings

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.GlobalSettings

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.GlobalSettings

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.GlobalSettings

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.GlobalSettings

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int64) predicate.GlobalSettings

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.GlobalSettings

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.GlobalSettings

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.GlobalSettings

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.GlobalSettings

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.GlobalSettings

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.GlobalSettings

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.GlobalSettings

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.GlobalSettings

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.GlobalSettings

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.GlobalSettings

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func ValueType

func ValueType(v string) predicate.GlobalSettings

ValueType applies equality check predicate on the "value_type" field. It's identical to ValueTypeEQ.

func ValueTypeContains

func ValueTypeContains(v string) predicate.GlobalSettings

ValueTypeContains applies the Contains predicate on the "value_type" field.

func ValueTypeContainsFold

func ValueTypeContainsFold(v string) predicate.GlobalSettings

ValueTypeContainsFold applies the ContainsFold predicate on the "value_type" field.

func ValueTypeEQ

func ValueTypeEQ(v string) predicate.GlobalSettings

ValueTypeEQ applies the EQ predicate on the "value_type" field.

func ValueTypeEqualFold

func ValueTypeEqualFold(v string) predicate.GlobalSettings

ValueTypeEqualFold applies the EqualFold predicate on the "value_type" field.

func ValueTypeGT

func ValueTypeGT(v string) predicate.GlobalSettings

ValueTypeGT applies the GT predicate on the "value_type" field.

func ValueTypeGTE

func ValueTypeGTE(v string) predicate.GlobalSettings

ValueTypeGTE applies the GTE predicate on the "value_type" field.

func ValueTypeHasPrefix

func ValueTypeHasPrefix(v string) predicate.GlobalSettings

ValueTypeHasPrefix applies the HasPrefix predicate on the "value_type" field.

func ValueTypeHasSuffix

func ValueTypeHasSuffix(v string) predicate.GlobalSettings

ValueTypeHasSuffix applies the HasSuffix predicate on the "value_type" field.

func ValueTypeIn

func ValueTypeIn(vs ...string) predicate.GlobalSettings

ValueTypeIn applies the In predicate on the "value_type" field.

func ValueTypeLT

func ValueTypeLT(v string) predicate.GlobalSettings

ValueTypeLT applies the LT predicate on the "value_type" field.

func ValueTypeLTE

func ValueTypeLTE(v string) predicate.GlobalSettings

ValueTypeLTE applies the LTE predicate on the "value_type" field.

func ValueTypeNEQ

func ValueTypeNEQ(v string) predicate.GlobalSettings

ValueTypeNEQ applies the NEQ predicate on the "value_type" field.

func ValueTypeNotIn

func ValueTypeNotIn(vs ...string) predicate.GlobalSettings

ValueTypeNotIn applies the NotIn predicate on the "value_type" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the GlobalSettings queries.

func ByCategory

func ByCategory(opts ...sql.OrderTermOption) OrderOption

ByCategory orders the results by the category field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByProtected

func ByProtected(opts ...sql.OrderTermOption) OrderOption

ByProtected orders the results by the protected field.

func BySettingKey

func BySettingKey(opts ...sql.OrderTermOption) OrderOption

BySettingKey orders the results by the setting_key field.

func BySettingValue

func BySettingValue(opts ...sql.OrderTermOption) OrderOption

BySettingValue orders the results by the setting_value field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

func ByValueType

func ByValueType(opts ...sql.OrderTermOption) OrderOption

ByValueType orders the results by the value_type field.

Jump to

Keyboard shortcuts

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