diffstats

package
v0.0.0-...-06885da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for diffstats fields.

View Source
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

func Added(v int) predicate.DiffStats

Added applies equality check predicate on the "added" field. It's identical to AddedEQ.

func AddedEQ

func AddedEQ(v int) predicate.DiffStats

AddedEQ applies the EQ predicate on the "added" field.

func AddedGT

func AddedGT(v int) predicate.DiffStats

AddedGT applies the GT predicate on the "added" field.

func AddedGTE

func AddedGTE(v int) predicate.DiffStats

AddedGTE applies the GTE predicate on the "added" field.

func AddedIn

func AddedIn(vs ...int) predicate.DiffStats

AddedIn applies the In predicate on the "added" field.

func AddedLT

func AddedLT(v int) predicate.DiffStats

AddedLT applies the LT predicate on the "added" field.

func AddedLTE

func AddedLTE(v int) predicate.DiffStats

AddedLTE applies the LTE predicate on the "added" field.

func AddedNEQ

func AddedNEQ(v int) predicate.DiffStats

AddedNEQ applies the NEQ predicate on the "added" field.

func AddedNotIn

func AddedNotIn(vs ...int) predicate.DiffStats

AddedNotIn applies the NotIn predicate on the "added" field.

func And

func And(predicates ...predicate.DiffStats) predicate.DiffStats

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.DiffStats

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.DiffStats

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.DiffStats

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.DiffStats

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.DiffStats

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.DiffStats

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.DiffStats

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.DiffStats

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.DiffStats

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.DiffStats

ContentIn applies the In predicate on the "content" field.

func ContentIsNil

func ContentIsNil() predicate.DiffStats

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.DiffStats

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.DiffStats

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.DiffStats

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.DiffStats

ContentNotIn applies the NotIn predicate on the "content" field.

func ContentNotNil

func ContentNotNil() predicate.DiffStats

ContentNotNil applies the NotNil predicate on the "content" field.

func HasSession

func HasSession() predicate.DiffStats

HasSession applies the HasEdge predicate on the "session" edge.

func HasSessionWith

func HasSessionWith(preds ...predicate.Session) predicate.DiffStats

HasSessionWith applies the HasEdge predicate on the "session" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.DiffStats

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DiffStats

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DiffStats

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DiffStats

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.DiffStats

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DiffStats

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DiffStats

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DiffStats

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.DiffStats

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DiffStats) predicate.DiffStats

Or groups predicates with the OR operator between them.

func Removed

func Removed(v int) predicate.DiffStats

Removed applies equality check predicate on the "removed" field. It's identical to RemovedEQ.

func RemovedEQ

func RemovedEQ(v int) predicate.DiffStats

RemovedEQ applies the EQ predicate on the "removed" field.

func RemovedGT

func RemovedGT(v int) predicate.DiffStats

RemovedGT applies the GT predicate on the "removed" field.

func RemovedGTE

func RemovedGTE(v int) predicate.DiffStats

RemovedGTE applies the GTE predicate on the "removed" field.

func RemovedIn

func RemovedIn(vs ...int) predicate.DiffStats

RemovedIn applies the In predicate on the "removed" field.

func RemovedLT

func RemovedLT(v int) predicate.DiffStats

RemovedLT applies the LT predicate on the "removed" field.

func RemovedLTE

func RemovedLTE(v int) predicate.DiffStats

RemovedLTE applies the LTE predicate on the "removed" field.

func RemovedNEQ

func RemovedNEQ(v int) predicate.DiffStats

RemovedNEQ applies the NEQ predicate on the "removed" field.

func RemovedNotIn

func RemovedNotIn(vs ...int) predicate.DiffStats

RemovedNotIn applies the NotIn predicate on the "removed" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL