Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Thing) predicate.Thing
- func HasRoom() predicate.Thing
- func HasRoomWith(preds ...predicate.Room) predicate.Thing
- func ID(id int) predicate.Thing
- func IDEQ(id int) predicate.Thing
- func IDGT(id int) predicate.Thing
- func IDGTE(id int) predicate.Thing
- func IDIn(ids ...int) predicate.Thing
- func IDLT(id int) predicate.Thing
- func IDLTE(id int) predicate.Thing
- func IDNEQ(id int) predicate.Thing
- func IDNotIn(ids ...int) predicate.Thing
- func Name(v string) predicate.Thing
- func NameContains(v string) predicate.Thing
- func NameContainsFold(v string) predicate.Thing
- func NameEQ(v string) predicate.Thing
- func NameEqualFold(v string) predicate.Thing
- func NameGT(v string) predicate.Thing
- func NameGTE(v string) predicate.Thing
- func NameHasPrefix(v string) predicate.Thing
- func NameHasSuffix(v string) predicate.Thing
- func NameIn(vs ...string) predicate.Thing
- func NameLT(v string) predicate.Thing
- func NameLTE(v string) predicate.Thing
- func NameNEQ(v string) predicate.Thing
- func NameNotIn(vs ...string) predicate.Thing
- func Not(p predicate.Thing) predicate.Thing
- func Or(predicates ...predicate.Thing) predicate.Thing
- func SecretKey(v uuid.UUID) predicate.Thing
- func SecretKeyEQ(v uuid.UUID) predicate.Thing
- func SecretKeyGT(v uuid.UUID) predicate.Thing
- func SecretKeyGTE(v uuid.UUID) predicate.Thing
- func SecretKeyIn(vs ...uuid.UUID) predicate.Thing
- func SecretKeyLT(v uuid.UUID) predicate.Thing
- func SecretKeyLTE(v uuid.UUID) predicate.Thing
- func SecretKeyNEQ(v uuid.UUID) predicate.Thing
- func SecretKeyNotIn(vs ...uuid.UUID) predicate.Thing
- func UUID(v uuid.UUID) predicate.Thing
- func UUIDEQ(v uuid.UUID) predicate.Thing
- func UUIDGT(v uuid.UUID) predicate.Thing
- func UUIDGTE(v uuid.UUID) predicate.Thing
- func UUIDIn(vs ...uuid.UUID) predicate.Thing
- func UUIDLT(v uuid.UUID) predicate.Thing
- func UUIDLTE(v uuid.UUID) predicate.Thing
- func UUIDNEQ(v uuid.UUID) predicate.Thing
- func UUIDNotIn(vs ...uuid.UUID) predicate.Thing
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the thing type in the database. Label = "thing" // 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" // FieldSecretKey holds the string denoting the secret_key field in the database. FieldSecretKey = "secret_key" // EdgeRoom holds the string denoting the room edge name in mutations. EdgeRoom = "room" // Table holds the table name of the thing in the database. Table = "things" // RoomTable is the table that holds the room relation/edge. RoomTable = "things" // RoomInverseTable is the table name for the Room entity. // It exists in this package in order to avoid circular dependency with the "room" package. RoomInverseTable = "rooms" // RoomColumn is the table column denoting the room relation/edge. RoomColumn = "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 // DefaultSecretKey holds the default value on creation for the "secret_key" field. DefaultSecretKey func() uuid.UUID )
var Columns = []string{ FieldID, FieldUUID, FieldName, FieldSecretKey, }
Columns holds all SQL columns for thing fields.
var ForeignKeys = []string{
"room_things",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "things" table and are not defined as standalone fields in the schema.
Functions ¶
func HasRoomWith ¶
HasRoomWith applies the HasEdge predicate on the "room" 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 SecretKey ¶
SecretKey applies equality check predicate on the "secret_key" field. It's identical to SecretKeyEQ.
func SecretKeyEQ ¶
SecretKeyEQ applies the EQ predicate on the "secret_key" field.
func SecretKeyGT ¶
SecretKeyGT applies the GT predicate on the "secret_key" field.
func SecretKeyGTE ¶
SecretKeyGTE applies the GTE predicate on the "secret_key" field.
func SecretKeyIn ¶
SecretKeyIn applies the In predicate on the "secret_key" field.
func SecretKeyLT ¶
SecretKeyLT applies the LT predicate on the "secret_key" field.
func SecretKeyLTE ¶
SecretKeyLTE applies the LTE predicate on the "secret_key" field.
func SecretKeyNEQ ¶
SecretKeyNEQ applies the NEQ predicate on the "secret_key" field.
func SecretKeyNotIn ¶
SecretKeyNotIn applies the NotIn predicate on the "secret_key" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.