scan

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the scan type in the database.
	Label = "scan"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBranch holds the string denoting the branch field in the database.
	FieldBranch = "branch"
	// FieldCommitID holds the string denoting the commit_id field in the database.
	FieldCommitID = "commit_id"
	// FieldRequestedAt holds the string denoting the requested_at field in the database.
	FieldRequestedAt = "requested_at"
	// FieldScannedAt holds the string denoting the scanned_at field in the database.
	FieldScannedAt = "scanned_at"
	// FieldCheckID holds the string denoting the check_id field in the database.
	FieldCheckID = "check_id"
	// FieldPullRequestTarget holds the string denoting the pull_request_target field in the database.
	FieldPullRequestTarget = "pull_request_target"
	// EdgeRepository holds the string denoting the repository edge name in mutations.
	EdgeRepository = "repository"
	// EdgePackages holds the string denoting the packages edge name in mutations.
	EdgePackages = "packages"
	// Table holds the table name of the scan in the database.
	Table = "scans"
	// RepositoryTable is the table that holds the repository relation/edge. The primary key declared below.
	RepositoryTable = "repository_scan"
	// RepositoryInverseTable is the table name for the Repository entity.
	// It exists in this package in order to avoid circular dependency with the "repository" package.
	RepositoryInverseTable = "repositories"
	// PackagesTable is the table that holds the packages relation/edge. The primary key declared below.
	PackagesTable = "scan_packages"
	// PackagesInverseTable is the table name for the PackageRecord entity.
	// It exists in this package in order to avoid circular dependency with the "packagerecord" package.
	PackagesInverseTable = "package_records"
)

Variables

View Source
var (
	// RepositoryPrimaryKey and RepositoryColumn2 are the table columns denoting the
	// primary key for the repository relation (M2M).
	RepositoryPrimaryKey = []string{"repository_id", "scan_id"}
	// PackagesPrimaryKey and PackagesColumn2 are the table columns denoting the
	// primary key for the packages relation (M2M).
	PackagesPrimaryKey = []string{"scan_id", "package_record_id"}
)

Columns holds all SQL columns for scan fields.

View Source
var ForeignKeys = []string{
	"repository_main",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "scans" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Scan) predicate.Scan

And groups predicates with the AND operator between them.

func Branch

func Branch(v string) predicate.Scan

Branch applies equality check predicate on the "branch" field. It's identical to BranchEQ.

func BranchContains

func BranchContains(v string) predicate.Scan

BranchContains applies the Contains predicate on the "branch" field.

func BranchContainsFold

func BranchContainsFold(v string) predicate.Scan

BranchContainsFold applies the ContainsFold predicate on the "branch" field.

func BranchEQ

func BranchEQ(v string) predicate.Scan

BranchEQ applies the EQ predicate on the "branch" field.

func BranchEqualFold

func BranchEqualFold(v string) predicate.Scan

BranchEqualFold applies the EqualFold predicate on the "branch" field.

func BranchGT

func BranchGT(v string) predicate.Scan

BranchGT applies the GT predicate on the "branch" field.

func BranchGTE

func BranchGTE(v string) predicate.Scan

BranchGTE applies the GTE predicate on the "branch" field.

func BranchHasPrefix

func BranchHasPrefix(v string) predicate.Scan

BranchHasPrefix applies the HasPrefix predicate on the "branch" field.

func BranchHasSuffix

func BranchHasSuffix(v string) predicate.Scan

BranchHasSuffix applies the HasSuffix predicate on the "branch" field.

func BranchIn

func BranchIn(vs ...string) predicate.Scan

BranchIn applies the In predicate on the "branch" field.

func BranchLT

func BranchLT(v string) predicate.Scan

BranchLT applies the LT predicate on the "branch" field.

func BranchLTE

func BranchLTE(v string) predicate.Scan

BranchLTE applies the LTE predicate on the "branch" field.

func BranchNEQ

func BranchNEQ(v string) predicate.Scan

BranchNEQ applies the NEQ predicate on the "branch" field.

func BranchNotIn

func BranchNotIn(vs ...string) predicate.Scan

BranchNotIn applies the NotIn predicate on the "branch" field.

func CheckID

func CheckID(v int64) predicate.Scan

CheckID applies equality check predicate on the "check_id" field. It's identical to CheckIDEQ.

func CheckIDEQ

func CheckIDEQ(v int64) predicate.Scan

CheckIDEQ applies the EQ predicate on the "check_id" field.

func CheckIDGT

func CheckIDGT(v int64) predicate.Scan

CheckIDGT applies the GT predicate on the "check_id" field.

func CheckIDGTE

func CheckIDGTE(v int64) predicate.Scan

CheckIDGTE applies the GTE predicate on the "check_id" field.

func CheckIDIn

func CheckIDIn(vs ...int64) predicate.Scan

