Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Room) predicate.Room
- func Closed(v bool) predicate.Room
- func ClosedEQ(v bool) predicate.Room
- func ClosedNEQ(v bool) predicate.Room
- func CreatedAt(v time.Time) predicate.Room
- func CreatedAtEQ(v time.Time) predicate.Room
- func CreatedAtGT(v time.Time) predicate.Room
- func CreatedAtGTE(v time.Time) predicate.Room
- func CreatedAtIn(vs ...time.Time) predicate.Room
- func CreatedAtLT(v time.Time) predicate.Room
- func CreatedAtLTE(v time.Time) predicate.Room
- func CreatedAtNEQ(v time.Time) predicate.Room
- func CreatedAtNotIn(vs ...time.Time) predicate.Room
- func CreatedBy(v int64) predicate.Room
- func CreatedByEQ(v int64) predicate.Room
- func CreatedByGT(v int64) predicate.Room
- func CreatedByGTE(v int64) predicate.Room
- func CreatedByIn(vs ...int64) predicate.Room
- func CreatedByLT(v int64) predicate.Room
- func CreatedByLTE(v int64) predicate.Room
- func CreatedByNEQ(v int64) predicate.Room
- func CreatedByNotIn(vs ...int64) predicate.Room
- func DeletedAt(v time.Time) predicate.Room
- func DeletedAtEQ(v time.Time) predicate.Room
- func DeletedAtGT(v time.Time) predicate.Room
- func DeletedAtGTE(v time.Time) predicate.Room
- func DeletedAtIn(vs ...time.Time) predicate.Room
- func DeletedAtLT(v time.Time) predicate.Room
- func DeletedAtLTE(v time.Time) predicate.Room
- func DeletedAtNEQ(v time.Time) predicate.Room
- func DeletedAtNotIn(vs ...time.Time) predicate.Room
- func GameOn(v bool) predicate.Room
- func GameOnEQ(v bool) predicate.Room
- func GameOnNEQ(v bool) predicate.Room
- func HasGames() predicate.Room
- func HasGamesWith(preds ...predicate.Game) predicate.Room
- func HasRecords() predicate.Room
- func HasRecordsWith(preds ...predicate.Record) predicate.Room
- func HasRoomUsers() predicate.Room
- func HasRoomUsersWith(preds ...predicate.RoomUser) predicate.Room
- func ID(id int64) predicate.Room
- func IDEQ(id int64) predicate.Room
- func IDGT(id int64) predicate.Room
- func IDGTE(id int64) predicate.Room
- func IDIn(ids ...int64) predicate.Room
- func IDLT(id int64) predicate.Room
- func IDLTE(id int64) predicate.Room
- func IDNEQ(id int64) predicate.Room
- func IDNotIn(ids ...int64) 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 UpdatedAt(v time.Time) predicate.Room
- func UpdatedAtEQ(v time.Time) predicate.Room
- func UpdatedAtGT(v time.Time) predicate.Room
- func UpdatedAtGTE(v time.Time) predicate.Room
- func UpdatedAtIn(vs ...time.Time) predicate.Room
- func UpdatedAtLT(v time.Time) predicate.Room
- func UpdatedAtLTE(v time.Time) predicate.Room
- func UpdatedAtNEQ(v time.Time) predicate.Room
- func UpdatedAtNotIn(vs ...time.Time) predicate.Room
- func UpdatedBy(v int64) predicate.Room
- func UpdatedByEQ(v int64) predicate.Room
- func UpdatedByGT(v int64) predicate.Room
- func UpdatedByGTE(v int64) predicate.Room
- func UpdatedByIn(vs ...int64) predicate.Room
- func UpdatedByLT(v int64) predicate.Room
- func UpdatedByLTE(v int64) predicate.Room
- func UpdatedByNEQ(v int64) predicate.Room
- func UpdatedByNotIn(vs ...int64) 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldClosed holds the string denoting the closed field in the database. FieldClosed = "closed" // FieldGameOn holds the string denoting the game_on field in the database. FieldGameOn = "game_on" // EdgeRoomUsers holds the string denoting the room_users edge name in mutations. EdgeRoomUsers = "room_users" // EdgeGames holds the string denoting the games edge name in mutations. EdgeGames = "games" // EdgeRecords holds the string denoting the records edge name in mutations. EdgeRecords = "records" // Table holds the table name of the room in the database. Table = "rooms" // RoomUsersTable is the table that holds the room_users relation/edge. RoomUsersTable = "room_users" // RoomUsersInverseTable is the table name for the RoomUser entity. // It exists in this package in order to avoid circular dependency with the "roomuser" package. RoomUsersInverseTable = "room_users" // RoomUsersColumn is the table column denoting the room_users relation/edge. RoomUsersColumn = "room_id" // GamesTable is the table that holds the games relation/edge. GamesTable = "games" // GamesInverseTable is the table name for the Game entity. // It exists in this package in order to avoid circular dependency with the "game" package. GamesInverseTable = "games" // GamesColumn is the table column denoting the games relation/edge. GamesColumn = "room_id" // RecordsTable is the table that holds the records relation/edge. RecordsTable = "records" // RecordsInverseTable is the table name for the Record entity. // It exists in this package in order to avoid circular dependency with the "record" package. RecordsInverseTable = "records" // RecordsColumn is the table column denoting the records relation/edge. RecordsColumn = "room_id" )
Variables ¶
var ( // DefaultCreatedBy holds the default value on creation for the "created_by" field. DefaultCreatedBy int64 // DefaultUpdatedBy holds the default value on creation for the "updated_by" field. DefaultUpdatedBy int64 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultDeletedAt holds the default value on creation for the "deleted_at" field. DefaultDeletedAt time.Time // DefaultName holds the default value on creation for the "name" field. DefaultName string // DefaultClosed holds the default value on creation for the "closed" field. DefaultClosed bool // DefaultGameOn holds the default value on creation for the "game_on" field. DefaultGameOn bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() int64 )
var Columns = []string{ FieldID, FieldCreatedBy, FieldUpdatedBy, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldClosed, FieldGameOn, }
Columns holds all SQL columns for room fields.
Functions ¶
func Closed ¶
Closed applies equality check predicate on the "closed" field. It's identical to ClosedEQ.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func GameOn ¶
GameOn applies equality check predicate on the "game_on" field. It's identical to GameOnEQ.
func HasGamesWith ¶
HasGamesWith applies the HasEdge predicate on the "games" edge with a given conditions (other predicates).
func HasRecords ¶
HasRecords applies the HasEdge predicate on the "records" edge.
func HasRecordsWith ¶
HasRecordsWith applies the HasEdge predicate on the "records" edge with a given conditions (other predicates).
func HasRoomUsers ¶
HasRoomUsers applies the HasEdge predicate on the "room_users" edge.
func HasRoomUsersWith ¶
HasRoomUsersWith applies the HasEdge predicate on the "room_users" 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.