club

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the club type in the database.
	Label = "club"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldSummary holds the string denoting the summary field in the database.
	FieldSummary = "summary"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldImages holds the string denoting the images field in the database.
	FieldImages = "images"
	// FieldHomepage holds the string denoting the homepage field in the database.
	FieldHomepage = "homepage"
	// FieldInstagram holds the string denoting the instagram field in the database.
	FieldInstagram = "instagram"
	// FieldFacebook holds the string denoting the facebook field in the database.
	FieldFacebook = "facebook"
	// FieldPhone holds the string denoting the phone field in the database.
	FieldPhone = "phone"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldRecommended holds the string denoting the recommended field in the database.
	FieldRecommended = "recommended"
	// EdgeLikes holds the string denoting the likes edge name in mutations.
	EdgeLikes = "likes"
	// EdgeCategories holds the string denoting the categories edge name in mutations.
	EdgeCategories = "categories"
	// CategoryFieldID holds the string denoting the ID field of the Category.
	CategoryFieldID = "name"
	// Table holds the table name of the club in the database.
	Table = "clubs"
	// LikesTable is the table the holds the likes relation/edge.
	LikesTable = "like_clubs"
	// LikesInverseTable is the table name for the LikeClub entity.
	// It exists in this package in order to avoid circular dependency with the "likeclub" package.
	LikesInverseTable = "like_clubs"
	// LikesColumn is the table column denoting the likes relation/edge.
	LikesColumn = "club_likes"
	// CategoriesTable is the table the holds the categories relation/edge. The primary key declared below.
	CategoriesTable = "category_clubs"
	// CategoriesInverseTable is the table name for the Category entity.
	// It exists in this package in order to avoid circular dependency with the "category" package.
	CategoriesInverseTable = "categories"
)

Variables

View Source
var (
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// DefaultRecommended holds the default value on creation for the "recommended" field.
	DefaultRecommended bool
)
View Source
var (
	// CategoriesPrimaryKey and CategoriesColumn2 are the table columns denoting the
	// primary key for the categories relation (M2M).
	CategoriesPrimaryKey = []string{"category_id", "club_id"}
)

Columns holds all SQL columns for club fields.

Functions

func And

func And(predicates ...predicate.Club) predicate.Club

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Club

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

func DescriptionContains

func DescriptionContains(v string) predicate.Club

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Club

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Club

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Club

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

func DescriptionGT

func DescriptionGT(v string) predicate.Club

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Club

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Club

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Club

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Club

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Club

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Club

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

func DescriptionNotIn

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

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

func Email

func Email(v string) predicate.Club

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Club

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Club

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Club

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Club

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Club

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Club

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Club

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Club

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Club

EmailIn applies the In predicate on the "email" field.

func EmailIsNil

func EmailIsNil() predicate.Club

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Club

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Club

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Club

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Club

EmailNotIn applies the NotIn predicate on the "email" field.

func EmailNotNil

func EmailNotNil() predicate.Club

EmailNotNil applies the NotNil predicate on the "email" field.

func Facebook

func Facebook(v string) predicate.Club

Facebook applies equality check predicate on the "facebook" field. It's identical to FacebookEQ.

func FacebookContains

func FacebookContains(v string) predicate.Club

FacebookContains applies the Contains predicate on the "facebook" field.

func FacebookContainsFold

func FacebookContainsFold(v string) predicate.Club

FacebookContainsFold applies the ContainsFold predicate on the "facebook" field.

func FacebookEQ

func FacebookEQ(v string) predicate.Club

FacebookEQ applies the EQ predicate on the "facebook" field.

func FacebookEqualFold

func FacebookEqualFold(v string) predicate.Club

FacebookEqualFold applies the EqualFold predicate on the "facebook" field.

func FacebookGT

func FacebookGT(v string) predicate.Club

FacebookGT applies the GT predicate on the "facebook" field.

func FacebookGTE

func FacebookGTE(v string) predicate.Club

FacebookGTE applies the GTE predicate on the "facebook" field.

func FacebookHasPrefix

func FacebookHasPrefix(v string) predicate.Club

FacebookHasPrefix applies the HasPrefix predicate on the "facebook" field.

func FacebookHasSuffix

func FacebookHasSuffix(v string) predicate.Club

FacebookHasSuffix applies the HasSuffix predicate on the "facebook" field.

func FacebookIn

func FacebookIn(vs ...string) predicate.Club

FacebookIn applies the In predicate on the "facebook" field.

func FacebookIsNil

func FacebookIsNil() predicate.Club

FacebookIsNil applies the IsNil predicate on the "facebook" field.

func FacebookLT

func FacebookLT(v string) predicate.Club

