teamhost

package
v0.0.0-...-481d40d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for teamhost fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

func And(predicates ...predicate.TeamHost) predicate.TeamHost

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.TeamHost

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.TeamHost

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.TeamHost

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.TeamHost

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.TeamHost

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.TeamHost

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.TeamHost

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.TeamHost

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.TeamHost

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasHost

func HasHost() predicate.TeamHost

HasHost applies the HasEdge predicate on the "host" edge.

func HasHostWith

func HasHostWith(preds ...predicate.Host) predicate.TeamHost

HasHostWith applies the HasEdge predicate on the "host" edge with a given conditions (other predicates).

func HasTeam

func HasTeam() predicate.TeamHost

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamWith

func HasTeamWith(preds ...predicate.Team) predicate.TeamHost

HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).

func HostID

func HostID(v string) predicate.TeamHost

HostID applies equality check predicate on the "host_id" field. It's identical to HostIDEQ.

func HostIDContains

func HostIDContains(v string) predicate.TeamHost

HostIDContains applies the Contains predicate on the "host_id" field.

func HostIDContainsFold

func HostIDContainsFold(v string) predicate.TeamHost

HostIDContainsFold applies the ContainsFold predicate on the "host_id" field.

func HostIDEQ

func HostIDEQ(v string) predicate.TeamHost

HostIDEQ applies the EQ predicate on the "host_id" field.

func HostIDEqualFold

func HostIDEqualFold(v string) predicate.TeamHost

HostIDEqualFold applies the EqualFold predicate on the "host_id" field.

func HostIDGT

func HostIDGT(v string) predicate.TeamHost

HostIDGT applies the GT predicate on the "host_id" field.

func HostIDGTE

func HostIDGTE(v string) predicate.TeamHost

HostIDGTE applies the GTE predicate on the "host_id" field.

func HostIDHasPrefix

func HostIDHasPrefix(v string) predicate.TeamHost

HostIDHasPrefix applies the HasPrefix predicate on the "host_id" field.

func HostIDHasSuffix

func HostIDHasSuffix(v string) predicate.TeamHost

HostIDHasSuffix applies the HasSuffix predicate on the "host_id" field.

func HostIDIn

func HostIDIn(vs ...string) predicate.TeamHost

HostIDIn applies the In predicate on the "host_id" field.

func HostIDLT

func HostIDLT(v string) predicate.TeamHost

HostIDLT applies the LT predicate on the "host_id" field.

func HostIDLTE

func HostIDLTE(v string) predicate.TeamHost

HostIDLTE applies the LTE predicate on the "host_id" field.

func HostIDNEQ

func HostIDNEQ(v string) predicate.TeamHost

HostIDNEQ applies the NEQ predicate on the "host_id" field.

func HostIDNotIn

func HostIDNotIn(vs ...string) predicate.TeamHost

HostIDNotIn applies the NotIn predicate on the "host_id" field.

func ID

func ID(id uuid.UUID) predicate.TeamHost

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.TeamHost

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.TeamHost

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.TeamHost

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.TeamHost

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.TeamHost

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.TeamHost

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.TeamHost

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.TeamHost

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.TeamHost) predicate.TeamHost

Or groups predicates with the OR operator between them.

func TeamID

func TeamID(v uuid.UUID) predicate.TeamHost

TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.

func TeamIDEQ

func TeamIDEQ(v uuid.UUID) predicate.TeamHost

TeamIDEQ applies the EQ predicate on the "team_id" field.

func TeamIDIn

func TeamIDIn(vs ...uuid.UUID) predicate.TeamHost

TeamIDIn applies the In predicate on the "team_id" field.

func TeamIDNEQ

func TeamIDNEQ(v uuid.UUID) predicate.TeamHost

TeamIDNEQ applies the NEQ predicate on the "team_id" field.

func TeamIDNotIn

func TeamIDNotIn(vs ...uuid.UUID) predicate.TeamHost

TeamIDNotIn applies the NotIn predicate on the "team_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL