card

package
v0.1.5-0...-40e571d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the card type in the database.
	Label = "card"
	// FieldID holds the string denoting the id field in the database.
	FieldID        = "id"     // FieldNumber holds the string denoting the number vertex property in the database.
	FieldNumber    = "number" // FieldName holds the string denoting the name vertex property in the database.
	FieldName      = "name"   // FieldCreatedAt holds the string denoting the created_at vertex property in the database.
	FieldCreatedAt = "created_at"

	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"

	// Table holds the table name of the card in the database.
	Table = "cards"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "cards"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_cards"
)

Variables

View Source
var (
	Hooks [2]ent.Hook
	// DefaultNumber holds the default value on creation for the number field.
	DefaultNumber string
	// NumberValidator is a validator for the "number" field. It is called by the builders before save.
	NumberValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/facebookincubator/ent/entc/integration/hooks/ent/runtime"

Columns holds all SQL columns for card fields.

View Source
var ForeignKeys = []string{
	"user_cards",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Card type.

Functions

func And

func And(predicates ...predicate.Card) predicate.Card

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Card

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Card

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Card

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Card

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Card

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Card

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Card

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

func CreatedAtNotIn

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

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

func HasOwner

func HasOwner() predicate.Card

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Card

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

func ID

func ID(id int) predicate.Card

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Card

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Card

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Card

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Card

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Card

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Card

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Card

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Card

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Card

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Card

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Card

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Card

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Card

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Card

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Card

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Card

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Card

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Card

NameIn applies the In predicate on the "name" field.

func NameIsNil

func NameIsNil() predicate.Card

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Card

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Card

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Card

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Card

NameNotIn applies the NotIn predicate on the "name" field.

func NameNotNil

func NameNotNil() predicate.Card

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Number

func Number(v string) predicate.Card

Number applies equality check predicate on the "number" field. It's identical to NumberEQ.

func NumberContains

func NumberContains(v string) predicate.Card

NumberContains applies the Contains predicate on the "number" field.

func NumberContainsFold

func NumberContainsFold(v string) predicate.Card

NumberContainsFold applies the ContainsFold predicate on the "number" field.

func NumberEQ

func NumberEQ(v string) predicate.Card

NumberEQ applies the EQ predicate on the "number" field.

func NumberEqualFold

func NumberEqualFold(v string) predicate.Card

NumberEqualFold applies the EqualFold predicate on the "number" field.

func NumberGT

func NumberGT(v string) predicate.Card

NumberGT applies the GT predicate on the "number" field.

func NumberGTE

func NumberGTE(v string) predicate.Card

NumberGTE applies the GTE predicate on the "number" field.

func NumberHasPrefix

func NumberHasPrefix(v string) predicate.Card

NumberHasPrefix applies the HasPrefix predicate on the "number" field.

func NumberHasSuffix

func NumberHasSuffix(v string) predicate.Card

NumberHasSuffix applies the HasSuffix predicate on the "number" field.

func NumberIn

func NumberIn(vs ...string) predicate.Card

NumberIn applies the In predicate on the "number" field.

func NumberLT

func NumberLT(v string) predicate.Card

NumberLT applies the LT predicate on the "number" field.

func NumberLTE

func NumberLTE(v string) predicate.Card

NumberLTE applies the LTE predicate on the "number" field.

func NumberNEQ

func NumberNEQ(v string) predicate.Card

NumberNEQ applies the NEQ predicate on the "number" field.

func NumberNotIn

func NumberNotIn(vs ...string) predicate.Card

NumberNotIn applies the NotIn predicate on the "number" field.

func Or

func Or(predicates ...predicate.Card) predicate.Card

Or groups list of predicates with the OR operator between them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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