Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.FactType) predicate.FactType
- func BuiltIn(v bool) predicate.FactType
- func BuiltInEQ(v bool) predicate.FactType
- func BuiltInNEQ(v bool) predicate.FactType
- func CreatedAt(v time.Time) predicate.FactType
- func CreatedAtEQ(v time.Time) predicate.FactType
- func CreatedAtGT(v time.Time) predicate.FactType
- func CreatedAtGTE(v time.Time) predicate.FactType
- func CreatedAtIn(vs ...time.Time) predicate.FactType
- func CreatedAtLT(v time.Time) predicate.FactType
- func CreatedAtLTE(v time.Time) predicate.FactType
- func CreatedAtNEQ(v time.Time) predicate.FactType
- func CreatedAtNotIn(vs ...time.Time) predicate.FactType
- func DeletedAt(v time.Time) predicate.FactType
- func DeletedAtEQ(v time.Time) predicate.FactType
- func DeletedAtGT(v time.Time) predicate.FactType
- func DeletedAtGTE(v time.Time) predicate.FactType
- func DeletedAtIn(vs ...time.Time) predicate.FactType
- func DeletedAtIsNil() predicate.FactType
- func DeletedAtLT(v time.Time) predicate.FactType
- func DeletedAtLTE(v time.Time) predicate.FactType
- func DeletedAtNEQ(v time.Time) predicate.FactType
- func DeletedAtNotIn(vs ...time.Time) predicate.FactType
- func DeletedAtNotNil() predicate.FactType
- func HasFacts() predicate.FactType
- func HasFactsWith(preds ...predicate.Fact) predicate.FactType
- func ID(id string) predicate.FactType
- func IDEQ(id string) predicate.FactType
- func IDGT(id string) predicate.FactType
- func IDGTE(id string) predicate.FactType
- func IDIn(ids ...string) predicate.FactType
- func IDLT(id string) predicate.FactType
- func IDLTE(id string) predicate.FactType
- func IDNEQ(id string) predicate.FactType
- func IDNotIn(ids ...string) predicate.FactType
- func Not(p predicate.FactType) predicate.FactType
- func Or(predicates ...predicate.FactType) predicate.FactType
- func Slug(v string) predicate.FactType
- func SlugContains(v string) predicate.FactType
- func SlugContainsFold(v string) predicate.FactType
- func SlugEQ(v string) predicate.FactType
- func SlugEqualFold(v string) predicate.FactType
- func SlugGT(v string) predicate.FactType
- func SlugGTE(v string) predicate.FactType
- func SlugHasPrefix(v string) predicate.FactType
- func SlugHasSuffix(v string) predicate.FactType
- func SlugIn(vs ...string) predicate.FactType
- func SlugLT(v string) predicate.FactType
- func SlugLTE(v string) predicate.FactType
- func SlugNEQ(v string) predicate.FactType
- func SlugNotIn(vs ...string) predicate.FactType
- func UpdatedAt(v time.Time) predicate.FactType
- func UpdatedAtEQ(v time.Time) predicate.FactType
- func UpdatedAtGT(v time.Time) predicate.FactType
- func UpdatedAtGTE(v time.Time) predicate.FactType
- func UpdatedAtIn(vs ...time.Time) predicate.FactType
- func UpdatedAtLT(v time.Time) predicate.FactType
- func UpdatedAtLTE(v time.Time) predicate.FactType
- func UpdatedAtNEQ(v time.Time) predicate.FactType
- func UpdatedAtNotIn(vs ...time.Time) predicate.FactType
- func ValidColumn(column string) bool
- func Validation(v string) predicate.FactType
- func ValidationContains(v string) predicate.FactType
- func ValidationContainsFold(v string) predicate.FactType
- func ValidationEQ(v string) predicate.FactType
- func ValidationEqualFold(v string) predicate.FactType
- func ValidationGT(v string) predicate.FactType
- func ValidationGTE(v string) predicate.FactType
- func ValidationHasPrefix(v string) predicate.FactType
- func ValidationHasSuffix(v string) predicate.FactType
- func ValidationIn(vs ...string) predicate.FactType
- func ValidationIsNil() predicate.FactType
- func ValidationLT(v string) predicate.FactType
- func ValidationLTE(v string) predicate.FactType
- func ValidationNEQ(v string) predicate.FactType
- func ValidationNotIn(vs ...string) predicate.FactType
- func ValidationNotNil() predicate.FactType
Constants ¶
const ( // Label holds the string label denoting the facttype type in the database. Label = "fact_type" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldBuiltIn holds the string denoting the built_in field in the database. FieldBuiltIn = "built_in" // FieldValidation holds the string denoting the validation field in the database. FieldValidation = "validation" // EdgeFacts holds the string denoting the facts edge name in mutations. EdgeFacts = "facts" // Table holds the table name of the facttype in the database. Table = "fact_types" // FactsTable is the table the holds the facts relation/edge. FactsTable = "facts" // FactsInverseTable is the table name for the Fact entity. // It exists in this package in order to avoid circular dependency with the "fact" package. FactsInverseTable = "facts" // FactsColumn is the table column denoting the facts relation/edge. FactsColumn = "fact_type_facts" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultBuiltIn holds the default value on creation for the "built_in" field. DefaultBuiltIn bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() string // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldSlug, FieldBuiltIn, FieldValidation, }
Columns holds all SQL columns for facttype fields.
Functions ¶
func BuiltIn ¶
BuiltIn applies equality check predicate on the "built_in" field. It's identical to BuiltInEQ.
func BuiltInNEQ ¶
BuiltInNEQ applies the NEQ predicate on the "built_in" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasFactsWith ¶
HasFactsWith applies the HasEdge predicate on the "facts" edge with a given conditions (other predicates).
func SlugContains ¶
SlugContains applies the Contains predicate on the "slug" field.
func SlugContainsFold ¶
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugEqualFold ¶
SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugHasPrefix ¶
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasSuffix ¶
SlugHasSuffix applies the HasSuffix predicate on the "slug" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Validation ¶
Validation applies equality check predicate on the "validation" field. It's identical to ValidationEQ.
func ValidationContains ¶
ValidationContains applies the Contains predicate on the "validation" field.
func ValidationContainsFold ¶
ValidationContainsFold applies the ContainsFold predicate on the "validation" field.
func ValidationEQ ¶
ValidationEQ applies the EQ predicate on the "validation" field.
func ValidationEqualFold ¶
ValidationEqualFold applies the EqualFold predicate on the "validation" field.
func ValidationGT ¶
ValidationGT applies the GT predicate on the "validation" field.
func ValidationGTE ¶
ValidationGTE applies the GTE predicate on the "validation" field.
func ValidationHasPrefix ¶
ValidationHasPrefix applies the HasPrefix predicate on the "validation" field.
func ValidationHasSuffix ¶
ValidationHasSuffix applies the HasSuffix predicate on the "validation" field.
func ValidationIn ¶
ValidationIn applies the In predicate on the "validation" field.
func ValidationIsNil ¶
ValidationIsNil applies the IsNil predicate on the "validation" field.
func ValidationLT ¶
ValidationLT applies the LT predicate on the "validation" field.
func ValidationLTE ¶
ValidationLTE applies the LTE predicate on the "validation" field.
func ValidationNEQ ¶
ValidationNEQ applies the NEQ predicate on the "validation" field.
func ValidationNotIn ¶
ValidationNotIn applies the NotIn predicate on the "validation" field.
func ValidationNotNil ¶
ValidationNotNil applies the NotNil predicate on the "validation" field.
Types ¶
This section is empty.