membersetting

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the membersetting type in the database.
	Label = "member_setting"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMemberID holds the string denoting the member_id field in the database.
	FieldMemberID = "member_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"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the membersetting in the database.
	Table = "member_setting"
	// OwnerTable is the table the holds the owner relation/edge. The primary key declared below.
	OwnerTable = "member_settings"
	// OwnerInverseTable is the table name for the Member entity.
	// It exists in this package in order to avoid circular dependency with the "member" package.
	OwnerInverseTable = "member"
)
View Source
const DefaultTypeof = TypeofSTRING

TypeofSTRING is the default value of the Typeof enum.

Variables

Columns holds all SQL columns for membersetting fields.

View Source
var (
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
)
View Source
var (
	// OwnerPrimaryKey and OwnerColumn2 are the table columns denoting the
	// primary key for the owner relation (M2M).
	OwnerPrimaryKey = []string{"member_id", "member_setting_id"}
)

Functions

func And

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.MemberSetting

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Member) predicate.MemberSetting

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.MemberSetting

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.MemberSetting

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.MemberSetting

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.MemberSetting

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.MemberSetting

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.MemberSetting

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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

func KeyContainsFold

func KeyContainsFold(v string) predicate.MemberSetting

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

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

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

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.MemberSetting

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

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.MemberSetting

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

func KeyIn

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

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

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

func KeyNEQ

func KeyNEQ(v string) predicate.MemberSetting

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

func KeyNotIn

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

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

func MemberID

func MemberID(v string) predicate.MemberSetting

MemberID applies equality check predicate on the "member_id" field. It's identical to MemberIDEQ.

func MemberIDContains

func MemberIDContains(v string) predicate.MemberSetting

MemberIDContains applies the Contains predicate on the "member_id" field.

func MemberIDContainsFold

func MemberIDContainsFold(v string) predicate.MemberSetting

MemberIDContainsFold applies the ContainsFold predicate on the "member_id" field.

func MemberIDEQ

func MemberIDEQ(v string) predicate.MemberSetting

MemberIDEQ applies the EQ predicate on the "member_id" field.

func MemberIDEqualFold

func MemberIDEqualFold(v string) predicate.MemberSetting

MemberIDEqualFold applies the EqualFold predicate on the "member_id" field.

func MemberIDGT

func MemberIDGT(v string) predicate.MemberSetting

MemberIDGT applies the GT predicate on the "member_id" field.

func MemberIDGTE

func MemberIDGTE(v string) predicate.MemberSetting

MemberIDGTE applies the GTE predicate on the "member_id" field.

func MemberIDHasPrefix

func MemberIDHasPrefix(v string) predicate.MemberSetting

MemberIDHasPrefix applies the HasPrefix predicate on the "member_id" field.

func MemberIDHasSuffix

func MemberIDHasSuffix(v string) predicate.MemberSetting

MemberIDHasSuffix applies the HasSuffix predicate on the "member_id" field.

func MemberIDIn

func MemberIDIn(vs ...string) predicate.MemberSetting

MemberIDIn applies the In predicate on the "member_id" field.

func MemberIDLT

func MemberIDLT(v string) predicate.MemberSetting

MemberIDLT applies the LT predicate on the "member_id" field.

func MemberIDLTE

func MemberIDLTE(v string) predicate.MemberSetting

MemberIDLTE applies the LTE predicate on the "member_id" field.

func MemberIDNEQ

func MemberIDNEQ(v string) predicate.MemberSetting

MemberIDNEQ applies the NEQ predicate on the "member_id" field.

func MemberIDNotIn

func MemberIDNotIn(vs ...string) predicate.MemberSetting

MemberIDNotIn applies the NotIn predicate on the "member_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 TypeofEQ

func TypeofEQ(v Typeof) predicate.MemberSetting

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

func TypeofIn

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

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

func TypeofNEQ

func TypeofNEQ(v Typeof) predicate.MemberSetting

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

func TypeofNotIn

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

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

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

func ValueContains

func ValueContains(v string) predicate.MemberSetting

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

func ValueContainsFold

func ValueContainsFold(v string) predicate.MemberSetting

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

func ValueEQ

func ValueEQ(v string) predicate.MemberSetting

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

func ValueEqualFold

func ValueEqualFold(v string) predicate.MemberSetting

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

func ValueGT

func ValueGT(v string) predicate.MemberSetting

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

func ValueGTE

func ValueGTE(v string) predicate.MemberSetting

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

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.MemberSetting

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

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.MemberSetting

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

func ValueIn

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

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

func ValueLT

func ValueLT(v string) predicate.MemberSetting

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

func ValueLTE

func ValueLTE(v string) predicate.MemberSetting

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

func ValueNEQ

func ValueNEQ(v string) predicate.MemberSetting

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

func ValueNotIn

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

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