fact

package
v0.0.0-...-6aa0337 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for fact fields.

View Source
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 And

func And(predicates ...predicate.Fact) predicate.Fact

And groups predicates with the AND operator between them.

func Collection

func Collection(v string) predicate.Fact

Collection applies equality check predicate on the "collection" field. It's identical to CollectionEQ.

func CollectionContains

func CollectionContains(v string) predicate.Fact

CollectionContains applies the Contains predicate on the "collection" field.

func CollectionContainsFold

func CollectionContainsFold(v string) predicate.Fact

CollectionContainsFold applies the ContainsFold predicate on the "collection" field.

func CollectionEQ

func CollectionEQ(v string) predicate.Fact

CollectionEQ applies the EQ predicate on the "collection" field.

func CollectionEqualFold

func CollectionEqualFold(v string) predicate.Fact

CollectionEqualFold applies the EqualFold predicate on the "collection" field.

func CollectionGT

func CollectionGT(v string) predicate.Fact

CollectionGT applies the GT predicate on the "collection" field.

func CollectionGTE

func CollectionGTE(v string) predicate.Fact

CollectionGTE applies the GTE predicate on the "collection" field.

func CollectionHasPrefix

func CollectionHasPrefix(v string) predicate.Fact

CollectionHasPrefix applies the HasPrefix predicate on the "collection" field.

func CollectionHasSuffix

func CollectionHasSuffix(v string) predicate.Fact

CollectionHasSuffix applies the HasSuffix predicate on the "collection" field.

func CollectionIn

func CollectionIn(vs ...string) predicate.Fact

CollectionIn applies the In predicate on the "collection" field.

func CollectionLT

func CollectionLT(v string) predicate.Fact

CollectionLT applies the LT predicate on the "collection" field.

func CollectionLTE

func CollectionLTE(v string) predicate.Fact

CollectionLTE applies the LTE predicate on the "collection" field.

func CollectionNEQ

func CollectionNEQ(v string) predicate.Fact

CollectionNEQ applies the NEQ predicate on the "collection" field.

func CollectionNotIn

func CollectionNotIn(vs ...string) predicate.Fact

CollectionNotIn applies the NotIn predicate on the "collection" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Fact

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Fact

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Fact

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Fact

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Fact

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Fact

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Fact

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Fact

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Fact

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Fact

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Fact

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Fact

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Fact

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Fact

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Fact

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Fact

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Fact

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Fact

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Fact

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Fact

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Domain

func Domain(v string) predicate.Fact

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.Fact

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.Fact

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.Fact

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.Fact

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.Fact

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.Fact

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Fact

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Fact

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.Fact

DomainIn applies the In predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.Fact

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.Fact

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.Fact

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.Fact

DomainNotIn applies the NotIn predicate on the "domain" field.

func EncryptedValue

func EncryptedValue(v string) predicate.Fact

EncryptedValue applies equality check predicate on the "encrypted_value" field. It's identical to EncryptedValueEQ.

func EncryptedValueContains

func EncryptedValueContains(v string) predicate.Fact

EncryptedValueContains applies the Contains predicate on the "encrypted_value" field.

func EncryptedValueContainsFold

func EncryptedValueContainsFold(v string) predicate.Fact

EncryptedValueContainsFold applies the ContainsFold predicate on the "encrypted_value" field.

func EncryptedValueEQ

func EncryptedValueEQ(v string) predicate.Fact

EncryptedValueEQ applies the EQ predicate on the "encrypted_value" field.

func EncryptedValueEqualFold

func EncryptedValueEqualFold(v string) predicate.Fact

EncryptedValueEqualFold applies the EqualFold predicate on the "encrypted_value" field.

func EncryptedValueGT

func EncryptedValueGT(v string) predicate.Fact

EncryptedValueGT applies the GT predicate on the "encrypted_value" field.

func EncryptedValueGTE

func EncryptedValueGTE(v string) predicate.Fact

EncryptedValueGTE applies the GTE predicate on the "encrypted_value" field.

func EncryptedValueHasPrefix

func EncryptedValueHasPrefix(v string) predicate.Fact

