Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Galaxy) predicate.Galaxy
- func HasPlanets() predicate.Galaxy
- func HasPlanetsWith(preds ...predicate.Planet) predicate.Galaxy
- func ID(id int) predicate.Galaxy
- func IDEQ(id int) predicate.Galaxy
- func IDGT(id int) predicate.Galaxy
- func IDGTE(id int) predicate.Galaxy
- func IDIn(ids ...int) predicate.Galaxy
- func IDLT(id int) predicate.Galaxy
- func IDLTE(id int) predicate.Galaxy
- func IDNEQ(id int) predicate.Galaxy
- func IDNotIn(ids ...int) predicate.Galaxy
- func Name(v string) predicate.Galaxy
- func NameContains(v string) predicate.Galaxy
- func NameContainsFold(v string) predicate.Galaxy
- func NameEQ(v string) predicate.Galaxy
- func NameEqualFold(v string) predicate.Galaxy
- func NameGT(v string) predicate.Galaxy
- func NameGTE(v string) predicate.Galaxy
- func NameHasPrefix(v string) predicate.Galaxy
- func NameHasSuffix(v string) predicate.Galaxy
- func NameIn(vs ...string) predicate.Galaxy
- func NameLT(v string) predicate.Galaxy
- func NameLTE(v string) predicate.Galaxy
- func NameNEQ(v string) predicate.Galaxy
- func NameNotIn(vs ...string) predicate.Galaxy
- func Not(p predicate.Galaxy) predicate.Galaxy
- func Or(predicates ...predicate.Galaxy) predicate.Galaxy
- func TypeEQ(v Type) predicate.Galaxy
- func TypeIn(vs ...Type) predicate.Galaxy
- func TypeNEQ(v Type) predicate.Galaxy
- func TypeNotIn(vs ...Type) predicate.Galaxy
- func TypeValidator(_type Type) error
- type Type
Constants ¶
const ( // Label holds the string label denoting the galaxy type in the database. Label = "galaxy" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // FieldType holds the string denoting the type vertex property in the database. FieldType = "type" // EdgePlanets holds the string denoting the planets edge name in mutations. EdgePlanets = "planets" // Table holds the table name of the galaxy in the database. Table = "galaxies" // PlanetsTable is the table the holds the planets relation/edge. PlanetsTable = "planets" // PlanetsInverseTable is the table name for the Planet entity. // It exists in this package in order to avoid circular dependency with the "planet" package. PlanetsInverseTable = "planets" // PlanetsColumn is the table column denoting the planets relation/edge. PlanetsColumn = "galaxy_planets" )
Variables ¶
var ( Hooks [1]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, FieldType, }
Columns holds all SQL columns for galaxy fields.
Functions ¶
func HasPlanets ¶
HasPlanets applies the HasEdge predicate on the "planets" edge.
func HasPlanetsWith ¶
HasPlanetsWith applies the HasEdge predicate on the "planets" 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.
func TypeValidator ¶
TypeValidator is a validator for the "_type" field enum values. It is called by the builders before save.