Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Fact) predicate.Fact
- func Collection(v string) predicate.Fact
- func CollectionContains(v string) predicate.Fact
- func CollectionContainsFold(v string) predicate.Fact
- func CollectionEQ(v string) predicate.Fact
- func CollectionEqualFold(v string) predicate.Fact
- func CollectionGT(v string) predicate.Fact
- func CollectionGTE(v string) predicate.Fact
- func CollectionHasPrefix(v string) predicate.Fact
- func CollectionHasSuffix(v string) predicate.Fact
- func CollectionIn(vs ...string) predicate.Fact
- func CollectionLT(v string) predicate.Fact
- func CollectionLTE(v string) predicate.Fact
- func CollectionNEQ(v string) predicate.Fact
- func CollectionNotIn(vs ...string) 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 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 IDContainsFold(id string) predicate.Fact
- func IDEQ(id string) predicate.Fact
- func IDEqualFold(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 Key(v string) predicate.Fact
- func KeyContains(v string) predicate.Fact
- func KeyContainsFold(v string) predicate.Fact
- func KeyEQ(v string) predicate.Fact
- func KeyEqualFold(v string) predicate.Fact
- func KeyGT(v string) predicate.Fact
- func KeyGTE(v string) predicate.Fact
- func KeyHasPrefix(v string) predicate.Fact
- func KeyHasSuffix(v string) predicate.Fact
- func KeyIn(vs ...string) predicate.Fact
- func KeyLT(v string) predicate.Fact
- func KeyLTE(v string) predicate.Fact
- func KeyNEQ(v string) predicate.Fact
- func KeyNotIn(vs ...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
- type OrderOption
- func ByCollection(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDomain(opts ...sql.OrderTermOption) OrderOption
- func ByEncryptedValue(opts ...sql.OrderTermOption) OrderOption
- func ByHashedValue(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByScopeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // FieldCollection holds the string denoting the collection field in the database. FieldCollection = "collection" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldBlindIndexes holds the string denoting the blind_indexes field in the database. FieldBlindIndexes = "blind_indexes" // EdgeScope holds the string denoting the scope edge name in mutations. EdgeScope = "scope" // Table holds the table name of the fact in the database. Table = "facts" // ScopeTable is the table that 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" )
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 // DefaultBlindIndexes holds the default value on creation for the "blind_indexes" field. DefaultBlindIndexes []string // 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, FieldCollection, FieldKey, FieldBlindIndexes, }
Columns holds all SQL columns for fact fields.
var ForeignKeys = []string{
"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 Collection ¶
Collection applies equality check predicate on the "collection" field. It's identical to CollectionEQ.
func CollectionContains ¶
CollectionContains applies the Contains predicate on the "collection" field.
func CollectionContainsFold ¶
CollectionContainsFold applies the ContainsFold predicate on the "collection" field.
func CollectionEQ ¶
CollectionEQ applies the EQ predicate on the "collection" field.
func CollectionEqualFold ¶
CollectionEqualFold applies the EqualFold predicate on the "collection" field.
func CollectionGT ¶
CollectionGT applies the GT predicate on the "collection" field.
func CollectionGTE ¶
CollectionGTE applies the GTE predicate on the "collection" field.
func CollectionHasPrefix ¶
CollectionHasPrefix applies the HasPrefix predicate on the "collection" field.
func CollectionHasSuffix ¶
CollectionHasSuffix applies the HasSuffix predicate on the "collection" field.
func CollectionIn ¶
CollectionIn applies the In predicate on the "collection" field.
func CollectionLT ¶
CollectionLT applies the LT predicate on the "collection" field.
func CollectionLTE ¶
CollectionLTE applies the LTE predicate on the "collection" field.
func CollectionNEQ ¶
CollectionNEQ applies the NEQ predicate on the "collection" field.
func CollectionNotIn ¶
CollectionNotIn applies the NotIn predicate on the "collection" 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 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 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 IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Fact queries.
func ByCollection ¶
func ByCollection(opts ...sql.OrderTermOption) OrderOption
ByCollection orders the results by the collection field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDomain ¶
func ByDomain(opts ...sql.OrderTermOption) OrderOption
ByDomain orders the results by the domain field.
func ByEncryptedValue ¶
func ByEncryptedValue(opts ...sql.OrderTermOption) OrderOption
ByEncryptedValue orders the results by the encrypted_value field.
func ByHashedValue ¶
func ByHashedValue(opts ...sql.OrderTermOption) OrderOption
ByHashedValue orders the results by the hashed_value field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByScopeField ¶
func ByScopeField(field string, opts ...sql.OrderTermOption) OrderOption
ByScopeField orders the results by scope field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.