Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Room) predicate.Room
- func HasHome() predicate.Room
- func HasHomeWith(preds ...predicate.Home) predicate.Room
- func HasThings() predicate.Room
- func HasThingsWith(preds ...predicate.Thing) predicate.Room
- func ID(id int) predicate.Room
- func IDEQ(id int) predicate.Room
- func IDGT(id int) predicate.Room
- func IDGTE(id int) predicate.Room
- func IDIn(ids ...int) predicate.Room
- func IDLT(id int) predicate.Room
- func IDLTE(id int) predicate.Room
- func IDNEQ(id int) predicate.Room
- func IDNotIn(ids ...int) predicate.Room
- func Name(v string) predicate.Room
- func NameContains(v string) predicate.Room
- func NameContainsFold(v string) predicate.Room
- func NameEQ(v string) predicate.Room
- func NameEqualFold(v string) predicate.Room
- func NameGT(v string) predicate.Room
- func NameGTE(v string) predicate.Room
- func NameHasPrefix(v string) predicate.Room
- func NameHasSuffix(v string) predicate.Room
- func NameIn(vs ...string) predicate.Room
- func NameLT(v string) predicate.Room
- func NameLTE(v string) predicate.Room
- func NameNEQ(v string) predicate.Room
- func NameNotIn(vs ...string) predicate.Room
- func Not(p predicate.Room) predicate.Room
- func Or(predicates ...predicate.Room) predicate.Room
- func UUID(v uuid.UUID) predicate.Room
- func UUIDEQ(v uuid.UUID) predicate.Room
- func UUIDGT(v uuid.UUID) predicate.Room
- func UUIDGTE(v uuid.UUID) predicate.Room
- func UUIDIn(vs ...uuid.UUID) predicate.Room
- func UUIDLT(v uuid.UUID) predicate.Room
- func UUIDLTE(v uuid.UUID) predicate.Room
- func UUIDNEQ(v uuid.UUID) predicate.Room
- func UUIDNotIn(vs ...uuid.UUID) predicate.Room
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the room type in the database. Label = "room" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeHome holds the string denoting the home edge name in mutations. EdgeHome = "home" // EdgeThings holds the string denoting the things edge name in mutations. EdgeThings = "things" // Table holds the table name of the room in the database. Table = "rooms" // HomeTable is the table that holds the home relation/edge. HomeTable = "rooms" // HomeInverseTable is the table name for the Home entity. // It exists in this package in order to avoid circular dependency with the "home" package. HomeInverseTable = "homes" // HomeColumn is the table column denoting the home relation/edge. HomeColumn = "home_rooms" // ThingsTable is the table that holds the things relation/edge. ThingsTable = "things" // ThingsInverseTable is the table name for the Thing entity. // It exists in this package in order to avoid circular dependency with the "thing" package. ThingsInverseTable = "things" // ThingsColumn is the table column denoting the things relation/edge. ThingsColumn = "room_things" )
Variables ¶
var ( // DefaultUUID holds the default value on creation for the "uuid" field. DefaultUUID func() uuid.UUID // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldUUID, FieldName, }
Columns holds all SQL columns for room fields.
var ForeignKeys = []string{
"home_rooms",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "rooms" table and are not defined as standalone fields in the schema.
Functions ¶
func HasHomeWith ¶
HasHomeWith applies the HasEdge predicate on the "home" edge with a given conditions (other predicates).
func HasThingsWith ¶
HasThingsWith applies the HasEdge predicate on the "things" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.