FacebookLT applies the LT predicate on the "facebook" field.

func FacebookLTE

func FacebookLTE(v string) predicate.Club

FacebookLTE applies the LTE predicate on the "facebook" field.

func FacebookNEQ

func FacebookNEQ(v string) predicate.Club

FacebookNEQ applies the NEQ predicate on the "facebook" field.

func FacebookNotIn

func FacebookNotIn(vs ...string) predicate.Club

FacebookNotIn applies the NotIn predicate on the "facebook" field.

func FacebookNotNil

func FacebookNotNil() predicate.Club

FacebookNotNil applies the NotNil predicate on the "facebook" field.

func HasCategories

func HasCategories() predicate.Club

HasCategories applies the HasEdge predicate on the "categories" edge.

func HasCategoriesWith

func HasCategoriesWith(preds ...predicate.Category) predicate.Club

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

func HasLikes

func HasLikes() predicate.Club

HasLikes applies the HasEdge predicate on the "likes" edge.

func HasLikesWith

func HasLikesWith(preds ...predicate.LikeClub) predicate.Club

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

func Homepage

func Homepage(v string) predicate.Club

Homepage applies equality check predicate on the "homepage" field. It's identical to HomepageEQ.

func HomepageContains

func HomepageContains(v string) predicate.Club

HomepageContains applies the Contains predicate on the "homepage" field.

func HomepageContainsFold

func HomepageContainsFold(v string) predicate.Club

HomepageContainsFold applies the ContainsFold predicate on the "homepage" field.

func HomepageEQ

func HomepageEQ(v string) predicate.Club

HomepageEQ applies the EQ predicate on the "homepage" field.

func HomepageEqualFold

func HomepageEqualFold(v string) predicate.Club

HomepageEqualFold applies the EqualFold predicate on the "homepage" field.

func HomepageGT

func HomepageGT(v string) predicate.Club

HomepageGT applies the GT predicate on the "homepage" field.

func HomepageGTE

func HomepageGTE(v string) predicate.Club

HomepageGTE applies the GTE predicate on the "homepage" field.

func HomepageHasPrefix

func HomepageHasPrefix(v string) predicate.Club

HomepageHasPrefix applies the HasPrefix predicate on the "homepage" field.

func HomepageHasSuffix

func HomepageHasSuffix(v string) predicate.Club

HomepageHasSuffix applies the HasSuffix predicate on the "homepage" field.

func HomepageIn

func HomepageIn(vs ...string) predicate.Club

HomepageIn applies the In predicate on the "homepage" field.

func HomepageIsNil

func HomepageIsNil() predicate.Club

HomepageIsNil applies the IsNil predicate on the "homepage" field.

func HomepageLT

func HomepageLT(v string) predicate.Club

HomepageLT applies the LT predicate on the "homepage" field.

func HomepageLTE

func HomepageLTE(v string) predicate.Club

HomepageLTE applies the LTE predicate on the "homepage" field.

func HomepageNEQ

func HomepageNEQ(v string) predicate.Club

HomepageNEQ applies the NEQ predicate on the "homepage" field.

func HomepageNotIn

func HomepageNotIn(vs ...string) predicate.Club

HomepageNotIn applies the NotIn predicate on the "homepage" field.

func HomepageNotNil

func HomepageNotNil() predicate.Club

HomepageNotNil applies the NotNil predicate on the "homepage" field.

func ID

func ID(id int) predicate.Club

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Club

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Club

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Club

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Club

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Club

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Club

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func ImagesIsNil

func ImagesIsNil() predicate.Club

ImagesIsNil applies the IsNil predicate on the "images" field.

func ImagesNotNil

func ImagesNotNil() predicate.Club

ImagesNotNil applies the NotNil predicate on the "images" field.

func Instagram

func Instagram(v string) predicate.Club

Instagram applies equality check predicate on the "instagram" field. It's identical to InstagramEQ.

func InstagramContains

func InstagramContains(v string) predicate.Club

InstagramContains applies the Contains predicate on the "instagram" field.

func InstagramContainsFold

func InstagramContainsFold(v string) predicate.Club

InstagramContainsFold applies the ContainsFold predicate on the "instagram" field.

func InstagramEQ

func InstagramEQ(v string) predicate.Club

InstagramEQ applies the EQ predicate on the "instagram" field.

func InstagramEqualFold

func InstagramEqualFold(v string) predicate.Club

InstagramEqualFold applies the EqualFold predicate on the "instagram" field.

func InstagramGT

func InstagramGT(v string) predicate.Club

InstagramGT applies the GT predicate on the "instagram" field.

func InstagramGTE

