Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Shitpost) predicate.Shitpost
- func ChannelID(v string) predicate.Shitpost
- func ChannelIDContains(v string) predicate.Shitpost
- func ChannelIDContainsFold(v string) predicate.Shitpost
- func ChannelIDEQ(v string) predicate.Shitpost
- func ChannelIDEqualFold(v string) predicate.Shitpost
- func ChannelIDGT(v string) predicate.Shitpost
- func ChannelIDGTE(v string) predicate.Shitpost
- func ChannelIDHasPrefix(v string) predicate.Shitpost
- func ChannelIDHasSuffix(v string) predicate.Shitpost
- func ChannelIDIn(vs ...string) predicate.Shitpost
- func ChannelIDLT(v string) predicate.Shitpost
- func ChannelIDLTE(v string) predicate.Shitpost
- func ChannelIDNEQ(v string) predicate.Shitpost
- func ChannelIDNotIn(vs ...string) predicate.Shitpost
- func Count(v int) predicate.Shitpost
- func CountEQ(v int) predicate.Shitpost
- func CountGT(v int) predicate.Shitpost
- func CountGTE(v int) predicate.Shitpost
- func CountIn(vs ...int) predicate.Shitpost
- func CountLT(v int) predicate.Shitpost
- func CountLTE(v int) predicate.Shitpost
- func CountNEQ(v int) predicate.Shitpost
- func CountNotIn(vs ...int) predicate.Shitpost
- func HasUser() predicate.Shitpost
- func HasUserWith(preds ...predicate.User) predicate.Shitpost
- func ID(id string) predicate.Shitpost
- func IDContainsFold(id string) predicate.Shitpost
- func IDEQ(id string) predicate.Shitpost
- func IDEqualFold(id string) predicate.Shitpost
- func IDGT(id string) predicate.Shitpost
- func IDGTE(id string) predicate.Shitpost
- func IDIn(ids ...string) predicate.Shitpost
- func IDLT(id string) predicate.Shitpost
- func IDLTE(id string) predicate.Shitpost
- func IDNEQ(id string) predicate.Shitpost
- func IDNotIn(ids ...string) predicate.Shitpost
- func Not(p predicate.Shitpost) predicate.Shitpost
- func Or(predicates ...predicate.Shitpost) predicate.Shitpost
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the shitpost type in the database. Label = "shitpost" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChannelID holds the string denoting the channel_id field in the database. FieldChannelID = "channel_id" // FieldCount holds the string denoting the count field in the database. FieldCount = "count" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the shitpost in the database. Table = "shitposts" // UserTable is the table that holds the user relation/edge. UserTable = "shitposts" // 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_shitposts" )
Variables ¶
var ( // ChannelIDValidator is a validator for the "channel_id" field. It is called by the builders before save. ChannelIDValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldChannelID, FieldCount, }
Columns holds all SQL columns for shitpost fields.
var ForeignKeys = []string{
"user_shitposts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "shitposts" table and are not defined as standalone fields in the schema.
Functions ¶
func ChannelID ¶
ChannelID applies equality check predicate on the "channel_id" field. It's identical to ChannelIDEQ.
func ChannelIDContains ¶
ChannelIDContains applies the Contains predicate on the "channel_id" field.
func ChannelIDContainsFold ¶
ChannelIDContainsFold applies the ContainsFold predicate on the "channel_id" field.
func ChannelIDEQ ¶
ChannelIDEQ applies the EQ predicate on the "channel_id" field.
func ChannelIDEqualFold ¶
ChannelIDEqualFold applies the EqualFold predicate on the "channel_id" field.
func ChannelIDGT ¶
ChannelIDGT applies the GT predicate on the "channel_id" field.
func ChannelIDGTE ¶
ChannelIDGTE applies the GTE predicate on the "channel_id" field.
func ChannelIDHasPrefix ¶
ChannelIDHasPrefix applies the HasPrefix predicate on the "channel_id" field.
func ChannelIDHasSuffix ¶
ChannelIDHasSuffix applies the HasSuffix predicate on the "channel_id" field.
func ChannelIDIn ¶
ChannelIDIn applies the In predicate on the "channel_id" field.
func ChannelIDLT ¶
ChannelIDLT applies the LT predicate on the "channel_id" field.
func ChannelIDLTE ¶
ChannelIDLTE applies the LTE predicate on the "channel_id" field.
func ChannelIDNEQ ¶
ChannelIDNEQ applies the NEQ predicate on the "channel_id" field.
func ChannelIDNotIn ¶
ChannelIDNotIn applies the NotIn predicate on the "channel_id" field.
func Count ¶
Count applies equality check predicate on the "count" field. It's identical to CountEQ.
func CountNotIn ¶
CountNotIn applies the NotIn predicate on the "count" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the 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 Shitpost queries.
func ByChannelID ¶
func ByChannelID(opts ...sql.OrderTermOption) OrderOption
ByChannelID orders the results by the channel_id field.
func ByCount ¶
func ByCount(opts ...sql.OrderTermOption) OrderOption
ByCount orders the results by the count field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.