CheckIDIn applies the In predicate on the "check_id" field.

func CheckIDIsNil

func CheckIDIsNil() predicate.Scan

CheckIDIsNil applies the IsNil predicate on the "check_id" field.

func CheckIDLT

func CheckIDLT(v int64) predicate.Scan

CheckIDLT applies the LT predicate on the "check_id" field.

func CheckIDLTE

func CheckIDLTE(v int64) predicate.Scan

CheckIDLTE applies the LTE predicate on the "check_id" field.

func CheckIDNEQ

func CheckIDNEQ(v int64) predicate.Scan

CheckIDNEQ applies the NEQ predicate on the "check_id" field.

func CheckIDNotIn

func CheckIDNotIn(vs ...int64) predicate.Scan

CheckIDNotIn applies the NotIn predicate on the "check_id" field.

func CheckIDNotNil

func CheckIDNotNil() predicate.Scan

CheckIDNotNil applies the NotNil predicate on the "check_id" field.

func CommitID

func CommitID(v string) predicate.Scan

CommitID applies equality check predicate on the "commit_id" field. It's identical to CommitIDEQ.

func CommitIDContains

func CommitIDContains(v string) predicate.Scan

CommitIDContains applies the Contains predicate on the "commit_id" field.

func CommitIDContainsFold

func CommitIDContainsFold(v string) predicate.Scan

CommitIDContainsFold applies the ContainsFold predicate on the "commit_id" field.

func CommitIDEQ

func CommitIDEQ(v string) predicate.Scan

CommitIDEQ applies the EQ predicate on the "commit_id" field.

func CommitIDEqualFold

func CommitIDEqualFold(v string) predicate.Scan

CommitIDEqualFold applies the EqualFold predicate on the "commit_id" field.

func CommitIDGT

func CommitIDGT(v string) predicate.Scan

CommitIDGT applies the GT predicate on the "commit_id" field.

func CommitIDGTE

func CommitIDGTE(v string) predicate.Scan

CommitIDGTE applies the GTE predicate on the "commit_id" field.

func CommitIDHasPrefix

func CommitIDHasPrefix(v string) predicate.Scan

CommitIDHasPrefix applies the HasPrefix predicate on the "commit_id" field.

func CommitIDHasSuffix

func CommitIDHasSuffix(v string) predicate.Scan

CommitIDHasSuffix applies the HasSuffix predicate on the "commit_id" field.

func CommitIDIn

func CommitIDIn(vs ...string) predicate.Scan

CommitIDIn applies the In predicate on the "commit_id" field.

func CommitIDLT

func CommitIDLT(v string) predicate.Scan

CommitIDLT applies the LT predicate on the "commit_id" field.

func CommitIDLTE

func CommitIDLTE(v string) predicate.Scan

CommitIDLTE applies the LTE predicate on the "commit_id" field.

func CommitIDNEQ

func CommitIDNEQ(v string) predicate.Scan

CommitIDNEQ applies the NEQ predicate on the "commit_id" field.

func CommitIDNotIn

func CommitIDNotIn(vs ...string) predicate.Scan

CommitIDNotIn applies the NotIn predicate on the "commit_id" field.

func HasPackages

func HasPackages() predicate.Scan

HasPackages applies the HasEdge predicate on the "packages" edge.

func HasPackagesWith

func HasPackagesWith(preds ...predicate.PackageRecord) predicate.Scan

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

func HasRepository

func HasRepository() predicate.Scan

HasRepository applies the HasEdge predicate on the "repository" edge.

func HasRepositoryWith

func HasRepositoryWith(preds ...predicate.Repository) predicate.Scan

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

func ID

func ID(id string) predicate.Scan

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Scan

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Scan

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Scan

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Scan

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Scan

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Scan

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Scan

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Scan

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.Scan) predicate.Scan

Or groups predicates with the OR operator between them.

func PullRequestTarget

func PullRequestTarget(v string) predicate.Scan

PullRequestTarget applies equality check predicate on the "pull_request_target" field. It's identical to PullRequestTargetEQ.

func PullRequestTargetContains

func PullRequestTargetContains(v string) predicate.Scan

PullRequestTargetContains applies the Contains predicate on the "pull_request_target" field.

func PullRequestTargetContainsFold

func PullRequestTargetContainsFold(v string) predicate.Scan

PullRequestTargetContainsFold applies the ContainsFold predicate on the "pull_request_target" field.

func PullRequestTargetEQ

func PullRequestTargetEQ(v string) predicate.Scan

PullRequestTargetEQ applies the EQ predicate on the "pull_request_target" field.

func PullRequestTargetEqualFold

func PullRequestTargetEqualFold(v string) predicate.Scan

PullRequestTargetEqualFold applies the EqualFold predicate on the "pull_request_target" field.

func PullRequestTargetGT

func PullRequestTargetGT(v string) predicate.Scan

