history

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 history type in the database.
	Label = "history"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"

	// Table holds the table name of the history in the database.
	Table = "histories"
	// PatientTable is the table the holds the patient relation/edge.
	PatientTable = "histories"
	// PatientInverseTable is the table name for the Patient entity.
	// It exists in this package in order to avoid circular dependency with the "patient" package.
	PatientInverseTable = "patients"
	// PatientColumn is the table column denoting the patient relation/edge.
	PatientColumn = "patient_history"
	// TestsTable is the table the holds the tests relation/edge.
	TestsTable = "tests"
	// TestsInverseTable is the table name for the Test entity.
	// It exists in this package in order to avoid circular dependency with the "test" package.
	TestsInverseTable = "tests"
	// TestsColumn is the table column denoting the tests relation/edge.
	TestsColumn = "history_tests"
	// NotesTable is the table the holds the notes relation/edge.
	NotesTable = "medical_notes"
	// NotesInverseTable is the table name for the MedicalNote entity.
	// It exists in this package in order to avoid circular dependency with the "medicalnote" package.
	NotesInverseTable = "medical_notes"
	// NotesColumn is the table column denoting the notes relation/edge.
	NotesColumn = "history_notes"
)

Variables

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

Columns holds all SQL columns for history fields.

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

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

Functions

func And

func And(predicates ...predicate.History) predicate.History

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

func HasNotes

func HasNotes() predicate.History

HasNotes applies the HasEdge predicate on the "notes" edge.

func HasNotesWith

func HasNotesWith(preds ...predicate.MedicalNote) predicate.History

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

func HasPatient

func HasPatient() predicate.History

HasPatient applies the HasEdge predicate on the "patient" edge.

func HasPatientWith

func HasPatientWith(preds ...predicate.Patient) predicate.History

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

func HasTests

func HasTests() predicate.History

HasTests applies the HasEdge predicate on the "tests" edge.

func HasTestsWith

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

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

func ID

func ID(id uuid.UUID) predicate.History

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.History

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.History

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.History

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.History

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.History

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.History

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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