EncryptedValueHasPrefix applies the HasPrefix predicate on the "encrypted_value" field.

func EncryptedValueHasSuffix

func EncryptedValueHasSuffix(v string) predicate.Fact

EncryptedValueHasSuffix applies the HasSuffix predicate on the "encrypted_value" field.

func EncryptedValueIn

func EncryptedValueIn(vs ...string) predicate.Fact

EncryptedValueIn applies the In predicate on the "encrypted_value" field.

func EncryptedValueLT

func EncryptedValueLT(v string) predicate.Fact

EncryptedValueLT applies the LT predicate on the "encrypted_value" field.

func EncryptedValueLTE

func EncryptedValueLTE(v string) predicate.Fact

EncryptedValueLTE applies the LTE predicate on the "encrypted_value" field.

func EncryptedValueNEQ

func EncryptedValueNEQ(v string) predicate.Fact

EncryptedValueNEQ applies the NEQ predicate on the "encrypted_value" field.

func EncryptedValueNotIn

func EncryptedValueNotIn(vs ...string) predicate.Fact

EncryptedValueNotIn applies the NotIn predicate on the "encrypted_value" field.

func HasScope

func HasScope() predicate.Fact

HasScope applies the HasEdge predicate on the "scope" edge.

func HasScopeWith

func HasScopeWith(preds ...predicate.Scope) predicate.Fact

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

func HashedValue

func HashedValue(v string) predicate.Fact

HashedValue applies equality check predicate on the "hashed_value" field. It's identical to HashedValueEQ.

func HashedValueContains

func HashedValueContains(v string) predicate.Fact

HashedValueContains applies the Contains predicate on the "hashed_value" field.

func HashedValueContainsFold

func HashedValueContainsFold(v string) predicate.Fact

HashedValueContainsFold applies the ContainsFold predicate on the "hashed_value" field.

func HashedValueEQ

func HashedValueEQ(v string) predicate.Fact

HashedValueEQ applies the EQ predicate on the "hashed_value" field.

func HashedValueEqualFold

func HashedValueEqualFold(v string) predicate.Fact

HashedValueEqualFold applies the EqualFold predicate on the "hashed_value" field.

func HashedValueGT

func HashedValueGT(v string) predicate.Fact

HashedValueGT applies the GT predicate on the "hashed_value" field.

func HashedValueGTE

func HashedValueGTE(v string) predicate.Fact

HashedValueGTE applies the GTE predicate on the "hashed_value" field.

func HashedValueHasPrefix

func HashedValueHasPrefix(v string) predicate.Fact

HashedValueHasPrefix applies the HasPrefix predicate on the "hashed_value" field.

func HashedValueHasSuffix

func HashedValueHasSuffix(v string) predicate.Fact

HashedValueHasSuffix applies the HasSuffix predicate on the "hashed_value" field.

func HashedValueIn

func HashedValueIn(vs ...string) predicate.Fact

HashedValueIn applies the In predicate on the "hashed_value" field.

func HashedValueLT

func HashedValueLT(v string) predicate.Fact

HashedValueLT applies the LT predicate on the "hashed_value" field.

func HashedValueLTE

func HashedValueLTE(v string) predicate.Fact

HashedValueLTE applies the LTE predicate on the "hashed_value" field.

func HashedValueNEQ

func HashedValueNEQ(v string) predicate.Fact

HashedValueNEQ applies the NEQ predicate on the "hashed_value" field.

func HashedValueNotIn

func HashedValueNotIn(vs ...string) predicate.Fact

HashedValueNotIn applies the NotIn predicate on the "hashed_value" field.

func ID

func ID(id string) predicate.Fact

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Fact

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Fact

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Fact

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Fact

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Fact

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Fact

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Fact

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Fact

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Fact

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Fact

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Fact

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Fact

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Fact

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Fact

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Fact

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Fact

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Fact

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Fact

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Fact

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Fact

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Fact

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Fact

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Fact

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Fact

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Fact) predicate.Fact

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Fact

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Fact

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Fact

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Fact

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Fact

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Fact

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Fact

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Fact

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Fact

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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