usersetting

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 usersetting type in the database.
	Label = "user_setting"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// 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"
	// EdgeSettingsOwner holds the string denoting the settings_owner edge name in mutations.
	EdgeSettingsOwner = "settings_owner"
	// Table holds the table name of the usersetting in the database.
	Table = "user_setting"
	// SettingsOwnerTable is the table that holds the settings_owner relation/edge.
	SettingsOwnerTable = "user_setting"
	// SettingsOwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	SettingsOwnerInverseTable = "user"
	// SettingsOwnerColumn is the table column denoting the settings_owner relation/edge.
	SettingsOwnerColumn = "owner_id"
)
View Source
const DefaultTypeof = TypeofSTRING

TypeofSTRING is the default value of the Typeof enum.

Variables

Columns holds all SQL columns for usersetting fields.

View Source
var (
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.UserSetting) predicate.UserSetting

And groups predicates with the AND operator between them.

func HasSettingsOwner

func HasSettingsOwner() predicate.UserSetting

HasSettingsOwner applies the HasEdge predicate on the "settings_owner" edge.

func HasSettingsOwnerWith

func HasSettingsOwnerWith(preds ...predicate.User) predicate.UserSetting

HasSettingsOwnerWith applies the HasEdge predicate on the "settings_owner" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.UserSetting

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserSetting

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserSetting

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserSetting

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserSetting

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserSetting

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserSetting

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.UserSetting

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

func KeyContainsFold

func KeyContainsFold(v string) predicate.UserSetting

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

func KeyEQ

func KeyEQ(v string) predicate.UserSetting

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

func KeyEqualFold

func KeyEqualFold(v string) predicate.UserSetting

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

func KeyGT

func KeyGT(v string) predicate.UserSetting

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

func KeyGTE

func KeyGTE(v string) predicate.UserSetting

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

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.UserSetting

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

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.UserSetting

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

func KeyIn

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

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

func KeyLT

func KeyLT(v string) predicate.UserSetting

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

func KeyLTE

func KeyLTE(v string) predicate.UserSetting

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

func KeyNEQ

func KeyNEQ(v string) predicate.UserSetting

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

func KeyNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserSetting) predicate.UserSetting

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v int) predicate.UserSetting

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v int) predicate.UserSetting

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...int) predicate.UserSetting

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v int) predicate.UserSetting

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...int) predicate.UserSetting

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func TypeofEQ

func TypeofEQ(v Typeof) predicate.UserSetting

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

func TypeofIn

func TypeofIn(vs ...Typeof) predicate.UserSetting

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

func TypeofNEQ

func TypeofNEQ(v Typeof) predicate.UserSetting

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

func TypeofNotIn

func TypeofNotIn(vs ...Typeof) predicate.UserSetting

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

func TypeofValidator

func TypeofValidator(t Typeof) error

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

func ValidColumn

func ValidColumn(column string) bool

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

func Value

func Value(v string) predicate.UserSetting

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

func ValueContains

func ValueContains(v string) predicate.UserSetting

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

func ValueContainsFold

func ValueContainsFold(v string) predicate.UserSetting

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

func ValueEQ

func ValueEQ(v string) predicate.UserSetting

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

func ValueEqualFold

func ValueEqualFold(v string) predicate.UserSetting

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

func ValueGT

func ValueGT(v string) predicate.UserSetting

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

func ValueGTE

func ValueGTE(v string) predicate.UserSetting

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

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.UserSetting

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

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.UserSetting

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

func ValueIn

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

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

func ValueLT

func ValueLT(v string) predicate.UserSetting

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

func ValueLTE

func ValueLTE(v string) predicate.UserSetting

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

func ValueNEQ

func ValueNEQ(v string) predicate.UserSetting

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

func ValueNotIn

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

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

Types

type Typeof

type Typeof string

Typeof defines the type for the "typeof" enum field.

const (
	TypeofSTRING  Typeof = "STRING"
	TypeofNUMBER  Typeof = "NUMBER"
	TypeofBOOLEAN Typeof = "BOOLEAN"
	TypeofARRAY   Typeof = "ARRAY"
	TypeofJSON    Typeof = "JSON"
)

Typeof values.

func (Typeof) String

func (t Typeof) String() string

Jump to

Keyboard shortcuts

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