PullRequestTargetGT applies the GT predicate on the "pull_request_target" field.

func PullRequestTargetGTE

func PullRequestTargetGTE(v string) predicate.Scan

PullRequestTargetGTE applies the GTE predicate on the "pull_request_target" field.

func PullRequestTargetHasPrefix

func PullRequestTargetHasPrefix(v string) predicate.Scan

PullRequestTargetHasPrefix applies the HasPrefix predicate on the "pull_request_target" field.

func PullRequestTargetHasSuffix

func PullRequestTargetHasSuffix(v string) predicate.Scan

PullRequestTargetHasSuffix applies the HasSuffix predicate on the "pull_request_target" field.

func PullRequestTargetIn

func PullRequestTargetIn(vs ...string) predicate.Scan

PullRequestTargetIn applies the In predicate on the "pull_request_target" field.

func PullRequestTargetIsNil

func PullRequestTargetIsNil() predicate.Scan

PullRequestTargetIsNil applies the IsNil predicate on the "pull_request_target" field.

func PullRequestTargetLT

func PullRequestTargetLT(v string) predicate.Scan

PullRequestTargetLT applies the LT predicate on the "pull_request_target" field.

func PullRequestTargetLTE

func PullRequestTargetLTE(v string) predicate.Scan

PullRequestTargetLTE applies the LTE predicate on the "pull_request_target" field.

func PullRequestTargetNEQ

func PullRequestTargetNEQ(v string) predicate.Scan

PullRequestTargetNEQ applies the NEQ predicate on the "pull_request_target" field.

func PullRequestTargetNotIn

func PullRequestTargetNotIn(vs ...string) predicate.Scan

PullRequestTargetNotIn applies the NotIn predicate on the "pull_request_target" field.

func PullRequestTargetNotNil

func PullRequestTargetNotNil() predicate.Scan

PullRequestTargetNotNil applies the NotNil predicate on the "pull_request_target" field.

func RequestedAt

func RequestedAt(v int64) predicate.Scan

RequestedAt applies equality check predicate on the "requested_at" field. It's identical to RequestedAtEQ.

func RequestedAtEQ

func RequestedAtEQ(v int64) predicate.Scan

RequestedAtEQ applies the EQ predicate on the "requested_at" field.

func RequestedAtGT

func RequestedAtGT(v int64) predicate.Scan

RequestedAtGT applies the GT predicate on the "requested_at" field.

func RequestedAtGTE

func RequestedAtGTE(v int64) predicate.Scan

RequestedAtGTE applies the GTE predicate on the "requested_at" field.

func RequestedAtIn

func RequestedAtIn(vs ...int64) predicate.Scan

RequestedAtIn applies the In predicate on the "requested_at" field.

func RequestedAtLT

func RequestedAtLT(v int64) predicate.Scan

RequestedAtLT applies the LT predicate on the "requested_at" field.

func RequestedAtLTE

func RequestedAtLTE(v int64) predicate.Scan

RequestedAtLTE applies the LTE predicate on the "requested_at" field.

func RequestedAtNEQ

func RequestedAtNEQ(v int64) predicate.Scan

RequestedAtNEQ applies the NEQ predicate on the "requested_at" field.

func RequestedAtNotIn

func RequestedAtNotIn(vs ...int64) predicate.Scan

RequestedAtNotIn applies the NotIn predicate on the "requested_at" field.

func ScannedAt

func ScannedAt(v int64) predicate.Scan

ScannedAt applies equality check predicate on the "scanned_at" field. It's identical to ScannedAtEQ.

func ScannedAtEQ

func ScannedAtEQ(v int64) predicate.Scan

ScannedAtEQ applies the EQ predicate on the "scanned_at" field.

func ScannedAtGT

func ScannedAtGT(v int64) predicate.Scan

ScannedAtGT applies the GT predicate on the "scanned_at" field.

func ScannedAtGTE

func ScannedAtGTE(v int64) predicate.Scan

ScannedAtGTE applies the GTE predicate on the "scanned_at" field.

func ScannedAtIn

func ScannedAtIn(vs ...int64) predicate.Scan

ScannedAtIn applies the In predicate on the "scanned_at" field.

func ScannedAtLT

func ScannedAtLT(v int64) predicate.Scan

ScannedAtLT applies the LT predicate on the "scanned_at" field.

func ScannedAtLTE

func ScannedAtLTE(v int64) predicate.Scan

ScannedAtLTE applies the LTE predicate on the "scanned_at" field.

func ScannedAtNEQ

func ScannedAtNEQ(v int64) predicate.Scan

ScannedAtNEQ applies the NEQ predicate on the "scanned_at" field.

func ScannedAtNotIn

func ScannedAtNotIn(vs ...int64) predicate.Scan

ScannedAtNotIn applies the NotIn predicate on the "scanned_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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