Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TeamHost) predicate.TeamHost
- func CreatedAt(v time.Time) predicate.TeamHost
- func CreatedAtEQ(v time.Time) predicate.TeamHost
- func CreatedAtGT(v time.Time) predicate.TeamHost
- func CreatedAtGTE(v time.Time) predicate.TeamHost
- func CreatedAtIn(vs ...time.Time) predicate.TeamHost
- func CreatedAtLT(v time.Time) predicate.TeamHost
- func CreatedAtLTE(v time.Time) predicate.TeamHost
- func CreatedAtNEQ(v time.Time) predicate.TeamHost
- func CreatedAtNotIn(vs ...time.Time) predicate.TeamHost
- func HasHost() predicate.TeamHost
- func HasHostWith(preds ...predicate.Host) predicate.TeamHost
- func HasTeam() predicate.TeamHost
- func HasTeamWith(preds ...predicate.Team) predicate.TeamHost
- func HostID(v string) predicate.TeamHost
- func HostIDContains(v string) predicate.TeamHost
- func HostIDContainsFold(v string) predicate.TeamHost
- func HostIDEQ(v string) predicate.TeamHost
- func HostIDEqualFold(v string) predicate.TeamHost
- func HostIDGT(v string) predicate.TeamHost
- func HostIDGTE(v string) predicate.TeamHost
- func HostIDHasPrefix(v string) predicate.TeamHost
- func HostIDHasSuffix(v string) predicate.TeamHost
- func HostIDIn(vs ...string) predicate.TeamHost
- func HostIDLT(v string) predicate.TeamHost
- func HostIDLTE(v string) predicate.TeamHost
- func HostIDNEQ(v string) predicate.TeamHost
- func HostIDNotIn(vs ...string) predicate.TeamHost
- func ID(id uuid.UUID) predicate.TeamHost
- func IDEQ(id uuid.UUID) predicate.TeamHost
- func IDGT(id uuid.UUID) predicate.TeamHost
- func IDGTE(id uuid.UUID) predicate.TeamHost
- func IDIn(ids ...uuid.UUID) predicate.TeamHost
- func IDLT(id uuid.UUID) predicate.TeamHost
- func IDLTE(id uuid.UUID) predicate.TeamHost
- func IDNEQ(id uuid.UUID) predicate.TeamHost
- func IDNotIn(ids ...uuid.UUID) predicate.TeamHost
- func Not(p predicate.TeamHost) predicate.TeamHost
- func Or(predicates ...predicate.TeamHost) predicate.TeamHost
- func TeamID(v uuid.UUID) predicate.TeamHost
- func TeamIDEQ(v uuid.UUID) predicate.TeamHost
- func TeamIDIn(vs ...uuid.UUID) predicate.TeamHost
- func TeamIDNEQ(v uuid.UUID) predicate.TeamHost
- func TeamIDNotIn(vs ...uuid.UUID) predicate.TeamHost
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHostField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByHostID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTeamID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the teamhost type in the database. Label = "team_host" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTeamID holds the string denoting the team_id field in the database. FieldTeamID = "team_id" // FieldHostID holds the string denoting the host_id field in the database. FieldHostID = "host_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeTeam holds the string denoting the team edge name in mutations. EdgeTeam = "team" // EdgeHost holds the string denoting the host edge name in mutations. EdgeHost = "host" // Table holds the table name of the teamhost in the database. Table = "team_hosts" // TeamTable is the table that holds the team relation/edge. TeamTable = "team_hosts" // TeamInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamInverseTable = "teams" // TeamColumn is the table column denoting the team relation/edge. TeamColumn = "team_id" // HostTable is the table that holds the host relation/edge. HostTable = "team_hosts" // HostInverseTable is the table name for the Host entity. // It exists in this package in order to avoid circular dependency with the "host" package. HostInverseTable = "hosts" // HostColumn is the table column denoting the host relation/edge. HostColumn = "host_id" )
Variables ¶
var Columns = []string{ FieldID, FieldTeamID, FieldHostID, FieldCreatedAt, }
Columns holds all SQL columns for teamhost fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
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 HasHostWith ¶
HasHostWith applies the HasEdge predicate on the "host" edge with a given conditions (other predicates).
func HasTeamWith ¶
HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).
func HostID ¶
HostID applies equality check predicate on the "host_id" field. It's identical to HostIDEQ.
func HostIDContains ¶
HostIDContains applies the Contains predicate on the "host_id" field.
func HostIDContainsFold ¶
HostIDContainsFold applies the ContainsFold predicate on the "host_id" field.
func HostIDEqualFold ¶
HostIDEqualFold applies the EqualFold predicate on the "host_id" field.
func HostIDHasPrefix ¶
HostIDHasPrefix applies the HasPrefix predicate on the "host_id" field.
func HostIDHasSuffix ¶
HostIDHasSuffix applies the HasSuffix predicate on the "host_id" field.
func HostIDNotIn ¶
HostIDNotIn applies the NotIn predicate on the "host_id" field.
func TeamID ¶
TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.
func TeamIDNotIn ¶
TeamIDNotIn applies the NotIn predicate on the "team_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the TeamHost queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByHostField ¶
func ByHostField(field string, opts ...sql.OrderTermOption) OrderOption
ByHostField orders the results by host field.
func ByHostID ¶
func ByHostID(opts ...sql.OrderTermOption) OrderOption
ByHostID orders the results by the host_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTeamField ¶
func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
ByTeamField orders the results by team field.
func ByTeamID ¶
func ByTeamID(opts ...sql.OrderTermOption) OrderOption
ByTeamID orders the results by the team_id field.