test

package
v0.0.0-...-009ff64 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the test type in the database.
	Label = "test"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNotes holds the string denoting the notes vertex property in the database.
	FieldNotes = "notes"

	// Table holds the table name of the test in the database.
	Table = "tests"
	// HistoryTable is the table the holds the history relation/edge.
	HistoryTable = "tests"
	// HistoryInverseTable is the table name for the History entity.
	// It exists in this package in order to avoid circular dependency with the "history" package.
	HistoryInverseTable = "histories"
	// HistoryColumn is the table column denoting the history relation/edge.
	HistoryColumn = "history_tests"
	// ClinicalTable is the table the holds the clinical relation/edge.
	ClinicalTable = "clinical_results"
	// ClinicalInverseTable is the table name for the ClinicalResults entity.
	// It exists in this package in order to avoid circular dependency with the "clinicalresults" package.
	ClinicalInverseTable = "clinical_results"
	// ClinicalColumn is the table column denoting the clinical relation/edge.
	ClinicalColumn = "test_clinical"
	// EpidemiologicTable is the table the holds the epidemiologic relation/edge.
	EpidemiologicTable = "epidemiologic_results"
	// EpidemiologicInverseTable is the table name for the EpidemiologicResults entity.
	// It exists in this package in order to avoid circular dependency with the "epidemiologicresults" package.
	EpidemiologicInverseTable = "epidemiologic_results"
	// EpidemiologicColumn is the table column denoting the epidemiologic relation/edge.
	EpidemiologicColumn = "test_epidemiologic"
)

Variables

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

Columns holds all SQL columns for test fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Test type.

Functions

func And

func And(predicates ...predicate.Test) predicate.Test

And groups list of predicates with the AND operator between them.

func HasClinical

func HasClinical() predicate.Test

HasClinical applies the HasEdge predicate on the "clinical" edge.

func HasClinicalWith

func HasClinicalWith(preds ...predicate.ClinicalResults) predicate.Test

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

func HasEpidemiologic

func HasEpidemiologic() predicate.Test

HasEpidemiologic applies the HasEdge predicate on the "epidemiologic" edge.

func HasEpidemiologicWith

func HasEpidemiologicWith(preds ...predicate.EpidemiologicResults) predicate.Test

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

func HasHistory

func HasHistory() predicate.Test

HasHistory applies the HasEdge predicate on the "history" edge.

func HasHistoryWith

func HasHistoryWith(preds ...predicate.History) predicate.Test

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

func ID

func ID(id uuid.UUID) predicate.Test

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Test

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Test

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Test

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Test

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Test

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Test

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Test

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Test

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func NotesIsNil

func NotesIsNil() predicate.Test

NotesIsNil applies the IsNil predicate on the "notes" field.

func NotesNotNil

func NotesNotNil() predicate.Test

NotesNotNil applies the NotNil predicate on the "notes" field.

func Or

func Or(predicates ...predicate.Test) predicate.Test

Or groups list of predicates with the OR operator between them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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