playgroup

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the playgroup type in the database.
	Label = "play_group"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldWeekday holds the string denoting the weekday field in the database.
	FieldWeekday = "weekday"
	// EdgeParticipants holds the string denoting the participants edge name in mutations.
	EdgeParticipants = "participants"
	// Table holds the table name of the playgroup in the database.
	Table = "play_groups"
	// ParticipantsTable is the table that holds the participants relation/edge. The primary key declared below.
	ParticipantsTable = "pet_play_groups"
	// ParticipantsInverseTable is the table name for the Pet entity.
	// It exists in this package in order to avoid circular dependency with the "pet" package.
	ParticipantsInverseTable = "pets"
)

Variables

Columns holds all SQL columns for playgroup fields.

View Source
var (
	// ParticipantsPrimaryKey and ParticipantsColumn2 are the table columns denoting the
	// primary key for the participants relation (M2M).
	ParticipantsPrimaryKey = []string{"pet_id", "play_group_id"}
)

Functions

func And

func And(predicates ...predicate.PlayGroup) predicate.PlayGroup

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.PlayGroup

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.PlayGroup

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.PlayGroup

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.PlayGroup

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.PlayGroup

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.PlayGroup

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.PlayGroup

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.PlayGroup

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.PlayGroup

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.PlayGroup

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.PlayGroup

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.PlayGroup

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.PlayGroup

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.PlayGroup

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.PlayGroup

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.PlayGroup

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasParticipants

func HasParticipants() predicate.PlayGroup

HasParticipants applies the HasEdge predicate on the "participants" edge.

func HasParticipantsWith

func HasParticipantsWith(preds ...predicate.Pet) predicate.PlayGroup

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

func ID

func ID(id int) predicate.PlayGroup

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.PlayGroup

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.PlayGroup

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.PlayGroup

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.PlayGroup

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.PlayGroup

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.PlayGroup

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.PlayGroup

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.PlayGroup

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.PlayGroup) predicate.PlayGroup

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.PlayGroup

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.PlayGroup

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.PlayGroup

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.PlayGroup

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.PlayGroup

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.PlayGroup

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.PlayGroup

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.PlayGroup

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.PlayGroup

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.PlayGroup

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.PlayGroup

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.PlayGroup

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.PlayGroup

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.PlayGroup

TitleNotIn applies the NotIn predicate on the "title" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WeekdayEQ

func WeekdayEQ(v Weekday) predicate.PlayGroup

WeekdayEQ applies the EQ predicate on the "weekday" field.

func WeekdayIn

func WeekdayIn(vs ...Weekday) predicate.PlayGroup

WeekdayIn applies the In predicate on the "weekday" field.

func WeekdayNEQ

func WeekdayNEQ(v Weekday) predicate.PlayGroup

WeekdayNEQ applies the NEQ predicate on the "weekday" field.

func WeekdayNotIn

func WeekdayNotIn(vs ...Weekday) predicate.PlayGroup

WeekdayNotIn applies the NotIn predicate on the "weekday" field.

func WeekdayValidator

func WeekdayValidator(w Weekday) error

WeekdayValidator is a validator for the "weekday" field enum values. It is called by the builders before save.

Types

type Weekday

type Weekday string

Weekday defines the type for the "weekday" enum field.

const (
	WeekdayMon Weekday = "Mon"
	WeekdayTue Weekday = "Tue"
	WeekdayWed Weekday = "Wed"
	WeekdayThu Weekday = "Thu"
	WeekdayFri Weekday = "Fri"
	WeekdaySat Weekday = "Sat"
	WeekdaySun Weekday = "Sun"
)

Weekday values.

func (Weekday) String

func (w Weekday) String() string

Jump to

Keyboard shortcuts

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