Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Birthday) predicate.Birthday
- func Day(v int) predicate.Birthday
- func DayEQ(v int) predicate.Birthday
- func DayGT(v int) predicate.Birthday
- func DayGTE(v int) predicate.Birthday
- func DayIn(vs ...int) predicate.Birthday
- func DayLT(v int) predicate.Birthday
- func DayLTE(v int) predicate.Birthday
- func DayNEQ(v int) predicate.Birthday
- func DayNotIn(vs ...int) predicate.Birthday
- func HasUser() predicate.Birthday
- func HasUserWith(preds ...predicate.User) predicate.Birthday
- func ID(id int) predicate.Birthday
- func IDEQ(id int) predicate.Birthday
- func IDGT(id int) predicate.Birthday
- func IDGTE(id int) predicate.Birthday
- func IDIn(ids ...int) predicate.Birthday
- func IDLT(id int) predicate.Birthday
- func IDLTE(id int) predicate.Birthday
- func IDNEQ(id int) predicate.Birthday
- func IDNotIn(ids ...int) predicate.Birthday
- func Month(v int) predicate.Birthday
- func MonthEQ(v int) predicate.Birthday
- func MonthGT(v int) predicate.Birthday
- func MonthGTE(v int) predicate.Birthday
- func MonthIn(vs ...int) predicate.Birthday
- func MonthLT(v int) predicate.Birthday
- func MonthLTE(v int) predicate.Birthday
- func MonthNEQ(v int) predicate.Birthday
- func MonthNotIn(vs ...int) predicate.Birthday
- func Not(p predicate.Birthday) predicate.Birthday
- func Or(predicates ...predicate.Birthday) predicate.Birthday
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldDay, FieldMonth, }
Columns holds all SQL columns for birthday fields.
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 HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Month ¶
Month applies equality check predicate on the "month" field. It's identical to MonthEQ.
func MonthNotIn ¶
MonthNotIn applies the NotIn predicate on the "month" 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 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.