systemsetting

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the systemsetting type in the database.
	Label = "system_setting"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSpace holds the string denoting the space field in the database.
	FieldSpace = "space"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// FieldTypeof holds the string denoting the typeof field in the database.
	FieldTypeof = "typeof"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// Table holds the table name of the systemsetting in the database.
	Table = "system_setting"
)

Variables

View Source
var (
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// DefaultValue holds the default value on creation for the "value" field.
	DefaultValue string
	// DefaultTypeof holds the default value on creation for the "typeof" field.
	DefaultTypeof string
	// TypeofValidator is a validator for the "typeof" field. It is called by the builders before save.
	TypeofValidator func(string) error
	// 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
)

Columns holds all SQL columns for systemsetting fields.

Functions

func And

And groups predicates with the AND operator between them.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SystemSetting

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SystemSetting

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SystemSetting

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SystemSetting

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SystemSetting

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SystemSetting

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.SystemSetting

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.SystemSetting

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.SystemSetting

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.SystemSetting

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.SystemSetting

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.SystemSetting

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.SystemSetting

KeyIn applies the In predicate on the "key" field.

func KeyLT

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.SystemSetting

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.SystemSetting

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.SystemSetting

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func SpaceEQ

func SpaceEQ(v Space) predicate.SystemSetting

SpaceEQ applies the EQ predicate on the "space" field.

func SpaceIn

func SpaceIn(vs ...Space) predicate.SystemSetting

SpaceIn applies the In predicate on the "space" field.

func SpaceIsNil

func SpaceIsNil() predicate.SystemSetting

SpaceIsNil applies the IsNil predicate on the "space" field.

func SpaceNEQ

func SpaceNEQ(v Space) predicate.SystemSetting

SpaceNEQ applies the NEQ predicate on the "space" field.

func SpaceNotIn

func SpaceNotIn(vs ...Space) predicate.SystemSetting

SpaceNotIn applies the NotIn predicate on the "space" field.

func SpaceNotNil

func SpaceNotNil() predicate.SystemSetting

SpaceNotNil applies the NotNil predicate on the "space" field.

func SpaceValidator

func SpaceValidator(s Space) error

SpaceValidator is a validator for the "space" field enum values. It is called by the builders before save.

func Typeof

func Typeof(v string) predicate.SystemSetting

Typeof applies equality check predicate on the "typeof" field. It's identical to TypeofEQ.

func TypeofContains

func TypeofContains(v string) predicate.SystemSetting

TypeofContains applies the Contains predicate on the "typeof" field.

func TypeofContainsFold

func TypeofContainsFold(v string) predicate.SystemSetting

TypeofContainsFold applies the ContainsFold predicate on the "typeof" field.

func TypeofEQ

func TypeofEQ(v string) predicate.SystemSetting

TypeofEQ applies the EQ predicate on the "typeof" field.

func TypeofEqualFold

func TypeofEqualFold(v string) predicate.SystemSetting

TypeofEqualFold applies the EqualFold predicate on the "typeof" field.

func TypeofGT

func TypeofGT(v string) predicate.SystemSetting

TypeofGT applies the GT predicate on the "typeof" field.

func TypeofGTE

func TypeofGTE(v string) predicate.SystemSetting

TypeofGTE applies the GTE predicate on the "typeof" field.

func TypeofHasPrefix

func TypeofHasPrefix(v string) predicate.SystemSetting

TypeofHasPrefix applies the HasPrefix predicate on the "typeof" field.

func TypeofHasSuffix

func TypeofHasSuffix(v string) predicate.SystemSetting

TypeofHasSuffix applies the HasSuffix predicate on the "typeof" field.

func TypeofIn

func TypeofIn(vs ...string) predicate.SystemSetting

TypeofIn applies the In predicate on the "typeof" field.

func TypeofLT

func TypeofLT(v string) predicate.SystemSetting

TypeofLT applies the LT predicate on the "typeof" field.

func TypeofLTE

func TypeofLTE(v string) predicate.SystemSetting

TypeofLTE applies the LTE predicate on the "typeof" field.

func TypeofNEQ

func TypeofNEQ(v string) predicate.SystemSetting

TypeofNEQ applies the NEQ predicate on the "typeof" field.

func TypeofNotIn

func TypeofNotIn(vs ...string) predicate.SystemSetting

TypeofNotIn applies the NotIn predicate on the "typeof" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.SystemSetting

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.SystemSetting

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.SystemSetting

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.SystemSetting

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.SystemSetting

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.SystemSetting

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.SystemSetting

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

func UpdateTimeNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

func Value

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueContains

func ValueContains(v string) predicate.SystemSetting

ValueContains applies the Contains predicate on the "value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.SystemSetting

ValueContainsFold applies the ContainsFold predicate on the "value" field.

func ValueEQ

func ValueEQ(v string) predicate.SystemSetting

ValueEQ applies the EQ predicate on the "value" field.

func ValueEqualFold

func ValueEqualFold(v string) predicate.SystemSetting

ValueEqualFold applies the EqualFold predicate on the "value" field.

func ValueGT

func ValueGT(v string) predicate.SystemSetting

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v string) predicate.SystemSetting

ValueGTE applies the GTE predicate on the "value" field.

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.SystemSetting

ValueHasPrefix applies the HasPrefix predicate on the "value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.SystemSetting

ValueHasSuffix applies the HasSuffix predicate on the "value" field.

func ValueIn

func ValueIn(vs ...string) predicate.SystemSetting

ValueIn applies the In predicate on the "value" field.

func ValueIsNil

func ValueIsNil() predicate.SystemSetting

ValueIsNil applies the IsNil predicate on the "value" field.

func ValueLT

func ValueLT(v string) predicate.SystemSetting

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v string) predicate.SystemSetting

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v string) predicate.SystemSetting

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...string) predicate.SystemSetting

ValueNotIn applies the NotIn predicate on the "value" field.

func ValueNotNil

func ValueNotNil() predicate.SystemSetting

ValueNotNil applies the NotNil predicate on the "value" field.

Types

type Space

type Space string

Space defines the type for the "space" enum field.

const (
	SpaceGeneral Space = "general"
	SpaceWww     Space = "www"
)

Space values.

func (Space) String

func (s Space) String() string

Jump to

Keyboard shortcuts

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