fact

package
v0.0.0-...-b7d53eb Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 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"
	// 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

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
	// 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{
	"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 And

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

And groups predicates with the AND operator between them.

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 HasFactType

func HasFactType() predicate.Fact

HasFactType applies the HasEdge predicate on the "fact_type" edge.

func HasFactTypeWith

func HasFactTypeWith(preds ...predicate.FactType) predicate.Fact

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

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 IDEQ

func IDEQ(id string) predicate.Fact

IDEQ applies the EQ 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 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

This section is empty.

Jump to

Keyboard shortcuts

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