Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Home) predicate.Home
- func HasRooms() predicate.Home
- func HasRoomsWith(preds ...predicate.Room) predicate.Home
- func ID(id int) predicate.Home
- func IDEQ(id int) predicate.Home
- func IDGT(id int) predicate.Home
- func IDGTE(id int) predicate.Home
- func IDIn(ids ...int) predicate.Home
- func IDLT(id int) predicate.Home
- func IDLTE(id int) predicate.Home
- func IDNEQ(id int) predicate.Home
- func IDNotIn(ids ...int) predicate.Home
- func Name(v string) predicate.Home
- func NameContains(v string) predicate.Home
- func NameContainsFold(v string) predicate.Home
- func NameEQ(v string) predicate.Home
- func NameEqualFold(v string) predicate.Home
- func NameGT(v string) predicate.Home
- func NameGTE(v string) predicate.Home
- func NameHasPrefix(v string) predicate.Home
- func NameHasSuffix(v string) predicate.Home
- func NameIn(vs ...string) predicate.Home
- func NameLT(v string) predicate.Home
- func NameLTE(v string) predicate.Home
- func NameNEQ(v string) predicate.Home
- func NameNotIn(vs ...string) predicate.Home
- func Not(p predicate.Home) predicate.Home
- func Or(predicates ...predicate.Home) predicate.Home
- func UUID(v uuid.UUID) predicate.Home
- func UUIDEQ(v uuid.UUID) predicate.Home
- func UUIDGT(v uuid.UUID) predicate.Home
- func UUIDGTE(v uuid.UUID) predicate.Home
- func UUIDIn(vs ...uuid.UUID) predicate.Home
- func UUIDLT(v uuid.UUID) predicate.Home
- func UUIDLTE(v uuid.UUID) predicate.Home
- func UUIDNEQ(v uuid.UUID) predicate.Home
- func UUIDNotIn(vs ...uuid.UUID) predicate.Home
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the home type in the database. Label = "home" // 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" // EdgeRooms holds the string denoting the rooms edge name in mutations. EdgeRooms = "rooms" // Table holds the table name of the home in the database. Table = "homes" // RoomsTable is the table that holds the rooms relation/edge. RoomsTable = "rooms" // RoomsInverseTable is the table name for the Room entity. // It exists in this package in order to avoid circular dependency with the "room" package. RoomsInverseTable = "rooms" // RoomsColumn is the table column denoting the rooms relation/edge. RoomsColumn = "home_rooms" )
Variables ¶
View Source
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 )
View Source
var Columns = []string{ FieldID, FieldUUID, FieldName, }
Columns holds all SQL columns for home fields.
Functions ¶
func HasRoomsWith ¶
HasRoomsWith applies the HasEdge predicate on the "rooms" 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.
Click to show internal directories.
Click to hide internal directories.