component

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 component type in the database.
	Label = "component"
	// 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"
	// FieldSn holds the string denoting the sn field in the database.
	FieldSn = "sn"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDesc holds the string denoting the desc field in the database.
	FieldDesc = "desc"
	// FieldCenter holds the string denoting the center field in the database.
	FieldCenter = "center"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldRaw holds the string denoting the raw field in the database.
	FieldRaw = "raw"
	// FieldRawLength holds the string denoting the raw_length field in the database.
	FieldRawLength = "raw_length"
	// FieldScore holds the string denoting the score field in the database.
	FieldScore = "score"
	// FieldVerifyTime holds the string denoting the verify_time field in the database.
	FieldVerifyTime = "verify_time"
	// 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"
	// EdgeComponentOwner holds the string denoting the component_owner edge name in mutations.
	EdgeComponentOwner = "component_owner"
	// EdgeComponentTags holds the string denoting the component_tags edge name in mutations.
	EdgeComponentTags = "component_tags"
	// Table holds the table name of the component in the database.
	Table = "components"
	// ComponentOwnerTable is the table that holds the component_owner relation/edge.
	ComponentOwnerTable = "components"
	// ComponentOwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	ComponentOwnerInverseTable = "user"
	// ComponentOwnerColumn is the table column denoting the component_owner relation/edge.
	ComponentOwnerColumn = "owner_id"
	// ComponentTagsTable is the table that holds the component_tags relation/edge. The primary key declared below.
	ComponentTagsTable = "component_component_tags"
	// ComponentTagsInverseTable is the table name for the ComponentTag entity.
	// It exists in this package in order to avoid circular dependency with the "componenttag" package.
	ComponentTagsInverseTable = "component_tag"
)

Variables

View Source
var (
	// DefaultSn holds the default value on creation for the "sn" field.
	DefaultSn func() string
	// SnValidator is a validator for the "sn" field. It is called by the builders before save.
	SnValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DescValidator is a validator for the "desc" field. It is called by the builders before save.
	DescValidator func(string) error
	// DefaultCenter holds the default value on creation for the "center" field.
	DefaultCenter bool
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion string
	// DefaultRawLength holds the default value on creation for the "raw_length" field.
	DefaultRawLength uint64
	// DefaultScore holds the default value on creation for the "score" field.
	DefaultScore int
	// 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
)

Columns holds all SQL columns for component fields.

View Source
var (
	// ComponentTagsPrimaryKey and ComponentTagsColumn2 are the table columns denoting the
	// primary key for the component_tags relation (M2M).
	ComponentTagsPrimaryKey = []string{"component_id", "component_tag_id"}
)

Functions

func And

func And(predicates ...predicate.Component) predicate.Component

And groups predicates with the AND operator between them.

func Center

func Center(v bool) predicate.Component

Center applies equality check predicate on the "center" field. It's identical to CenterEQ.

func CenterEQ

func CenterEQ(v bool) predicate.Component

CenterEQ applies the EQ predicate on the "center" field.

func CenterNEQ

func CenterNEQ(v bool) predicate.Component

CenterNEQ applies the NEQ predicate on the "center" field.

func CreateTime

func CreateTime(v time.Time) predicate.Component

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Component

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Component

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Component

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Component

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Component

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Component

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

func CreateTimeNotIn

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

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Desc

func Desc(v string) predicate.Component

Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.

func DescContains

func DescContains(v string) predicate.Component

DescContains applies the Contains predicate on the "desc" field.

func DescContainsFold

func DescContainsFold(v string) predicate.Component

DescContainsFold applies the ContainsFold predicate on the "desc" field.

func DescEQ

func DescEQ(v string) predicate.Component

DescEQ applies the EQ predicate on the "desc" field.

func DescEqualFold

func DescEqualFold(v string) predicate.Component

DescEqualFold applies the EqualFold predicate on the "desc" field.

func DescGT

func DescGT(v string) predicate.Component

DescGT applies the GT predicate on the "desc" field.

func DescGTE

func DescGTE(v string) predicate.Component

DescGTE applies the GTE predicate on the "desc" field.

func DescHasPrefix

func DescHasPrefix(v string) predicate.Component

DescHasPrefix applies the HasPrefix predicate on the "desc" field.

func DescHasSuffix

func DescHasSuffix(v string) predicate.Component

DescHasSuffix applies the HasSuffix predicate on the "desc" field.

func DescIn

func DescIn(vs ...string) predicate.Component

DescIn applies the In predicate on the "desc" field.

func DescLT

func DescLT(v string) predicate.Component

DescLT applies the LT predicate on the "desc" field.

func DescLTE

func DescLTE(v string) predicate.Component

