Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CodeSourceFile) predicate.CodeSourceFile
- func HasDepsUsageEvidences() predicate.CodeSourceFile
- func HasDepsUsageEvidencesWith(preds ...predicate.DepsUsageEvidence) predicate.CodeSourceFile
- func ID(id int) predicate.CodeSourceFile
- func IDEQ(id int) predicate.CodeSourceFile
- func IDGT(id int) predicate.CodeSourceFile
- func IDGTE(id int) predicate.CodeSourceFile
- func IDIn(ids ...int) predicate.CodeSourceFile
- func IDLT(id int) predicate.CodeSourceFile
- func IDLTE(id int) predicate.CodeSourceFile
- func IDNEQ(id int) predicate.CodeSourceFile
- func IDNotIn(ids ...int) predicate.CodeSourceFile
- func Not(p predicate.CodeSourceFile) predicate.CodeSourceFile
- func Or(predicates ...predicate.CodeSourceFile) predicate.CodeSourceFile
- func Path(v string) predicate.CodeSourceFile
- func PathContains(v string) predicate.CodeSourceFile
- func PathContainsFold(v string) predicate.CodeSourceFile
- func PathEQ(v string) predicate.CodeSourceFile
- func PathEqualFold(v string) predicate.CodeSourceFile
- func PathGT(v string) predicate.CodeSourceFile
- func PathGTE(v string) predicate.CodeSourceFile
- func PathHasPrefix(v string) predicate.CodeSourceFile
- func PathHasSuffix(v string) predicate.CodeSourceFile
- func PathIn(vs ...string) predicate.CodeSourceFile
- func PathLT(v string) predicate.CodeSourceFile
- func PathLTE(v string) predicate.CodeSourceFile
- func PathNEQ(v string) predicate.CodeSourceFile
- func PathNotIn(vs ...string) predicate.CodeSourceFile
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldPath, }
Columns holds all SQL columns for codesourcefile fields.
var ( // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.CodeSourceFile) predicate.CodeSourceFile
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 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 ¶
func Not(p predicate.CodeSourceFile) predicate.CodeSourceFile
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CodeSourceFile) predicate.CodeSourceFile
Or groups predicates with the OR operator between them.
func Path ¶
func Path(v string) predicate.CodeSourceFile
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 ¶
func PathEQ(v string) predicate.CodeSourceFile
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 ¶
func PathGT(v string) predicate.CodeSourceFile
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 ¶
func PathLT(v string) predicate.CodeSourceFile
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.