ent: github.com/facebookincubator/ent/entc/integration/ent/card Index | Files

package card

import "github.com/facebookincubator/ent/entc/integration/ent/card"

Index

Package Files

card.go where.go

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"
    // FieldCreateTime holds the string denoting the create_time vertex property in the database.
    FieldCreateTime = "create_time"
    // FieldUpdateTime holds the string denoting the update_time vertex property in the database.
    FieldUpdateTime = "update_time"
    // 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"

    // 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 = "owner_id"

    // OwnerInverseLabel holds the string label denoting the owner inverse edge type in the database.
    OwnerInverseLabel = "user_card"
)

Variables

var (

    // DefaultCreateTime holds the default value on creation for the create_time field.
    DefaultCreateTime = descCreateTime.Default.(func() time.Time)

    // DefaultUpdateTime holds the default value on creation for the update_time field.
    DefaultUpdateTime = descUpdateTime.Default.(func() time.Time)
    // UpdateDefaultUpdateTime holds the default value on update for the update_time field.
    UpdateDefaultUpdateTime = descUpdateTime.UpdateDefault.(func() time.Time)

    // NumberValidator is a validator for the "number" field. It is called by the builders before save.
    NumberValidator = descNumber.Validators[0].(func(string) error)

    // NameValidator is a validator for the "name" field. It is called by the builders before save.
    NameValidator = descName.Validators[0].(func(string) error)
)
var Columns = []string{
    FieldID,
    FieldCreateTime,
    FieldUpdateTime,
    FieldNumber,
    FieldName,
}

Columns holds all SQL columns are card fields.

func And Uses

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

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

func CreateTime Uses

func CreateTime(v time.Time) predicate.Card

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ Uses

func CreateTimeEQ(v time.Time) predicate.Card

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT Uses

func CreateTimeGT(v time.Time) predicate.Card

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE Uses

func CreateTimeGTE(v time.Time) predicate.Card

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn Uses

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

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT Uses

func CreateTimeLT(v time.Time) predicate.Card

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE Uses

func CreateTimeLTE(v time.Time) predicate.Card

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ Uses

func CreateTimeNEQ(v time.Time) predicate.Card

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn Uses

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

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasOwner Uses

func HasOwner() predicate.Card

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

func HasOwnerWith Uses

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

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

func ID Uses

func ID(id string) predicate.Card

ID filters vertices based on their identifier.

func IDEQ Uses

func IDEQ(id string) predicate.Card

IDEQ applies the EQ predicate on the ID field.

func IDGT Uses

func IDGT(id string) predicate.Card

IDGT applies the GT predicate on the ID field.

func IDGTE Uses

func IDGTE(id string) predicate.Card

IDGTE applies the GTE predicate on the ID field.

func IDIn Uses

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

IDIn applies the In predicate on the ID field.

func IDLT Uses

func IDLT(id string) predicate.Card

IDLT applies the LT predicate on the ID field.

func IDLTE Uses

func IDLTE(id string) predicate.Card

IDLTE applies the LTE predicate on the ID field.

func IDNEQ Uses

func IDNEQ(id string) predicate.Card

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn Uses

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

IDNotIn applies the NotIn predicate on the ID field.

func Name Uses

func Name(v string) predicate.Card

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

func NameContains Uses

func NameContains(v string) predicate.Card

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

func NameEQ Uses

func NameEQ(v string) predicate.Card

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

func NameGT Uses

func NameGT(v string) predicate.Card

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

func NameGTE Uses

func NameGTE(v string) predicate.Card

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

func NameHasPrefix Uses

func NameHasPrefix(v string) predicate.Card

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

func NameHasSuffix Uses

func NameHasSuffix(v string) predicate.Card

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

func NameIn Uses

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

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

func NameIsNil Uses

func NameIsNil() predicate.Card

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

func NameLT Uses

func NameLT(v string) predicate.Card

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

func NameLTE Uses

func NameLTE(v string) predicate.Card

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

func NameNEQ Uses

func NameNEQ(v string) predicate.Card

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

func NameNotIn Uses

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

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

func NameNotNil Uses

func NameNotNil() predicate.Card

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

func Not Uses

func Not(p predicate.Card) predicate.Card

Not applies the not operator on the given predicate.

func Number Uses

func Number(v string) predicate.Card

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

func NumberContains Uses

func NumberContains(v string) predicate.Card

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

func NumberEQ Uses

func NumberEQ(v string) predicate.Card

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

func NumberGT Uses

func NumberGT(v string) predicate.Card

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

func NumberGTE Uses

func NumberGTE(v string) predicate.Card

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

func NumberHasPrefix Uses

func NumberHasPrefix(v string) predicate.Card

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

func NumberHasSuffix Uses

func NumberHasSuffix(v string) predicate.Card

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

func NumberIn Uses

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

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

func NumberLT Uses

func NumberLT(v string) predicate.Card

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

func NumberLTE Uses

func NumberLTE(v string) predicate.Card

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

func NumberNEQ Uses

func NumberNEQ(v string) predicate.Card

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

func NumberNotIn Uses

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

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

func Or Uses

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

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

func UpdateTime Uses

func UpdateTime(v time.Time) predicate.Card

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ Uses

func UpdateTimeEQ(v time.Time) predicate.Card

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT Uses

func UpdateTimeGT(v time.Time) predicate.Card

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE Uses

func UpdateTimeGTE(v time.Time) predicate.Card

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn Uses

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

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT Uses

func UpdateTimeLT(v time.Time) predicate.Card

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE Uses

func UpdateTimeLTE(v time.Time) predicate.Card

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ Uses

func UpdateTimeNEQ(v time.Time) predicate.Card

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn Uses

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

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

Package card imports 9 packages (graph) and is imported by 1 packages. Updated 2019-11-19. Refresh now. Tools for package owners.