Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Share) predicate.Share
- func EndAt(v time.Time) predicate.Share
- func EndAtEQ(v time.Time) predicate.Share
- func EndAtGT(v time.Time) predicate.Share
- func EndAtGTE(v time.Time) predicate.Share
- func EndAtIn(vs ...time.Time) predicate.Share
- func EndAtLT(v time.Time) predicate.Share
- func EndAtLTE(v time.Time) predicate.Share
- func EndAtNEQ(v time.Time) predicate.Share
- func EndAtNotIn(vs ...time.Time) predicate.Share
- func HasCreator() predicate.Share
- func HasCreatorWith(preds ...predicate.User) predicate.Share
- func HasView() predicate.Share
- func HasViewWith(preds ...predicate.View) predicate.Share
- func ID(id int) predicate.Share
- func IDEQ(id int) predicate.Share
- func IDGT(id int) predicate.Share
- func IDGTE(id int) predicate.Share
- func IDIn(ids ...int) predicate.Share
- func IDLT(id int) predicate.Share
- func IDLTE(id int) predicate.Share
- func IDNEQ(id int) predicate.Share
- func IDNotIn(ids ...int) predicate.Share
- func Not(p predicate.Share) predicate.Share
- func Or(predicates ...predicate.Share) predicate.Share
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the share type in the database. Label = "share" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldEndAt holds the string denoting the end_at field in the database. FieldEndAt = "end_at" // EdgeView holds the string denoting the view edge name in mutations. EdgeView = "view" // EdgeCreator holds the string denoting the creator edge name in mutations. EdgeCreator = "creator" // Table holds the table name of the share in the database. Table = "shares" // ViewTable is the table the holds the view relation/edge. ViewTable = "shares" // ViewInverseTable is the table name for the View entity. // It exists in this package in order to avoid circular dependency with the "view" package. ViewInverseTable = "views" // ViewColumn is the table column denoting the view relation/edge. ViewColumn = "view_share" // CreatorTable is the table the holds the creator relation/edge. CreatorTable = "shares" // CreatorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatorInverseTable = "users" // CreatorColumn is the table column denoting the creator relation/edge. CreatorColumn = "user_share" )
Variables ¶
var Columns = []string{ FieldID, FieldEndAt, }
Columns holds all SQL columns for share fields.
var ForeignKeys = []string{
"user_share",
"view_share",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "shares" table and are not defined as standalone fields in the schema.
Functions ¶
func EndAt ¶
EndAt applies equality check predicate on the "end_at" field. It's identical to EndAtEQ.
func EndAtNotIn ¶
EndAtNotIn applies the NotIn predicate on the "end_at" field.
func HasCreator ¶
HasCreator applies the HasEdge predicate on the "creator" edge.
func HasCreatorWith ¶
HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).
func HasViewWith ¶
HasViewWith applies the HasEdge predicate on the "view" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.