facttype

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

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
	// 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
)

Columns holds all SQL columns for facttype fields.

Functions

func And

func And(predicates ...predicate.FactType) predicate.FactType

And groups predicates with the AND operator between them.

func BuiltIn

func BuiltIn(v bool) predicate.FactType

BuiltIn applies equality check predicate on the "built_in" field. It's identical to BuiltInEQ.

func BuiltInEQ

func BuiltInEQ(v bool) predicate.FactType

BuiltInEQ applies the EQ predicate on the "built_in" field.

func BuiltInNEQ

func BuiltInNEQ(v bool) predicate.FactType

BuiltInNEQ applies the NEQ predicate on the "built_in" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.FactType

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.FactType

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.FactType

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.FactType

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.FactType

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.FactType

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.FactType

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.FactType

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.FactType

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.FactType

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.FactType

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.FactType

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.FactType

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.FactType

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.FactType

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.FactType

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

func HasFacts

func HasFacts() predicate.FactType

HasFacts applies the HasEdge predicate on the "facts" edge.

func HasFactsWith

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

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

func ID

func ID(id string) predicate.FactType

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.FactType

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.FactType

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.FactType

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.FactType

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.FactType

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.FactType

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.FactType) predicate.FactType

Or groups predicates with the OR operator between them.

func Slug

func Slug(v string) predicate.FactType

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.FactType

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.FactType

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.FactType

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.FactType

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.FactType

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.FactType

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.FactType

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.FactType

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.FactType

SlugIn applies the In predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.FactType

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.FactType

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.FactType

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.FactType

SlugNotIn applies the NotIn predicate on the "slug" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.FactType

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.FactType

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.FactType

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.FactType

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.FactType

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.FactType

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.FactType

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

func UpdatedAtNotIn

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

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).

func Validation

func Validation(v string) predicate.FactType

Validation applies equality check predicate on the "validation" field. It's identical to ValidationEQ.

func ValidationContains

func ValidationContains(v string) predicate.FactType

ValidationContains applies the Contains predicate on the "validation" field.

func ValidationContainsFold

func ValidationContainsFold(v string) predicate.FactType

ValidationContainsFold applies the ContainsFold predicate on the "validation" field.

func ValidationEQ

func ValidationEQ(v string) predicate.FactType

ValidationEQ applies the EQ predicate on the "validation" field.

func ValidationEqualFold

func ValidationEqualFold(v string) predicate.FactType

ValidationEqualFold applies the EqualFold predicate on the "validation" field.

func ValidationGT

func ValidationGT(v string) predicate.FactType

ValidationGT applies the GT predicate on the "validation" field.

func ValidationGTE

func ValidationGTE(v string) predicate.FactType

ValidationGTE applies the GTE predicate on the "validation" field.

func ValidationHasPrefix

func ValidationHasPrefix(v string) predicate.FactType

ValidationHasPrefix applies the HasPrefix predicate on the "validation" field.

func ValidationHasSuffix

func ValidationHasSuffix(v string) predicate.FactType

ValidationHasSuffix applies the HasSuffix predicate on the "validation" field.

func ValidationIn

func ValidationIn(vs ...string) predicate.FactType

ValidationIn applies the In predicate on the "validation" field.

func ValidationIsNil

func ValidationIsNil() predicate.FactType

ValidationIsNil applies the IsNil predicate on the "validation" field.

func ValidationLT

func ValidationLT(v string) predicate.FactType

ValidationLT applies the LT predicate on the "validation" field.

func ValidationLTE

func ValidationLTE(v string) predicate.FactType

ValidationLTE applies the LTE predicate on the "validation" field.

func ValidationNEQ

func ValidationNEQ(v string) predicate.FactType

ValidationNEQ applies the NEQ predicate on the "validation" field.

func ValidationNotIn

func ValidationNotIn(vs ...string) predicate.FactType

ValidationNotIn applies the NotIn predicate on the "validation" field.

func ValidationNotNil

func ValidationNotNil() predicate.FactType

ValidationNotNil applies the NotNil predicate on the "validation" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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