Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v uint) predicate.Planet
- func AgeEQ(v uint) predicate.Planet
- func AgeGT(v uint) predicate.Planet
- func AgeGTE(v uint) predicate.Planet
- func AgeIn(vs ...uint) predicate.Planet
- func AgeIsNil() predicate.Planet
- func AgeLT(v uint) predicate.Planet
- func AgeLTE(v uint) predicate.Planet
- func AgeNEQ(v uint) predicate.Planet
- func AgeNotIn(vs ...uint) predicate.Planet
- func AgeNotNil() predicate.Planet
- func And(predicates ...predicate.Planet) predicate.Planet
- func HasNeighbors() predicate.Planet
- func HasNeighborsWith(preds ...predicate.Planet) predicate.Planet
- func ID(id int) predicate.Planet
- func IDEQ(id int) predicate.Planet
- func IDGT(id int) predicate.Planet
- func IDGTE(id int) predicate.Planet
- func IDIn(ids ...int) predicate.Planet
- func IDLT(id int) predicate.Planet
- func IDLTE(id int) predicate.Planet
- func IDNEQ(id int) predicate.Planet
- func IDNotIn(ids ...int) predicate.Planet
- func Name(v string) predicate.Planet
- func NameContains(v string) predicate.Planet
- func NameContainsFold(v string) predicate.Planet
- func NameEQ(v string) predicate.Planet
- func NameEqualFold(v string) predicate.Planet
- func NameGT(v string) predicate.Planet
- func NameGTE(v string) predicate.Planet
- func NameHasPrefix(v string) predicate.Planet
- func NameHasSuffix(v string) predicate.Planet
- func NameIn(vs ...string) predicate.Planet
- func NameLT(v string) predicate.Planet
- func NameLTE(v string) predicate.Planet
- func NameNEQ(v string) predicate.Planet
- func NameNotIn(vs ...string) predicate.Planet
- func Not(p predicate.Planet) predicate.Planet
- func Or(predicates ...predicate.Planet) predicate.Planet
Constants ¶
const ( // Label holds the string label denoting the planet type in the database. Label = "planet" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // EdgeNeighbors holds the string denoting the neighbors edge name in mutations. EdgeNeighbors = "neighbors" // Table holds the table name of the planet in the database. Table = "planets" // NeighborsTable is the table the holds the neighbors relation/edge. The primary key declared below. NeighborsTable = "planet_neighbors" )
Variables ¶
var ( Hooks [2]ent.Hook Policy ent.Policy // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
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/privacy/ent/runtime"
var Columns = []string{ FieldID, FieldName, FieldAge, }
Columns holds all SQL columns for planet fields.
var ForeignKeys = []string{
"galaxy_planets",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Planet type.
var ( // NeighborsPrimaryKey and NeighborsColumn2 are the table columns denoting the // primary key for the neighbors relation (M2M). NeighborsPrimaryKey = []string{"planet_id", "neighbor_id"} )
Functions ¶
func HasNeighbors ¶
HasNeighbors applies the HasEdge predicate on the "neighbors" edge.
func HasNeighborsWith ¶
HasNeighborsWith applies the HasEdge predicate on the "neighbors" edge with a given conditions (other predicates).
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.
Types ¶
This section is empty.