codesourcefile

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the codesourcefile type in the database.
	Label = "code_source_file"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// EdgeDepsUsageEvidences holds the string denoting the deps_usage_evidences edge name in mutations.
	EdgeDepsUsageEvidences = "deps_usage_evidences"
	// Table holds the table name of the codesourcefile in the database.
	Table = "code_source_files"
	// DepsUsageEvidencesTable is the table that holds the deps_usage_evidences relation/edge.
	DepsUsageEvidencesTable = "deps_usage_evidences"
	// DepsUsageEvidencesInverseTable is the table name for the DepsUsageEvidence entity.
	// It exists in this package in order to avoid circular dependency with the "depsusageevidence" package.
	DepsUsageEvidencesInverseTable = "deps_usage_evidences"
	// DepsUsageEvidencesColumn is the table column denoting the deps_usage_evidences relation/edge.
	DepsUsageEvidencesColumn = "deps_usage_evidence_used_in"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldPath,
}

Columns holds all SQL columns for codesourcefile fields.

View Source
var (
	// PathValidator is a validator for the "path" field. It is called by the builders before save.
	PathValidator func(string) error
)

Functions

func And

And groups predicates with the AND operator between them.

func HasDepsUsageEvidences

func HasDepsUsageEvidences() predicate.CodeSourceFile

HasDepsUsageEvidences applies the HasEdge predicate on the "deps_usage_evidences" edge.

func HasDepsUsageEvidencesWith

func HasDepsUsageEvidencesWith(preds ...predicate.DepsUsageEvidence) predicate.CodeSourceFile

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.CodeSourceFile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.CodeSourceFile

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.CodeSourceFile

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.CodeSourceFile

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.CodeSourceFile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.CodeSourceFile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Path

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.CodeSourceFile

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.CodeSourceFile

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.CodeSourceFile

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.CodeSourceFile

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.CodeSourceFile

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.CodeSourceFile

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.CodeSourceFile

PathIn applies the In predicate on the "path" field.

func PathLT

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.CodeSourceFile

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.CodeSourceFile

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.CodeSourceFile

PathNotIn applies the NotIn predicate on the "path" 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 CodeSourceFile queries.

func ByDepsUsageEvidences

func ByDepsUsageEvidences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDepsUsageEvidences orders the results by deps_usage_evidences terms.

func ByDepsUsageEvidencesCount

func ByDepsUsageEvidencesCount(opts ...sql.OrderTermOption) OrderOption

ByDepsUsageEvidencesCount orders the results by deps_usage_evidences count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByPath

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

Jump to

Keyboard shortcuts

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