Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Deadline) predicate.Deadline
- func DueTime(v time.Time) predicate.Deadline
- func DueTimeEQ(v time.Time) predicate.Deadline
- func DueTimeGT(v time.Time) predicate.Deadline
- func DueTimeGTE(v time.Time) predicate.Deadline
- func DueTimeIn(vs ...time.Time) predicate.Deadline
- func DueTimeIsNil() predicate.Deadline
- func DueTimeLT(v time.Time) predicate.Deadline
- func DueTimeLTE(v time.Time) predicate.Deadline
- func DueTimeNEQ(v time.Time) predicate.Deadline
- func DueTimeNotIn(vs ...time.Time) predicate.Deadline
- func DueTimeNotNil() predicate.Deadline
- func HasAuthor() predicate.Deadline
- func HasAuthorWith(preds ...predicate.User) predicate.Deadline
- func HasGroup() predicate.Deadline
- func HasGroupWith(preds ...predicate.Group) predicate.Deadline
- func HasVotedUsers() predicate.Deadline
- func HasVotedUsersWith(preds ...predicate.User) predicate.Deadline
- func ID(id int) predicate.Deadline
- func IDEQ(id int) predicate.Deadline
- func IDGT(id int) predicate.Deadline
- func IDGTE(id int) predicate.Deadline
- func IDIn(ids ...int) predicate.Deadline
- func IDLT(id int) predicate.Deadline
- func IDLTE(id int) predicate.Deadline
- func IDNEQ(id int) predicate.Deadline
- func IDNotIn(ids ...int) predicate.Deadline
- func Name(v string) predicate.Deadline
- func NameContains(v string) predicate.Deadline
- func NameContainsFold(v string) predicate.Deadline
- func NameEQ(v string) predicate.Deadline
- func NameEqualFold(v string) predicate.Deadline
- func NameGT(v string) predicate.Deadline
- func NameGTE(v string) predicate.Deadline
- func NameHasPrefix(v string) predicate.Deadline
- func NameHasSuffix(v string) predicate.Deadline
- func NameIn(vs ...string) predicate.Deadline
- func NameLT(v string) predicate.Deadline
- func NameLTE(v string) predicate.Deadline
- func NameNEQ(v string) predicate.Deadline
- func NameNotIn(vs ...string) predicate.Deadline
- func Not(p predicate.Deadline) predicate.Deadline
- func Or(predicates ...predicate.Deadline) predicate.Deadline
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDueTime(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByVotedUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVotedUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the deadline type in the database. Label = "deadline" // 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" // FieldDueTime holds the string denoting the due_time field in the database. FieldDueTime = "due_time" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // EdgeVotedUsers holds the string denoting the voted_users edge name in mutations. EdgeVotedUsers = "voted_users" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // Table holds the table name of the deadline in the database. Table = "deadlines" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "deadlines" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "deadline_author" // VotedUsersTable is the table that holds the voted_users relation/edge. The primary key declared below. VotedUsersTable = "deadline_voted_users" // VotedUsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. VotedUsersInverseTable = "users" // GroupTable is the table that holds the group relation/edge. GroupTable = "deadlines" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "entgroup" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_deadlines" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldDueTime, }
Columns holds all SQL columns for deadline fields.
var ForeignKeys = []string{
"deadline_author",
"group_deadlines",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "deadlines" table and are not defined as standalone fields in the schema.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var ( // VotedUsersPrimaryKey and VotedUsersColumn2 are the table columns denoting the // primary key for the voted_users relation (M2M). VotedUsersPrimaryKey = []string{"deadline_id", "user_id"} )
Functions ¶
func DueTime ¶
DueTime applies equality check predicate on the "due_time" field. It's identical to DueTimeEQ.
func DueTimeGTE ¶
DueTimeGTE applies the GTE predicate on the "due_time" field.
func DueTimeIsNil ¶
DueTimeIsNil applies the IsNil predicate on the "due_time" field.
func DueTimeLTE ¶
DueTimeLTE applies the LTE predicate on the "due_time" field.
func DueTimeNEQ ¶
DueTimeNEQ applies the NEQ predicate on the "due_time" field.
func DueTimeNotIn ¶
DueTimeNotIn applies the NotIn predicate on the "due_time" field.
func DueTimeNotNil ¶
DueTimeNotNil applies the NotNil predicate on the "due_time" field.
func HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasVotedUsers ¶
HasVotedUsers applies the HasEdge predicate on the "voted_users" edge.
func HasVotedUsersWith ¶
HasVotedUsersWith applies the HasEdge predicate on the "voted_users" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 Deadline queries.
func ByAuthorField ¶
func ByAuthorField(field string, opts ...sql.OrderTermOption) OrderOption
ByAuthorField orders the results by author field.
func ByDueTime ¶
func ByDueTime(opts ...sql.OrderTermOption) OrderOption
ByDueTime orders the results by the due_time field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByVotedUsers ¶
func ByVotedUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVotedUsers orders the results by voted_users terms.
func ByVotedUsersCount ¶
func ByVotedUsersCount(opts ...sql.OrderTermOption) OrderOption
ByVotedUsersCount orders the results by voted_users count.