Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func CreatedAt(v time.Time) predicate.Card
- func CreatedAtEQ(v time.Time) predicate.Card
- func CreatedAtGT(v time.Time) predicate.Card
- func CreatedAtGTE(v time.Time) predicate.Card
- func CreatedAtIn(vs ...time.Time) predicate.Card
- func CreatedAtLT(v time.Time) predicate.Card
- func CreatedAtLTE(v time.Time) predicate.Card
- func CreatedAtNEQ(v time.Time) predicate.Card
- func CreatedAtNotIn(vs ...time.Time) predicate.Card
- func HasOwner() predicate.Card
- func HasOwnerWith(preds ...predicate.User) predicate.Card
- func ID(id int) predicate.Card
- func IDEQ(id int) predicate.Card
- func IDGT(id int) predicate.Card
- func IDGTE(id int) predicate.Card
- func IDIn(ids ...int) predicate.Card
- func IDLT(id int) predicate.Card
- func IDLTE(id int) predicate.Card
- func IDNEQ(id int) predicate.Card
- func IDNotIn(ids ...int) predicate.Card
- func InHook(v string) predicate.Card
- func InHookContains(v string) predicate.Card
- func InHookContainsFold(v string) predicate.Card
- func InHookEQ(v string) predicate.Card
- func InHookEqualFold(v string) predicate.Card
- func InHookGT(v string) predicate.Card
- func InHookGTE(v string) predicate.Card
- func InHookHasPrefix(v string) predicate.Card
- func InHookHasSuffix(v string) predicate.Card
- func InHookIn(vs ...string) predicate.Card
- func InHookLT(v string) predicate.Card
- func InHookLTE(v string) predicate.Card
- func InHookNEQ(v string) predicate.Card
- func InHookNotIn(vs ...string) predicate.Card
- func Name(v string) predicate.Card
- func NameContains(v string) predicate.Card
- func NameContainsFold(v string) predicate.Card
- func NameEQ(v string) predicate.Card
- func NameEqualFold(v string) predicate.Card
- func NameGT(v string) predicate.Card
- func NameGTE(v string) predicate.Card
- func NameHasPrefix(v string) predicate.Card
- func NameHasSuffix(v string) predicate.Card
- func NameIn(vs ...string) predicate.Card
- func NameIsNil() predicate.Card
- func NameLT(v string) predicate.Card
- func NameLTE(v string) predicate.Card
- func NameNEQ(v string) predicate.Card
- func NameNotIn(vs ...string) predicate.Card
- func NameNotNil() predicate.Card
- func Not(p predicate.Card) predicate.Card
- func Number(v string) predicate.Card
- func NumberContains(v string) predicate.Card
- func NumberContainsFold(v string) predicate.Card
- func NumberEQ(v string) predicate.Card
- func NumberEqualFold(v string) predicate.Card
- func NumberGT(v string) predicate.Card
- func NumberGTE(v string) predicate.Card
- func NumberHasPrefix(v string) predicate.Card
- func NumberHasSuffix(v string) predicate.Card
- func NumberIn(vs ...string) predicate.Card
- func NumberLT(v string) predicate.Card
- func NumberLTE(v string) predicate.Card
- func NumberNEQ(v string) predicate.Card
- func NumberNotIn(vs ...string) predicate.Card
- func Or(predicates ...predicate.Card) predicate.Card
- func ValidColumn(column string) bool
Constants ¶
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 field in the database. FieldNumber = "number" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldInHook holds the string denoting the in_hook field in the database. FieldInHook = "in_hook" // 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 ¶
var ( Hooks [3]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 _ "entgo.io/ent/entc/integration/hooks/ent/runtime"
var Columns = []string{ FieldID, FieldNumber, FieldName, FieldCreatedAt, FieldInHook, }
Columns holds all SQL columns for card fields.
var ForeignKeys = []string{
"user_cards",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "cards" table and are not defined as standalone fields in the schema.
Functions ¶
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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func InHook ¶
InHook applies equality check predicate on the "in_hook" field. It's identical to InHookEQ.
func InHookContains ¶
InHookContains applies the Contains predicate on the "in_hook" field.
func InHookContainsFold ¶
InHookContainsFold applies the ContainsFold predicate on the "in_hook" field.
func InHookEqualFold ¶
InHookEqualFold applies the EqualFold predicate on the "in_hook" field.
func InHookHasPrefix ¶
InHookHasPrefix applies the HasPrefix predicate on the "in_hook" field.
func InHookHasSuffix ¶
InHookHasSuffix applies the HasSuffix predicate on the "in_hook" field.
func InHookNotIn ¶
InHookNotIn applies the NotIn predicate on the "in_hook" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func Number ¶
Number applies equality check predicate on the "number" field. It's identical to NumberEQ.
func NumberContains ¶
NumberContains applies the Contains predicate on the "number" field.
func NumberContainsFold ¶
NumberContainsFold applies the ContainsFold predicate on the "number" field.
func NumberEqualFold ¶
NumberEqualFold applies the EqualFold predicate on the "number" field.
func NumberHasPrefix ¶
NumberHasPrefix applies the HasPrefix predicate on the "number" field.
func NumberHasSuffix ¶
NumberHasSuffix applies the HasSuffix predicate on the "number" field.
func NumberNotIn ¶
NumberNotIn applies the NotIn predicate on the "number" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.