Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.History) predicate.History
- func HasNotes() predicate.History
- func HasNotesWith(preds ...predicate.MedicalNote) predicate.History
- func HasPatient() predicate.History
- func HasPatientWith(preds ...predicate.Patient) predicate.History
- func HasTests() predicate.History
- func HasTestsWith(preds ...predicate.Test) predicate.History
- func ID(id uuid.UUID) predicate.History
- func IDEQ(id uuid.UUID) predicate.History
- func IDGT(id uuid.UUID) predicate.History
- func IDGTE(id uuid.UUID) predicate.History
- func IDIn(ids ...uuid.UUID) predicate.History
- func IDLT(id uuid.UUID) predicate.History
- func IDLTE(id uuid.UUID) predicate.History
- func IDNEQ(id uuid.UUID) predicate.History
- func IDNotIn(ids ...uuid.UUID) predicate.History
- func Not(p predicate.History) predicate.History
- func Or(predicates ...predicate.History) predicate.History
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 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 ¶
HasPatient applies the HasEdge predicate on the "patient" edge.
func HasPatientWith ¶
HasPatientWith applies the HasEdge predicate on the "patient" edge with a given conditions (other predicates).
func HasTestsWith ¶
HasTestsWith applies the HasEdge predicate on the "tests" edge with a given conditions (other predicates).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.