Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Follow) predicate.Follow
- func CreatedAt(v time.Time) predicate.Follow
- func CreatedAtEQ(v time.Time) predicate.Follow
- func CreatedAtGT(v time.Time) predicate.Follow
- func CreatedAtGTE(v time.Time) predicate.Follow
- func CreatedAtIn(vs ...time.Time) predicate.Follow
- func CreatedAtLT(v time.Time) predicate.Follow
- func CreatedAtLTE(v time.Time) predicate.Follow
- func CreatedAtNEQ(v time.Time) predicate.Follow
- func CreatedAtNotIn(vs ...time.Time) predicate.Follow
- func HasFollowee() predicate.Follow
- func HasFolloweeWith(preds ...predicate.User) predicate.Follow
- func HasFollower() predicate.Follow
- func HasFollowerWith(preds ...predicate.User) predicate.Follow
- func ID(id uuid.UUID) predicate.Follow
- func IDEQ(id uuid.UUID) predicate.Follow
- func IDGT(id uuid.UUID) predicate.Follow
- func IDGTE(id uuid.UUID) predicate.Follow
- func IDIn(ids ...uuid.UUID) predicate.Follow
- func IDLT(id uuid.UUID) predicate.Follow
- func IDLTE(id uuid.UUID) predicate.Follow
- func IDNEQ(id uuid.UUID) predicate.Follow
- func IDNotIn(ids ...uuid.UUID) predicate.Follow
- func IsRemote(v bool) predicate.Follow
- func IsRemoteEQ(v bool) predicate.Follow
- func IsRemoteNEQ(v bool) predicate.Follow
- func Not(p predicate.Follow) predicate.Follow
- func Or(predicates ...predicate.Follow) predicate.Follow
- func StatusEQ(v Status) predicate.Follow
- func StatusIn(vs ...Status) predicate.Follow
- func StatusNEQ(v Status) predicate.Follow
- func StatusNotIn(vs ...Status) predicate.Follow
- func StatusValidator(s Status) error
- func URI(v string) predicate.Follow
- func URIContains(v string) predicate.Follow
- func URIContainsFold(v string) predicate.Follow
- func URIEQ(v string) predicate.Follow
- func URIEqualFold(v string) predicate.Follow
- func URIGT(v string) predicate.Follow
- func URIGTE(v string) predicate.Follow
- func URIHasPrefix(v string) predicate.Follow
- func URIHasSuffix(v string) predicate.Follow
- func URIIn(vs ...string) predicate.Follow
- func URILT(v string) predicate.Follow
- func URILTE(v string) predicate.Follow
- func URINEQ(v string) predicate.Follow
- func URINotIn(vs ...string) predicate.Follow
- func UpdatedAt(v time.Time) predicate.Follow
- func UpdatedAtEQ(v time.Time) predicate.Follow
- func UpdatedAtGT(v time.Time) predicate.Follow
- func UpdatedAtGTE(v time.Time) predicate.Follow
- func UpdatedAtIn(vs ...time.Time) predicate.Follow
- func UpdatedAtLT(v time.Time) predicate.Follow
- func UpdatedAtLTE(v time.Time) predicate.Follow
- func UpdatedAtNEQ(v time.Time) predicate.Follow
- func UpdatedAtNotIn(vs ...time.Time) predicate.Follow
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFolloweeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByFollowerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsRemote(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByURI(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the follow type in the database. Label = "follow" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIsRemote holds the string denoting the isremote field in the database. FieldIsRemote = "is_remote" // FieldURI holds the string denoting the uri field in the database. FieldURI = "uri" // FieldExtensions holds the string denoting the extensions field in the database. FieldExtensions = "extensions" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeFollower holds the string denoting the follower edge name in mutations. EdgeFollower = "follower" // EdgeFollowee holds the string denoting the followee edge name in mutations. EdgeFollowee = "followee" // Table holds the table name of the follow in the database. Table = "follows" // FollowerTable is the table that holds the follower relation/edge. FollowerTable = "follows" // FollowerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. FollowerInverseTable = "users" // FollowerColumn is the table column denoting the follower relation/edge. FollowerColumn = "follow_follower" // FolloweeTable is the table that holds the followee relation/edge. FolloweeTable = "follows" // FolloweeInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. FolloweeInverseTable = "users" // FolloweeColumn is the table column denoting the followee relation/edge. FolloweeColumn = "follow_followee" )
const DefaultStatus = StatusPending
StatusPending is the default value of the Status enum.
Variables ¶
var ( // URIValidator is a validator for the "uri" field. It is called by the builders before save. URIValidator func(string) error // DefaultExtensions holds the default value on creation for the "extensions" field. DefaultExtensions versia.Extensions // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldIsRemote, FieldURI, FieldExtensions, FieldCreatedAt, FieldUpdatedAt, FieldStatus, }
Columns holds all SQL columns for follow fields.
var ForeignKeys = []string{
"follow_follower",
"follow_followee",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "follows" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasFollowee ¶
HasFollowee applies the HasEdge predicate on the "followee" edge.
func HasFolloweeWith ¶
HasFolloweeWith applies the HasEdge predicate on the "followee" edge with a given conditions (other predicates).
func HasFollower ¶
HasFollower applies the HasEdge predicate on the "follower" edge.
func HasFollowerWith ¶
HasFollowerWith applies the HasEdge predicate on the "follower" edge with a given conditions (other predicates).
func IsRemote ¶
IsRemote applies equality check predicate on the "isRemote" field. It's identical to IsRemoteEQ.
func IsRemoteEQ ¶
IsRemoteEQ applies the EQ predicate on the "isRemote" field.
func IsRemoteNEQ ¶
IsRemoteNEQ applies the NEQ predicate on the "isRemote" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func URIContains ¶
URIContains applies the Contains predicate on the "uri" field.
func URIContainsFold ¶
URIContainsFold applies the ContainsFold predicate on the "uri" field.
func URIEqualFold ¶
URIEqualFold applies the EqualFold predicate on the "uri" field.
func URIHasPrefix ¶
URIHasPrefix applies the HasPrefix predicate on the "uri" field.
func URIHasSuffix ¶
URIHasSuffix applies the HasSuffix predicate on the "uri" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Follow queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFolloweeField ¶
func ByFolloweeField(field string, opts ...sql.OrderTermOption) OrderOption
ByFolloweeField orders the results by followee field.
func ByFollowerField ¶
func ByFollowerField(field string, opts ...sql.OrderTermOption) OrderOption
ByFollowerField orders the results by follower field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsRemote ¶
func ByIsRemote(opts ...sql.OrderTermOption) OrderOption
ByIsRemote orders the results by the isRemote field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByURI ¶
func ByURI(opts ...sql.OrderTermOption) OrderOption
ByURI orders the results by the uri field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.