Documentation
¶
Index ¶
- Constants
- Variables
- func Added(v int) predicate.DiffStats
- func AddedEQ(v int) predicate.DiffStats
- func AddedGT(v int) predicate.DiffStats
- func AddedGTE(v int) predicate.DiffStats
- func AddedIn(vs ...int) predicate.DiffStats
- func AddedLT(v int) predicate.DiffStats
- func AddedLTE(v int) predicate.DiffStats
- func AddedNEQ(v int) predicate.DiffStats
- func AddedNotIn(vs ...int) predicate.DiffStats
- func And(predicates ...predicate.DiffStats) predicate.DiffStats
- func Content(v string) predicate.DiffStats
- func ContentContains(v string) predicate.DiffStats
- func ContentContainsFold(v string) predicate.DiffStats
- func ContentEQ(v string) predicate.DiffStats
- func ContentEqualFold(v string) predicate.DiffStats
- func ContentGT(v string) predicate.DiffStats
- func ContentGTE(v string) predicate.DiffStats
- func ContentHasPrefix(v string) predicate.DiffStats
- func ContentHasSuffix(v string) predicate.DiffStats
- func ContentIn(vs ...string) predicate.DiffStats
- func ContentIsNil() predicate.DiffStats
- func ContentLT(v string) predicate.DiffStats
- func ContentLTE(v string) predicate.DiffStats
- func ContentNEQ(v string) predicate.DiffStats
- func ContentNotIn(vs ...string) predicate.DiffStats
- func ContentNotNil() predicate.DiffStats
- func HasSession() predicate.DiffStats
- func HasSessionWith(preds ...predicate.Session) predicate.DiffStats
- func ID(id int) predicate.DiffStats
- func IDEQ(id int) predicate.DiffStats
- func IDGT(id int) predicate.DiffStats
- func IDGTE(id int) predicate.DiffStats
- func IDIn(ids ...int) predicate.DiffStats
- func IDLT(id int) predicate.DiffStats
- func IDLTE(id int) predicate.DiffStats
- func IDNEQ(id int) predicate.DiffStats
- func IDNotIn(ids ...int) predicate.DiffStats
- func Not(p predicate.DiffStats) predicate.DiffStats
- func Or(predicates ...predicate.DiffStats) predicate.DiffStats
- func Removed(v int) predicate.DiffStats
- func RemovedEQ(v int) predicate.DiffStats
- func RemovedGT(v int) predicate.DiffStats
- func RemovedGTE(v int) predicate.DiffStats
- func RemovedIn(vs ...int) predicate.DiffStats
- func RemovedLT(v int) predicate.DiffStats
- func RemovedLTE(v int) predicate.DiffStats
- func RemovedNEQ(v int) predicate.DiffStats
- func RemovedNotIn(vs ...int) predicate.DiffStats
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the diffstats type in the database. Label = "diff_stats" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAdded holds the string denoting the added field in the database. FieldAdded = "added" // FieldRemoved holds the string denoting the removed field in the database. FieldRemoved = "removed" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // EdgeSession holds the string denoting the session edge name in mutations. EdgeSession = "session" // Table holds the table name of the diffstats in the database. Table = "diff_stats" // SessionTable is the table that holds the session relation/edge. SessionTable = "diff_stats" // SessionInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionInverseTable = "sessions" // SessionColumn is the table column denoting the session relation/edge. SessionColumn = "session_diff_stats" )
Variables ¶
var ( // DefaultAdded holds the default value on creation for the "added" field. DefaultAdded int // DefaultRemoved holds the default value on creation for the "removed" field. DefaultRemoved int )
var Columns = []string{ FieldID, FieldAdded, FieldRemoved, FieldContent, }
Columns holds all SQL columns for diffstats fields.
var ForeignKeys = []string{
"session_diff_stats",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "diff_stats" table and are not defined as standalone fields in the schema.
Functions ¶
func Added ¶
Added applies equality check predicate on the "added" field. It's identical to AddedEQ.
func AddedNotIn ¶
AddedNotIn applies the NotIn predicate on the "added" field.
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIsNil ¶
ContentIsNil applies the IsNil predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func ContentNotNil ¶
ContentNotNil applies the NotNil predicate on the "content" field.
func HasSession ¶
HasSession applies the HasEdge predicate on the "session" edge.
func HasSessionWith ¶
HasSessionWith applies the HasEdge predicate on the "session" edge with a given conditions (other predicates).
func Removed ¶
Removed applies equality check predicate on the "removed" field. It's identical to RemovedEQ.
func RemovedGTE ¶
RemovedGTE applies the GTE predicate on the "removed" field.
func RemovedLTE ¶
RemovedLTE applies the LTE predicate on the "removed" field.
func RemovedNEQ ¶
RemovedNEQ applies the NEQ predicate on the "removed" field.
func RemovedNotIn ¶
RemovedNotIn applies the NotIn predicate on the "removed" 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 DiffStats queries.
func ByAdded ¶
func ByAdded(opts ...sql.OrderTermOption) OrderOption
ByAdded orders the results by the added field.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRemoved ¶
func ByRemoved(opts ...sql.OrderTermOption) OrderOption
ByRemoved orders the results by the removed field.
func BySessionField ¶
func BySessionField(field string, opts ...sql.OrderTermOption) OrderOption
BySessionField orders the results by session field.