Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Node) predicate.Node
- func HasForumStats() predicate.Node
- func HasForumStatsWith(preds ...predicate.ForumStats) predicate.Node
- func ID(id int) predicate.Node
- func IDEQ(id int) predicate.Node
- func IDGT(id int) predicate.Node
- func IDGTE(id int) predicate.Node
- func IDIn(ids ...int) predicate.Node
- func IDLT(id int) predicate.Node
- func IDLTE(id int) predicate.Node
- func IDNEQ(id int) predicate.Node
- func IDNotIn(ids ...int) predicate.Node
- func Not(p predicate.Node) predicate.Node
- func Or(predicates ...predicate.Node) predicate.Node
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the node type in the database. Label = "node" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeForumStats holds the string denoting the forum_stats edge name in mutations. EdgeForumStats = "forum_stats" // Table holds the table name of the node in the database. Table = "nodes" // ForumStatsTable is the table that holds the forum_stats relation/edge. ForumStatsTable = "forum_stats" // ForumStatsInverseTable is the table name for the ForumStats entity. // It exists in this package in order to avoid circular dependency with the "forumstats" package. ForumStatsInverseTable = "forum_stats" // ForumStatsColumn is the table column denoting the forum_stats relation/edge. ForumStatsColumn = "nid" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for node fields.
Functions ¶
func HasForumStats ¶
HasForumStats applies the HasEdge predicate on the "forum_stats" edge.
func HasForumStatsWith ¶
func HasForumStatsWith(preds ...predicate.ForumStats) predicate.Node
HasForumStatsWith applies the HasEdge predicate on the "forum_stats" 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 Node queries.
func ByForumStatsField ¶
func ByForumStatsField(field string, opts ...sql.OrderTermOption) OrderOption
ByForumStatsField orders the results by forum_stats field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
Click to show internal directories.
Click to hide internal directories.