func InstagramGTE(v string) predicate.Club

InstagramGTE applies the GTE predicate on the "instagram" field.

func InstagramHasPrefix

func InstagramHasPrefix(v string) predicate.Club

InstagramHasPrefix applies the HasPrefix predicate on the "instagram" field.

func InstagramHasSuffix

func InstagramHasSuffix(v string) predicate.Club

InstagramHasSuffix applies the HasSuffix predicate on the "instagram" field.

func InstagramIn

func InstagramIn(vs ...string) predicate.Club

InstagramIn applies the In predicate on the "instagram" field.

func InstagramIsNil

func InstagramIsNil() predicate.Club

InstagramIsNil applies the IsNil predicate on the "instagram" field.

func InstagramLT

func InstagramLT(v string) predicate.Club

InstagramLT applies the LT predicate on the "instagram" field.

func InstagramLTE

func InstagramLTE(v string) predicate.Club

InstagramLTE applies the LTE predicate on the "instagram" field.

func InstagramNEQ

func InstagramNEQ(v string) predicate.Club

InstagramNEQ applies the NEQ predicate on the "instagram" field.

func InstagramNotIn

func InstagramNotIn(vs ...string) predicate.Club

InstagramNotIn applies the NotIn predicate on the "instagram" field.

func InstagramNotNil

func InstagramNotNil() predicate.Club

InstagramNotNil applies the NotNil predicate on the "instagram" field.

func Name

func Name(v string) predicate.Club

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Club

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Club

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Club

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Club

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Club

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Club

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Club

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Club

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Club

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Club

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Club

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Club

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Club

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Club) predicate.Club

Or groups predicates with the OR operator between them.

func Phone

func Phone(v string) predicate.Club

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.Club

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.Club

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.Club

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.Club

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.Club

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.Club

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.Club

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.Club

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...string) predicate.Club

PhoneIn applies the In predicate on the "phone" field.

func PhoneIsNil

func PhoneIsNil() predicate.Club

PhoneIsNil applies the IsNil predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.Club

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.Club

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.Club

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...string) predicate.Club

PhoneNotIn applies the NotIn predicate on the "phone" field.

func PhoneNotNil

func PhoneNotNil() predicate.Club

PhoneNotNil applies the NotNil predicate on the "phone" field.

func Recommended(v bool) predicate.Club

Recommended applies equality check predicate on the "recommended" field. It's identical to RecommendedEQ.

func RecommendedEQ

func RecommendedEQ(v bool) predicate.Club

RecommendedEQ applies the EQ predicate on the "recommended" field.

func RecommendedNEQ

func RecommendedNEQ(v bool) predicate.Club

RecommendedNEQ applies the NEQ predicate on the "recommended" field.

func Summary

func Summary(v string) predicate.Club

Summary applies equality check predicate on the "summary" field. It's identical to SummaryEQ.

func SummaryContains

func SummaryContains(v string) predicate.Club

SummaryContains applies the Contains predicate on the "summary" field.

func SummaryContainsFold

func SummaryContainsFold(v string) predicate.Club

SummaryContainsFold applies the ContainsFold predicate on the "summary" field.

func SummaryEQ

func SummaryEQ(v string) predicate.Club

SummaryEQ applies the EQ predicate on the "summary" field.

func SummaryEqualFold

func SummaryEqualFold(v string) predicate.Club

SummaryEqualFold applies the EqualFold predicate on the "summary" field.

func SummaryGT

func SummaryGT(v string) predicate.Club

SummaryGT applies the GT predicate on the "summary" field.

func SummaryGTE

func SummaryGTE(v string) predicate.Club

SummaryGTE applies the GTE predicate on the "summary" field.

func SummaryHasPrefix

func SummaryHasPrefix(v string) predicate.Club

SummaryHasPrefix applies the HasPrefix predicate on the "summary" field.

func SummaryHasSuffix

func SummaryHasSuffix(v string) predicate.Club

SummaryHasSuffix applies the HasSuffix predicate on the "summary" field.

func SummaryIn

func SummaryIn(vs ...string) predicate.Club

SummaryIn applies the In predicate on the "summary" field.

func SummaryLT

func SummaryLT(v string) predicate.Club

SummaryLT applies the LT predicate on the "summary" field.

func SummaryLTE

func SummaryLTE(v string) predicate.Club

SummaryLTE applies the LTE predicate on the "summary" field.

func SummaryNEQ

func SummaryNEQ(v string) predicate.Club

SummaryNEQ applies the NEQ predicate on the "summary" field.

func SummaryNotIn

func SummaryNotIn(vs ...string) predicate.Club

SummaryNotIn applies the NotIn predicate on the "summary" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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