Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Blog) predicate.Blog
- func HasAdmins() predicate.Blog
- func HasAdminsWith(preds ...predicate.User) predicate.Blog
- func ID(id int) predicate.Blog
- func IDEQ(id int) predicate.Blog
- func IDGT(id int) predicate.Blog
- func IDGTE(id int) predicate.Blog
- func IDIn(ids ...int) predicate.Blog
- func IDLT(id int) predicate.Blog
- func IDLTE(id int) predicate.Blog
- func IDNEQ(id int) predicate.Blog
- func IDNotIn(ids ...int) predicate.Blog
- func Not(p predicate.Blog) predicate.Blog
- func Oid(v int) predicate.Blog
- func OidEQ(v int) predicate.Blog
- func OidGT(v int) predicate.Blog
- func OidGTE(v int) predicate.Blog
- func OidIn(vs ...int) predicate.Blog
- func OidLT(v int) predicate.Blog
- func OidLTE(v int) predicate.Blog
- func OidNEQ(v int) predicate.Blog
- func OidNotIn(vs ...int) predicate.Blog
- func Or(predicates ...predicate.Blog) predicate.Blog
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the blog type in the database. Label = "blog" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOid holds the string denoting the oid field in the database. FieldOid = "oid" // EdgeAdmins holds the string denoting the admins edge name in mutations. EdgeAdmins = "admins" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "oid" // Table holds the table name of the blog in the database. Table = "blogs" // AdminsTable is the table that holds the admins relation/edge. AdminsTable = "users" // AdminsInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AdminsInverseTable = "users" // AdminsColumn is the table column denoting the admins relation/edge. AdminsColumn = "blog_admins" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldOid, }
Columns holds all SQL columns for blog fields.
Functions ¶
func HasAdminsWith ¶
HasAdminsWith applies the HasEdge predicate on the "admins" edge with a given conditions (other predicates).
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 Blog queries.
func ByAdmins ¶
func ByAdmins(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAdmins orders the results by admins terms.
func ByAdminsCount ¶
func ByAdminsCount(opts ...sql.OrderTermOption) OrderOption
ByAdminsCount orders the results by admins count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOid ¶
func ByOid(opts ...sql.OrderTermOption) OrderOption
ByOid orders the results by the oid field.
Click to show internal directories.
Click to hide internal directories.