DescLTE applies the LTE predicate on the "desc" field.

func DescNEQ

func DescNEQ(v string) predicate.Component

DescNEQ applies the NEQ predicate on the "desc" field.

func DescNotIn

func DescNotIn(vs ...string) predicate.Component

DescNotIn applies the NotIn predicate on the "desc" field.

func HasComponentOwner

func HasComponentOwner() predicate.Component

HasComponentOwner applies the HasEdge predicate on the "component_owner" edge.

func HasComponentOwnerWith

func HasComponentOwnerWith(preds ...predicate.User) predicate.Component

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

func HasComponentTags

func HasComponentTags() predicate.Component

HasComponentTags applies the HasEdge predicate on the "component_tags" edge.

func HasComponentTagsWith

func HasComponentTagsWith(preds ...predicate.ComponentTag) predicate.Component

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

func ID

func ID(id int) predicate.Component

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Component

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Component

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Component

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Component

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Component

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Component

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Component

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Component

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Component

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Component

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Component

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Component

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Component

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Component

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Component

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Component

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Component

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Component

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Component

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Component

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Component) predicate.Component

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v int) predicate.Component

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

func OwnerIDEQ

func OwnerIDEQ(v int) predicate.Component

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

func OwnerIDIn

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

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

func OwnerIDNEQ

func OwnerIDNEQ(v int) predicate.Component

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

func OwnerIDNotIn

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

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

func Raw

func Raw(v string) predicate.Component

Raw applies equality check predicate on the "raw" field. It's identical to RawEQ.

func RawContains

func RawContains(v string) predicate.Component

RawContains applies the Contains predicate on the "raw" field.

func RawContainsFold

func RawContainsFold(v string) predicate.Component

RawContainsFold applies the ContainsFold predicate on the "raw" field.

func RawEQ

func RawEQ(v string) predicate.Component

RawEQ applies the EQ predicate on the "raw" field.

func RawEqualFold

func RawEqualFold(v string) predicate.Component

RawEqualFold applies the EqualFold predicate on the "raw" field.

func RawGT

func RawGT(v string) predicate.Component

RawGT applies the GT predicate on the "raw" field.

func RawGTE

func RawGTE(v string) predicate.Component

RawGTE applies the GTE predicate on the "raw" field.

func RawHasPrefix

func RawHasPrefix(v string) predicate.Component

RawHasPrefix applies the HasPrefix predicate on the "raw" field.

func RawHasSuffix

func RawHasSuffix(v string) predicate.Component

RawHasSuffix applies the HasSuffix predicate on the "raw" field.

func RawIn

func RawIn(vs ...string) predicate.Component

RawIn applies the In predicate on the "raw" field.

func RawLT

func RawLT(v string) predicate.Component

RawLT applies the LT predicate on the "raw" field.

func RawLTE

func RawLTE(v string) predicate.Component

RawLTE applies the LTE predicate on the "raw" field.

func RawLength

func RawLength(v uint64) predicate.Component

RawLength applies equality check predicate on the "raw_length" field. It's identical to RawLengthEQ.

func RawLengthEQ

func RawLengthEQ(v uint64) predicate.Component

RawLengthEQ applies the EQ predicate on the "raw_length" field.

func RawLengthGT

func RawLengthGT(v uint64) predicate.Component

RawLengthGT applies the GT predicate on the "raw_length" field.

func RawLengthGTE

func RawLengthGTE(v uint64) predicate.Component

RawLengthGTE applies the GTE predicate on the "raw_length" field.

func RawLengthIn

func RawLengthIn(vs ...uint64) predicate.Component

RawLengthIn applies the In predicate on the "raw_length" field.

func RawLengthLT

func RawLengthLT(v uint64) predicate.Component

RawLengthLT applies the LT predicate on the "raw_length" field.

func RawLengthLTE

func RawLengthLTE(v uint64) predicate.Component

RawLengthLTE applies the LTE predicate on the "raw_length" field.

func RawLengthNEQ

func RawLengthNEQ(v uint64) predicate.Component

RawLengthNEQ applies the NEQ predicate on the "raw_length" field.

func RawLengthNotIn

func RawLengthNotIn(vs ...uint64) predicate.Component

RawLengthNotIn applies the NotIn predicate on the "raw_length" field.

func RawNEQ

func RawNEQ(v string) predicate.Component

RawNEQ applies the NEQ predicate on the "raw" field.

func RawNotIn

func RawNotIn(vs ...string) predicate.Component

RawNotIn applies the NotIn predicate on the "raw" field.

func Score

func Score(v int) predicate.Component

Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.

func ScoreEQ

func ScoreEQ(v int) predicate.Component

ScoreEQ applies the EQ predicate on the "score" field.

func ScoreGT

