Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Fact) predicate.Fact
- func CreatedAt(v time.Time) predicate.Fact
- func CreatedAtEQ(v time.Time) predicate.Fact
- func CreatedAtGT(v time.Time) predicate.Fact
- func CreatedAtGTE(v time.Time) predicate.Fact
- func CreatedAtIn(vs ...time.Time) predicate.Fact
- func CreatedAtLT(v time.Time) predicate.Fact
- func CreatedAtLTE(v time.Time) predicate.Fact
- func CreatedAtNEQ(v time.Time) predicate.Fact
- func CreatedAtNotIn(vs ...time.Time) predicate.Fact
- func DeletedAt(v time.Time) predicate.Fact
- func DeletedAtEQ(v time.Time) predicate.Fact
- func DeletedAtGT(v time.Time) predicate.Fact
- func DeletedAtGTE(v time.Time) predicate.Fact
- func DeletedAtIn(vs ...time.Time) predicate.Fact
- func DeletedAtIsNil() predicate.Fact
- func DeletedAtLT(v time.Time) predicate.Fact
- func DeletedAtLTE(v time.Time) predicate.Fact
- func DeletedAtNEQ(v time.Time) predicate.Fact
- func DeletedAtNotIn(vs ...time.Time) predicate.Fact
- func DeletedAtNotNil() predicate.Fact
- func Domain(v string) predicate.Fact
- func DomainContains(v string) predicate.Fact
- func DomainContainsFold(v string) predicate.Fact
- func DomainEQ(v string) predicate.Fact
- func DomainEqualFold(v string) predicate.Fact
- func DomainGT(v string) predicate.Fact
- func DomainGTE(v string) predicate.Fact
- func DomainHasPrefix(v string) predicate.Fact
- func DomainHasSuffix(v string) predicate.Fact
- func DomainIn(vs ...string) predicate.Fact
- func DomainLT(v string) predicate.Fact
- func DomainLTE(v string) predicate.Fact
- func DomainNEQ(v string) predicate.Fact
- func DomainNotIn(vs ...string) predicate.Fact
- func EncryptedValue(v string) predicate.Fact
- func EncryptedValueContains(v string) predicate.Fact
- func EncryptedValueContainsFold(v string) predicate.Fact
- func EncryptedValueEQ(v string) predicate.Fact
- func EncryptedValueEqualFold(v string) predicate.Fact
- func EncryptedValueGT(v string) predicate.Fact
- func EncryptedValueGTE(v string) predicate.Fact
- func EncryptedValueHasPrefix(v string) predicate.Fact
- func EncryptedValueHasSuffix(v string) predicate.Fact
- func EncryptedValueIn(vs ...string) predicate.Fact
- func EncryptedValueLT(v string) predicate.Fact
- func EncryptedValueLTE(v string) predicate.Fact
- func EncryptedValueNEQ(v string) predicate.Fact
- func EncryptedValueNotIn(vs ...string) predicate.Fact
- func HasFactType() predicate.Fact
- func HasFactTypeWith(preds ...predicate.FactType) predicate.Fact
- func HasScope() predicate.Fact
- func HasScopeWith(preds ...predicate.Scope) predicate.Fact
- func HashedValue(v string) predicate.Fact
- func HashedValueContains(v string) predicate.Fact
- func HashedValueContainsFold(v string) predicate.Fact
- func HashedValueEQ(v string) predicate.Fact
- func HashedValueEqualFold(v string) predicate.Fact
- func HashedValueGT(v string) predicate.Fact
- func HashedValueGTE(v string) predicate.Fact
- func HashedValueHasPrefix(v string) predicate.Fact
- func HashedValueHasSuffix(v string) predicate.Fact
- func HashedValueIn(vs ...string) predicate.Fact
- func HashedValueLT(v string) predicate.Fact
- func HashedValueLTE(v string) predicate.Fact
- func HashedValueNEQ(v string) predicate.Fact
- func HashedValueNotIn(vs ...string) predicate.Fact
- func ID(id string) predicate.Fact
- func IDEQ(id string) predicate.Fact
- func IDGT(id string) predicate.Fact
- func IDGTE(id string) predicate.Fact
- func IDIn(ids ...string) predicate.Fact
- func IDLT(id string) predicate.Fact
- func IDLTE(id string) predicate.Fact
- func IDNEQ(id string) predicate.Fact
- func IDNotIn(ids ...string) predicate.Fact
- func Not(p predicate.Fact) predicate.Fact
- func Or(predicates ...predicate.Fact) predicate.Fact
- func UpdatedAt(v time.Time) predicate.Fact
- func UpdatedAtEQ(v time.Time) predicate.Fact
- func UpdatedAtGT(v time.Time) predicate.Fact
- func UpdatedAtGTE(v time.Time) predicate.Fact
- func UpdatedAtIn(vs ...time.Time) predicate.Fact
- func UpdatedAtLT(v time.Time) predicate.Fact
- func UpdatedAtLTE(v time.Time) predicate.Fact
- func UpdatedAtNEQ(v time.Time) predicate.Fact
- func UpdatedAtNotIn(vs ...time.Time) predicate.Fact
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the fact type in the database. Label = "fact" // 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" // FieldHashedValue holds the string denoting the hashed_value field in the database. FieldHashedValue = "hashed_value" // FieldEncryptedValue holds the string denoting the encrypted_value field in the database. FieldEncryptedValue = "encrypted_value" // FieldDomain holds the string denoting the domain field in the database. FieldDomain = "domain" // EdgeScope holds the string denoting the scope edge name in mutations. EdgeScope = "scope" // EdgeFactType holds the string denoting the fact_type edge name in mutations. EdgeFactType = "fact_type" // Table holds the table name of the fact in the database. Table = "facts" // ScopeTable is the table the holds the scope relation/edge. ScopeTable = "facts" // ScopeInverseTable is the table name for the Scope entity. // It exists in this package in order to avoid circular dependency with the "scope" package. ScopeInverseTable = "scopes" // ScopeColumn is the table column denoting the scope relation/edge. ScopeColumn = "scope_facts" // FactTypeTable is the table the holds the fact_type relation/edge. FactTypeTable = "facts" // FactTypeInverseTable is the table name for the FactType entity. // It exists in this package in order to avoid circular dependency with the "facttype" package. FactTypeInverseTable = "fact_types" // FactTypeColumn is the table column denoting the fact_type relation/edge. FactTypeColumn = "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 // 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, FieldHashedValue, FieldEncryptedValue, FieldDomain, }
Columns holds all SQL columns for fact fields.
var ForeignKeys = []string{
"fact_type_facts",
"scope_facts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "facts" table and are not defined as standalone fields in the schema.
Functions ¶
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 Domain ¶
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEqualFold ¶
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainHasPrefix ¶
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainNotIn ¶
DomainNotIn applies the NotIn predicate on the "domain" field.
func EncryptedValue ¶
EncryptedValue applies equality check predicate on the "encrypted_value" field. It's identical to EncryptedValueEQ.
func EncryptedValueContains ¶
EncryptedValueContains applies the Contains predicate on the "encrypted_value" field.
func EncryptedValueContainsFold ¶
EncryptedValueContainsFold applies the ContainsFold predicate on the "encrypted_value" field.
func EncryptedValueEQ ¶
EncryptedValueEQ applies the EQ predicate on the "encrypted_value" field.
func EncryptedValueEqualFold ¶
EncryptedValueEqualFold applies the EqualFold predicate on the "encrypted_value" field.
func EncryptedValueGT ¶
EncryptedValueGT applies the GT predicate on the "encrypted_value" field.
func EncryptedValueGTE ¶
EncryptedValueGTE applies the GTE predicate on the "encrypted_value" field.
func EncryptedValueHasPrefix ¶
EncryptedValueHasPrefix applies the HasPrefix predicate on the "encrypted_value" field.
func EncryptedValueHasSuffix ¶
EncryptedValueHasSuffix applies the HasSuffix predicate on the "encrypted_value" field.
func EncryptedValueIn ¶
EncryptedValueIn applies the In predicate on the "encrypted_value" field.
func EncryptedValueLT ¶
EncryptedValueLT applies the LT predicate on the "encrypted_value" field.
func EncryptedValueLTE ¶
EncryptedValueLTE applies the LTE predicate on the "encrypted_value" field.
func EncryptedValueNEQ ¶
EncryptedValueNEQ applies the NEQ predicate on the "encrypted_value" field.
func EncryptedValueNotIn ¶
EncryptedValueNotIn applies the NotIn predicate on the "encrypted_value" field.
func HasFactType ¶
HasFactType applies the HasEdge predicate on the "fact_type" edge.
func HasFactTypeWith ¶
HasFactTypeWith applies the HasEdge predicate on the "fact_type" edge with a given conditions (other predicates).
func HasScopeWith ¶
HasScopeWith applies the HasEdge predicate on the "scope" edge with a given conditions (other predicates).
func HashedValue ¶
HashedValue applies equality check predicate on the "hashed_value" field. It's identical to HashedValueEQ.
func HashedValueContains ¶
HashedValueContains applies the Contains predicate on the "hashed_value" field.
func HashedValueContainsFold ¶
HashedValueContainsFold applies the ContainsFold predicate on the "hashed_value" field.
func HashedValueEQ ¶
HashedValueEQ applies the EQ predicate on the "hashed_value" field.
func HashedValueEqualFold ¶
HashedValueEqualFold applies the EqualFold predicate on the "hashed_value" field.
func HashedValueGT ¶
HashedValueGT applies the GT predicate on the "hashed_value" field.
func HashedValueGTE ¶
HashedValueGTE applies the GTE predicate on the "hashed_value" field.
func HashedValueHasPrefix ¶
HashedValueHasPrefix applies the HasPrefix predicate on the "hashed_value" field.
func HashedValueHasSuffix ¶
HashedValueHasSuffix applies the HasSuffix predicate on the "hashed_value" field.
func HashedValueIn ¶
HashedValueIn applies the In predicate on the "hashed_value" field.
func HashedValueLT ¶
HashedValueLT applies the LT predicate on the "hashed_value" field.
func HashedValueLTE ¶
HashedValueLTE applies the LTE predicate on the "hashed_value" field.
func HashedValueNEQ ¶
HashedValueNEQ applies the NEQ predicate on the "hashed_value" field.
func HashedValueNotIn ¶
HashedValueNotIn applies the NotIn predicate on the "hashed_value" 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).
Types ¶
This section is empty.