Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Component) predicate.Component
- func Center(v bool) predicate.Component
- func CenterEQ(v bool) predicate.Component
- func CenterNEQ(v bool) predicate.Component
- func CreateTime(v time.Time) predicate.Component
- func CreateTimeEQ(v time.Time) predicate.Component
- func CreateTimeGT(v time.Time) predicate.Component
- func CreateTimeGTE(v time.Time) predicate.Component
- func CreateTimeIn(vs ...time.Time) predicate.Component
- func CreateTimeLT(v time.Time) predicate.Component
- func CreateTimeLTE(v time.Time) predicate.Component
- func CreateTimeNEQ(v time.Time) predicate.Component
- func CreateTimeNotIn(vs ...time.Time) predicate.Component
- func Desc(v string) predicate.Component
- func DescContains(v string) predicate.Component
- func DescContainsFold(v string) predicate.Component
- func DescEQ(v string) predicate.Component
- func DescEqualFold(v string) predicate.Component
- func DescGT(v string) predicate.Component
- func DescGTE(v string) predicate.Component
- func DescHasPrefix(v string) predicate.Component
- func DescHasSuffix(v string) predicate.Component
- func DescIn(vs ...string) predicate.Component
- func DescLT(v string) predicate.Component
- func DescLTE(v string) predicate.Component
- func DescNEQ(v string) predicate.Component
- func DescNotIn(vs ...string) predicate.Component
- func HasComponentOwner() predicate.Component
- func HasComponentOwnerWith(preds ...predicate.User) predicate.Component
- func HasComponentTags() predicate.Component
- func HasComponentTagsWith(preds ...predicate.ComponentTag) predicate.Component
- func ID(id int) predicate.Component
- func IDEQ(id int) predicate.Component
- func IDGT(id int) predicate.Component
- func IDGTE(id int) predicate.Component
- func IDIn(ids ...int) predicate.Component
- func IDLT(id int) predicate.Component
- func IDLTE(id int) predicate.Component
- func IDNEQ(id int) predicate.Component
- func IDNotIn(ids ...int) predicate.Component
- func Name(v string) predicate.Component
- func NameContains(v string) predicate.Component
- func NameContainsFold(v string) predicate.Component
- func NameEQ(v string) predicate.Component
- func NameEqualFold(v string) predicate.Component
- func NameGT(v string) predicate.Component
- func NameGTE(v string) predicate.Component
- func NameHasPrefix(v string) predicate.Component
- func NameHasSuffix(v string) predicate.Component
- func NameIn(vs ...string) predicate.Component
- func NameLT(v string) predicate.Component
- func NameLTE(v string) predicate.Component
- func NameNEQ(v string) predicate.Component
- func NameNotIn(vs ...string) predicate.Component
- func Not(p predicate.Component) predicate.Component
- func Or(predicates ...predicate.Component) predicate.Component
- func OwnerID(v int) predicate.Component
- func OwnerIDEQ(v int) predicate.Component
- func OwnerIDIn(vs ...int) predicate.Component
- func OwnerIDNEQ(v int) predicate.Component
- func OwnerIDNotIn(vs ...int) predicate.Component
- func Raw(v string) predicate.Component
- func RawContains(v string) predicate.Component
- func RawContainsFold(v string) predicate.Component
- func RawEQ(v string) predicate.Component
- func RawEqualFold(v string) predicate.Component
- func RawGT(v string) predicate.Component
- func RawGTE(v string) predicate.Component
- func RawHasPrefix(v string) predicate.Component
- func RawHasSuffix(v string) predicate.Component
- func RawIn(vs ...string) predicate.Component
- func RawLT(v string) predicate.Component
- func RawLTE(v string) predicate.Component
- func RawLength(v uint64) predicate.Component
- func RawLengthEQ(v uint64) predicate.Component
- func RawLengthGT(v uint64) predicate.Component
- func RawLengthGTE(v uint64) predicate.Component
- func RawLengthIn(vs ...uint64) predicate.Component
- func RawLengthLT(v uint64) predicate.Component
- func RawLengthLTE(v uint64) predicate.Component
- func RawLengthNEQ(v uint64) predicate.Component
- func RawLengthNotIn(vs ...uint64) predicate.Component
- func RawNEQ(v string) predicate.Component
- func RawNotIn(vs ...string) predicate.Component
- func Score(v int) predicate.Component
- func ScoreEQ(v int) predicate.Component
- func ScoreGT(v int) predicate.Component
- func ScoreGTE(v int) predicate.Component
- func ScoreIn(vs ...int) predicate.Component
- func ScoreLT(v int) predicate.Component
- func ScoreLTE(v int) predicate.Component
- func ScoreNEQ(v int) predicate.Component
- func ScoreNotIn(vs ...int) predicate.Component
- func Sn(v string) predicate.Component
- func SnContains(v string) predicate.Component
- func SnContainsFold(v string) predicate.Component
- func SnEQ(v string) predicate.Component
- func SnEqualFold(v string) predicate.Component
- func SnGT(v string) predicate.Component
- func SnGTE(v string) predicate.Component
- func SnHasPrefix(v string) predicate.Component
- func SnHasSuffix(v string) predicate.Component
- func SnIn(vs ...string) predicate.Component
- func SnLT(v string) predicate.Component
- func SnLTE(v string) predicate.Component
- func SnNEQ(v string) predicate.Component
- func SnNotIn(vs ...string) predicate.Component
- func UpdateTime(v time.Time) predicate.Component
- func UpdateTimeEQ(v time.Time) predicate.Component
- func UpdateTimeGT(v time.Time) predicate.Component
- func UpdateTimeGTE(v time.Time) predicate.Component
- func UpdateTimeIn(vs ...time.Time) predicate.Component
- func UpdateTimeLT(v time.Time) predicate.Component
- func UpdateTimeLTE(v time.Time) predicate.Component
- func UpdateTimeNEQ(v time.Time) predicate.Component
- func UpdateTimeNotIn(vs ...time.Time) predicate.Component
- func ValidColumn(column string) bool
- func VerifyTime(v time.Time) predicate.Component
- func VerifyTimeEQ(v time.Time) predicate.Component
- func VerifyTimeGT(v time.Time) predicate.Component
- func VerifyTimeGTE(v time.Time) predicate.Component
- func VerifyTimeIn(vs ...time.Time) predicate.Component
- func VerifyTimeIsNil() predicate.Component
- func VerifyTimeLT(v time.Time) predicate.Component
- func VerifyTimeLTE(v time.Time) predicate.Component
- func VerifyTimeNEQ(v time.Time) predicate.Component
- func VerifyTimeNotIn(vs ...time.Time) predicate.Component
- func VerifyTimeNotNil() predicate.Component
- func Version(v string) predicate.Component
- func VersionContains(v string) predicate.Component
- func VersionContainsFold(v string) predicate.Component
- func VersionEQ(v string) predicate.Component
- func VersionEqualFold(v string) predicate.Component
- func VersionGT(v string) predicate.Component
- func VersionGTE(v string) predicate.Component
- func VersionHasPrefix(v string) predicate.Component
- func VersionHasSuffix(v string) predicate.Component
- func VersionIn(vs ...string) predicate.Component
- func VersionLT(v string) predicate.Component
- func VersionLTE(v string) predicate.Component
- func VersionNEQ(v string) predicate.Component
- func VersionNotIn(vs ...string) predicate.Component
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldOwnerID, FieldSn, FieldName, FieldDesc, FieldCenter, FieldVersion, FieldRaw, FieldRawLength, FieldScore, FieldVerifyTime, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for component fields.
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 Center ¶
Center applies equality check predicate on the "center" field. It's identical to CenterEQ.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DescContains ¶
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEqualFold ¶
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescHasPrefix ¶
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func HasComponentOwner ¶
HasComponentOwner applies the HasEdge predicate on the "component_owner" edge.
func HasComponentOwnerWith ¶
HasComponentOwnerWith applies the HasEdge predicate on the "component_owner" edge with a given conditions (other predicates).
func HasComponentTags ¶
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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func RawContains ¶
RawContains applies the Contains predicate on the "raw" field.
func RawContainsFold ¶
RawContainsFold applies the ContainsFold predicate on the "raw" field.
func RawEqualFold ¶
RawEqualFold applies the EqualFold predicate on the "raw" field.
func RawHasPrefix ¶
RawHasPrefix applies the HasPrefix predicate on the "raw" field.
func RawHasSuffix ¶
RawHasSuffix applies the HasSuffix predicate on the "raw" field.
func RawLength ¶
RawLength applies equality check predicate on the "raw_length" field. It's identical to RawLengthEQ.
func RawLengthEQ ¶
RawLengthEQ applies the EQ predicate on the "raw_length" field.
func RawLengthGT ¶
RawLengthGT applies the GT predicate on the "raw_length" field.
func RawLengthGTE ¶
RawLengthGTE applies the GTE predicate on the "raw_length" field.
func RawLengthIn ¶
RawLengthIn applies the In predicate on the "raw_length" field.
func RawLengthLT ¶
RawLengthLT applies the LT predicate on the "raw_length" field.
func RawLengthLTE ¶
RawLengthLTE applies the LTE predicate on the "raw_length" field.
func RawLengthNEQ ¶
RawLengthNEQ applies the NEQ predicate on the "raw_length" field.
func RawLengthNotIn ¶
RawLengthNotIn applies the NotIn predicate on the "raw_length" field.
func Score ¶
Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.
func ScoreNotIn ¶
ScoreNotIn applies the NotIn predicate on the "score" field.
func SnContains ¶
SnContains applies the Contains predicate on the "sn" field.
func SnContainsFold ¶
SnContainsFold applies the ContainsFold predicate on the "sn" field.
func SnEqualFold ¶
SnEqualFold applies the EqualFold predicate on the "sn" field.
func SnHasPrefix ¶
SnHasPrefix applies the HasPrefix predicate on the "sn" field.
func SnHasSuffix ¶
SnHasSuffix applies the HasSuffix predicate on the "sn" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VerifyTime ¶
VerifyTime applies equality check predicate on the "verify_time" field. It's identical to VerifyTimeEQ.
func VerifyTimeEQ ¶
VerifyTimeEQ applies the EQ predicate on the "verify_time" field.
func VerifyTimeGT ¶
VerifyTimeGT applies the GT predicate on the "verify_time" field.
func VerifyTimeGTE ¶
VerifyTimeGTE applies the GTE predicate on the "verify_time" field.
func VerifyTimeIn ¶
VerifyTimeIn applies the In predicate on the "verify_time" field.
func VerifyTimeIsNil ¶
VerifyTimeIsNil applies the IsNil predicate on the "verify_time" field.
func VerifyTimeLT ¶
VerifyTimeLT applies the LT predicate on the "verify_time" field.
func VerifyTimeLTE ¶
VerifyTimeLTE applies the LTE predicate on the "verify_time" field.
func VerifyTimeNEQ ¶
VerifyTimeNEQ applies the NEQ predicate on the "verify_time" field.
func VerifyTimeNotIn ¶
VerifyTimeNotIn applies the NotIn predicate on the "verify_time" field.
func VerifyTimeNotNil ¶
VerifyTimeNotNil applies the NotNil predicate on the "verify_time" field.
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.