func ScoreGT(v int) predicate.Component

ScoreGT applies the GT predicate on the "score" field.

func ScoreGTE

func ScoreGTE(v int) predicate.Component

ScoreGTE applies the GTE predicate on the "score" field.

func ScoreIn

func ScoreIn(vs ...int) predicate.Component

ScoreIn applies the In predicate on the "score" field.

func ScoreLT

func ScoreLT(v int) predicate.Component

ScoreLT applies the LT predicate on the "score" field.

func ScoreLTE

func ScoreLTE(v int) predicate.Component

ScoreLTE applies the LTE predicate on the "score" field.

func ScoreNEQ

func ScoreNEQ(v int) predicate.Component

ScoreNEQ applies the NEQ predicate on the "score" field.

func ScoreNotIn

func ScoreNotIn(vs ...int) predicate.Component

ScoreNotIn applies the NotIn predicate on the "score" field.

func Sn

Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.

func SnContains

func SnContains(v string) predicate.Component

SnContains applies the Contains predicate on the "sn" field.

func SnContainsFold

func SnContainsFold(v string) predicate.Component

SnContainsFold applies the ContainsFold predicate on the "sn" field.

func SnEQ

func SnEQ(v string) predicate.Component

SnEQ applies the EQ predicate on the "sn" field.

func SnEqualFold

func SnEqualFold(v string) predicate.Component

SnEqualFold applies the EqualFold predicate on the "sn" field.

func SnGT

func SnGT(v string) predicate.Component

SnGT applies the GT predicate on the "sn" field.

func SnGTE

func SnGTE(v string) predicate.Component

SnGTE applies the GTE predicate on the "sn" field.

func SnHasPrefix

func SnHasPrefix(v string) predicate.Component

SnHasPrefix applies the HasPrefix predicate on the "sn" field.

func SnHasSuffix

func SnHasSuffix(v string) predicate.Component

SnHasSuffix applies the HasSuffix predicate on the "sn" field.

func SnIn

func SnIn(vs ...string) predicate.Component

SnIn applies the In predicate on the "sn" field.

func SnLT

func SnLT(v string) predicate.Component

SnLT applies the LT predicate on the "sn" field.

func SnLTE

func SnLTE(v string) predicate.Component

SnLTE applies the LTE predicate on the "sn" field.

func SnNEQ

func SnNEQ(v string) predicate.Component

SnNEQ applies the NEQ predicate on the "sn" field.

func SnNotIn

func SnNotIn(vs ...string) predicate.Component

SnNotIn applies the NotIn predicate on the "sn" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Component

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Component

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Component

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Component

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Component

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Component

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Component

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

func UpdateTimeNotIn

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

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 VerifyTime

func VerifyTime(v time.Time) predicate.Component

VerifyTime applies equality check predicate on the "verify_time" field. It's identical to VerifyTimeEQ.

func VerifyTimeEQ

func VerifyTimeEQ(v time.Time) predicate.Component

VerifyTimeEQ applies the EQ predicate on the "verify_time" field.

func VerifyTimeGT

func VerifyTimeGT(v time.Time) predicate.Component

VerifyTimeGT applies the GT predicate on the "verify_time" field.

func VerifyTimeGTE

func VerifyTimeGTE(v time.Time) predicate.Component

VerifyTimeGTE applies the GTE predicate on the "verify_time" field.

func VerifyTimeIn

func VerifyTimeIn(vs ...time.Time) predicate.Component

VerifyTimeIn applies the In predicate on the "verify_time" field.

func VerifyTimeIsNil

func VerifyTimeIsNil() predicate.Component

VerifyTimeIsNil applies the IsNil predicate on the "verify_time" field.

func VerifyTimeLT

func VerifyTimeLT(v time.Time) predicate.Component

VerifyTimeLT applies the LT predicate on the "verify_time" field.

func VerifyTimeLTE

func VerifyTimeLTE(v time.Time) predicate.Component

VerifyTimeLTE applies the LTE predicate on the "verify_time" field.

func VerifyTimeNEQ

func VerifyTimeNEQ(v time.Time) predicate.Component

VerifyTimeNEQ applies the NEQ predicate on the "verify_time" field.

func VerifyTimeNotIn

func VerifyTimeNotIn(vs ...time.Time) predicate.Component

VerifyTimeNotIn applies the NotIn predicate on the "verify_time" field.

func VerifyTimeNotNil

func VerifyTimeNotNil() predicate.Component

VerifyTimeNotNil applies the NotNil predicate on the "verify_time" field.

func Version

func Version(v string) predicate.Component

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Component

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Component

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Component

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Component

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Component

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Component

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Component

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Component

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Component

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Component

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Component

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Component

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Component

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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