Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Collaboration) predicate.Collaboration
- func Approved(v bool) predicate.Collaboration
- func ApprovedEQ(v bool) predicate.Collaboration
- func ApprovedNEQ(v bool) predicate.Collaboration
- func CreateTime(v time.Time) predicate.Collaboration
- func CreateTimeEQ(v time.Time) predicate.Collaboration
- func CreateTimeGT(v time.Time) predicate.Collaboration
- func CreateTimeGTE(v time.Time) predicate.Collaboration
- func CreateTimeIn(vs ...time.Time) predicate.Collaboration
- func CreateTimeLT(v time.Time) predicate.Collaboration
- func CreateTimeLTE(v time.Time) predicate.Collaboration
- func CreateTimeNEQ(v time.Time) predicate.Collaboration
- func CreateTimeNotIn(vs ...time.Time) predicate.Collaboration
- func HasCollaborator() predicate.Collaboration
- func HasCollaboratorWith(preds ...predicate.User) predicate.Collaboration
- func HasMemo() predicate.Collaboration
- func HasMemoWith(preds ...predicate.Memo) predicate.Collaboration
- func ID(id int) predicate.Collaboration
- func IDEQ(id int) predicate.Collaboration
- func IDGT(id int) predicate.Collaboration
- func IDGTE(id int) predicate.Collaboration
- func IDIn(ids ...int) predicate.Collaboration
- func IDLT(id int) predicate.Collaboration
- func IDLTE(id int) predicate.Collaboration
- func IDNEQ(id int) predicate.Collaboration
- func IDNotIn(ids ...int) predicate.Collaboration
- func MemoID(v uuid.UUID) predicate.Collaboration
- func MemoIDEQ(v uuid.UUID) predicate.Collaboration
- func MemoIDIn(vs ...uuid.UUID) predicate.Collaboration
- func MemoIDNEQ(v uuid.UUID) predicate.Collaboration
- func MemoIDNotIn(vs ...uuid.UUID) predicate.Collaboration
- func Not(p predicate.Collaboration) predicate.Collaboration
- func Or(predicates ...predicate.Collaboration) predicate.Collaboration
- func UpdateTime(v time.Time) predicate.Collaboration
- func UpdateTimeEQ(v time.Time) predicate.Collaboration
- func UpdateTimeGT(v time.Time) predicate.Collaboration
- func UpdateTimeGTE(v time.Time) predicate.Collaboration
- func UpdateTimeIn(vs ...time.Time) predicate.Collaboration
- func UpdateTimeLT(v time.Time) predicate.Collaboration
- func UpdateTimeLTE(v time.Time) predicate.Collaboration
- func UpdateTimeNEQ(v time.Time) predicate.Collaboration
- func UpdateTimeNotIn(vs ...time.Time) predicate.Collaboration
- func UserID(v uuid.UUID) predicate.Collaboration
- func UserIDEQ(v uuid.UUID) predicate.Collaboration
- func UserIDIn(vs ...uuid.UUID) predicate.Collaboration
- func UserIDNEQ(v uuid.UUID) predicate.Collaboration
- func UserIDNotIn(vs ...uuid.UUID) predicate.Collaboration
- func ValidColumn(column string) bool
- type OrderOption
- func ByApproved(opts ...sql.OrderTermOption) OrderOption
- func ByCollaboratorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMemoField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMemoID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the collaboration type in the database. Label = "collaboration" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldMemoID holds the string denoting the memo_id field in the database. FieldMemoID = "memo_id" // FieldApproved holds the string denoting the approved field in the database. FieldApproved = "approved" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // EdgeCollaborator holds the string denoting the collaborator edge name in mutations. EdgeCollaborator = "collaborator" // EdgeMemo holds the string denoting the memo edge name in mutations. EdgeMemo = "memo" // Table holds the table name of the collaboration in the database. Table = "collaborations" // CollaboratorTable is the table that holds the collaborator relation/edge. CollaboratorTable = "collaborations" // CollaboratorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CollaboratorInverseTable = "users" // CollaboratorColumn is the table column denoting the collaborator relation/edge. CollaboratorColumn = "user_id" // MemoTable is the table that holds the memo relation/edge. MemoTable = "collaborations" // MemoInverseTable is the table name for the Memo entity. // It exists in this package in order to avoid circular dependency with the "memo" package. MemoInverseTable = "memos" // MemoColumn is the table column denoting the memo relation/edge. MemoColumn = "memo_id" )
Variables ¶
var ( // DefaultApproved holds the default value on creation for the "approved" field. DefaultApproved bool // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time )
var Columns = []string{ FieldID, FieldUserID, FieldMemoID, FieldApproved, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for collaboration fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Collaboration) predicate.Collaboration
And groups predicates with the AND operator between them.
func Approved ¶
func Approved(v bool) predicate.Collaboration
Approved applies equality check predicate on the "approved" field. It's identical to ApprovedEQ.
func ApprovedEQ ¶
func ApprovedEQ(v bool) predicate.Collaboration
ApprovedEQ applies the EQ predicate on the "approved" field.
func ApprovedNEQ ¶
func ApprovedNEQ(v bool) predicate.Collaboration
ApprovedNEQ applies the NEQ predicate on the "approved" field.
func CreateTime ¶
func CreateTime(v time.Time) predicate.Collaboration
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.Collaboration
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.Collaboration
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.Collaboration
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.Collaboration
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.Collaboration
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.Collaboration
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.Collaboration
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.Collaboration
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasCollaborator ¶
func HasCollaborator() predicate.Collaboration
HasCollaborator applies the HasEdge predicate on the "collaborator" edge.
func HasCollaboratorWith ¶
func HasCollaboratorWith(preds ...predicate.User) predicate.Collaboration
HasCollaboratorWith applies the HasEdge predicate on the "collaborator" edge with a given conditions (other predicates).
func HasMemo ¶
func HasMemo() predicate.Collaboration
HasMemo applies the HasEdge predicate on the "memo" edge.
func HasMemoWith ¶
func HasMemoWith(preds ...predicate.Memo) predicate.Collaboration
HasMemoWith applies the HasEdge predicate on the "memo" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.Collaboration
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.Collaboration
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.Collaboration
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Collaboration
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.Collaboration
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Collaboration
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Collaboration
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Collaboration
IDNotIn applies the NotIn predicate on the ID field.
func MemoID ¶
func MemoID(v uuid.UUID) predicate.Collaboration
MemoID applies equality check predicate on the "memo_id" field. It's identical to MemoIDEQ.
func MemoIDEQ ¶
func MemoIDEQ(v uuid.UUID) predicate.Collaboration
MemoIDEQ applies the EQ predicate on the "memo_id" field.
func MemoIDIn ¶
func MemoIDIn(vs ...uuid.UUID) predicate.Collaboration
MemoIDIn applies the In predicate on the "memo_id" field.
func MemoIDNEQ ¶
func MemoIDNEQ(v uuid.UUID) predicate.Collaboration
MemoIDNEQ applies the NEQ predicate on the "memo_id" field.
func MemoIDNotIn ¶
func MemoIDNotIn(vs ...uuid.UUID) predicate.Collaboration
MemoIDNotIn applies the NotIn predicate on the "memo_id" field.
func Not ¶
func Not(p predicate.Collaboration) predicate.Collaboration
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Collaboration) predicate.Collaboration
Or groups predicates with the OR operator between them.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.Collaboration
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.Collaboration
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.Collaboration
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.Collaboration
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.Collaboration
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.Collaboration
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.Collaboration
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.Collaboration
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.Collaboration
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.Collaboration
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.Collaboration
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.Collaboration
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.Collaboration
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.Collaboration
UserIDNotIn applies the NotIn predicate on the "user_id" 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 Collaboration queries.
func ByApproved ¶
func ByApproved(opts ...sql.OrderTermOption) OrderOption
ByApproved orders the results by the approved field.
func ByCollaboratorField ¶
func ByCollaboratorField(field string, opts ...sql.OrderTermOption) OrderOption
ByCollaboratorField orders the results by collaborator field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMemoField ¶
func ByMemoField(field string, opts ...sql.OrderTermOption) OrderOption
ByMemoField orders the results by memo field.
func ByMemoID ¶
func ByMemoID(opts ...sql.OrderTermOption) OrderOption
ByMemoID orders the results by the memo_id field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.