birthday

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the birthday type in the database.
	Label = "birthday"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDay holds the string denoting the day field in the database.
	FieldDay = "day"
	// FieldMonth holds the string denoting the month field in the database.
	FieldMonth = "month"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the birthday in the database.
	Table = "birthdays"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "birthdays"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_birthday"
)

Variables

View Source
var (
	// DayValidator is a validator for the "day" field. It is called by the builders before save.
	DayValidator func(int) error
	// MonthValidator is a validator for the "month" field. It is called by the builders before save.
	MonthValidator func(int) error
)
View Source
var Columns = []string{
	FieldID,
	FieldDay,
	FieldMonth,
}

Columns holds all SQL columns for birthday fields.

View Source
var ForeignKeys = []string{
	"user_birthday",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "birthdays" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Birthday) predicate.Birthday

And groups predicates with the AND operator between them.

func Day

func Day(v int) predicate.Birthday

Day applies equality check predicate on the "day" field. It's identical to DayEQ.

func DayEQ

func DayEQ(v int) predicate.Birthday

DayEQ applies the EQ predicate on the "day" field.

func DayGT

func DayGT(v int) predicate.Birthday

DayGT applies the GT predicate on the "day" field.

func DayGTE

func DayGTE(v int) predicate.Birthday

DayGTE applies the GTE predicate on the "day" field.

func DayIn

func DayIn(vs ...int) predicate.Birthday

DayIn applies the In predicate on the "day" field.

func DayLT

func DayLT(v int) predicate.Birthday

DayLT applies the LT predicate on the "day" field.

func DayLTE

func DayLTE(v int) predicate.Birthday

DayLTE applies the LTE predicate on the "day" field.

func DayNEQ

func DayNEQ(v int) predicate.Birthday

DayNEQ applies the NEQ predicate on the "day" field.

func DayNotIn

func DayNotIn(vs ...int) predicate.Birthday

DayNotIn applies the NotIn predicate on the "day" field.

func HasUser

func HasUser() predicate.Birthday

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Birthday

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

func ID

func ID(id int) predicate.Birthday

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Birthday

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Birthday

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Birthday

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Birthday

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Birthday

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Birthday

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Month

func Month(v int) predicate.Birthday

Month applies equality check predicate on the "month" field. It's identical to MonthEQ.

func MonthEQ

func MonthEQ(v int) predicate.Birthday

MonthEQ applies the EQ predicate on the "month" field.

func MonthGT

func MonthGT(v int) predicate.Birthday

MonthGT applies the GT predicate on the "month" field.

func MonthGTE

func MonthGTE(v int) predicate.Birthday

MonthGTE applies the GTE predicate on the "month" field.

func MonthIn

func MonthIn(vs ...int) predicate.Birthday

MonthIn applies the In predicate on the "month" field.

func MonthLT

func MonthLT(v int) predicate.Birthday

MonthLT applies the LT predicate on the "month" field.

func MonthLTE

func MonthLTE(v int) predicate.Birthday

MonthLTE applies the LTE predicate on the "month" field.

func MonthNEQ

func MonthNEQ(v int) predicate.Birthday

MonthNEQ applies the NEQ predicate on the "month" field.

func MonthNotIn

func MonthNotIn(vs ...int) predicate.Birthday

MonthNotIn applies the NotIn predicate on the "month" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Birthday) predicate.Birthday

Or groups predicates with the OR operator between them.

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 Birthday queries.

func ByDay

func ByDay(opts ...sql.OrderTermOption) OrderOption

ByDay orders the results by the day field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByMonth

func ByMonth(opts ...sql.OrderTermOption) OrderOption

ByMonth orders the results by the month field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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