Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Attachment) predicate.Attachment
- func CreatedAt(v time.Time) predicate.Attachment
- func CreatedAtEQ(v time.Time) predicate.Attachment
- func CreatedAtGT(v time.Time) predicate.Attachment
- func CreatedAtGTE(v time.Time) predicate.Attachment
- func CreatedAtIn(vs ...time.Time) predicate.Attachment
- func CreatedAtLT(v time.Time) predicate.Attachment
- func CreatedAtLTE(v time.Time) predicate.Attachment
- func CreatedAtNEQ(v time.Time) predicate.Attachment
- func CreatedAtNotIn(vs ...time.Time) predicate.Attachment
- func DeletedAt(v time.Time) predicate.Attachment
- func DeletedAtEQ(v time.Time) predicate.Attachment
- func DeletedAtGT(v time.Time) predicate.Attachment
- func DeletedAtGTE(v time.Time) predicate.Attachment
- func DeletedAtIn(vs ...time.Time) predicate.Attachment
- func DeletedAtIsNil() predicate.Attachment
- func DeletedAtLT(v time.Time) predicate.Attachment
- func DeletedAtLTE(v time.Time) predicate.Attachment
- func DeletedAtNEQ(v time.Time) predicate.Attachment
- func DeletedAtNotIn(vs ...time.Time) predicate.Attachment
- func DeletedAtNotNil() predicate.Attachment
- func FilePath(v string) predicate.Attachment
- func FilePathContains(v string) predicate.Attachment
- func FilePathContainsFold(v string) predicate.Attachment
- func FilePathEQ(v string) predicate.Attachment
- func FilePathEqualFold(v string) predicate.Attachment
- func FilePathGT(v string) predicate.Attachment
- func FilePathGTE(v string) predicate.Attachment
- func FilePathHasPrefix(v string) predicate.Attachment
- func FilePathHasSuffix(v string) predicate.Attachment
- func FilePathIn(vs ...string) predicate.Attachment
- func FilePathIsNil() predicate.Attachment
- func FilePathLT(v string) predicate.Attachment
- func FilePathLTE(v string) predicate.Attachment
- func FilePathNEQ(v string) predicate.Attachment
- func FilePathNotIn(vs ...string) predicate.Attachment
- func FilePathNotNil() predicate.Attachment
- func FileType(v string) predicate.Attachment
- func FileTypeContains(v string) predicate.Attachment
- func FileTypeContainsFold(v string) predicate.Attachment
- func FileTypeEQ(v string) predicate.Attachment
- func FileTypeEqualFold(v string) predicate.Attachment
- func FileTypeGT(v string) predicate.Attachment
- func FileTypeGTE(v string) predicate.Attachment
- func FileTypeHasPrefix(v string) predicate.Attachment
- func FileTypeHasSuffix(v string) predicate.Attachment
- func FileTypeIn(vs ...string) predicate.Attachment
- func FileTypeIsNil() predicate.Attachment
- func FileTypeLT(v string) predicate.Attachment
- func FileTypeLTE(v string) predicate.Attachment
- func FileTypeNEQ(v string) predicate.Attachment
- func FileTypeNotIn(vs ...string) predicate.Attachment
- func FileTypeNotNil() predicate.Attachment
- func HasPatient() predicate.Attachment
- func HasPatientWith(preds ...predicate.Patient) predicate.Attachment
- func HasVisit() predicate.Attachment
- func HasVisitWith(preds ...predicate.Visit) predicate.Attachment
- func ID(id int) predicate.Attachment
- func IDEQ(id int) predicate.Attachment
- func IDGT(id int) predicate.Attachment
- func IDGTE(id int) predicate.Attachment
- func IDIn(ids ...int) predicate.Attachment
- func IDLT(id int) predicate.Attachment
- func IDLTE(id int) predicate.Attachment
- func IDNEQ(id int) predicate.Attachment
- func IDNotIn(ids ...int) predicate.Attachment
- func Not(p predicate.Attachment) predicate.Attachment
- func Or(predicates ...predicate.Attachment) predicate.Attachment
- func UpdatedAt(v time.Time) predicate.Attachment
- func UpdatedAtEQ(v time.Time) predicate.Attachment
- func UpdatedAtGT(v time.Time) predicate.Attachment
- func UpdatedAtGTE(v time.Time) predicate.Attachment
- func UpdatedAtIn(vs ...time.Time) predicate.Attachment
- func UpdatedAtIsNil() predicate.Attachment
- func UpdatedAtLT(v time.Time) predicate.Attachment
- func UpdatedAtLTE(v time.Time) predicate.Attachment
- func UpdatedAtNEQ(v time.Time) predicate.Attachment
- func UpdatedAtNotIn(vs ...time.Time) predicate.Attachment
- func UpdatedAtNotNil() predicate.Attachment
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFilePath(opts ...sql.OrderTermOption) OrderOption
- func ByFileType(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPatientField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVisitField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the attachment type in the database. Label = "attachment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFilePath holds the string denoting the file_path field in the database. FieldFilePath = "file_path" // FieldFileType holds the string denoting the file_type field in the database. FieldFileType = "file_type" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // EdgeVisit holds the string denoting the visit edge name in mutations. EdgeVisit = "visit" // EdgePatient holds the string denoting the patient edge name in mutations. EdgePatient = "patient" // Table holds the table name of the attachment in the database. Table = "attachments" // VisitTable is the table that holds the visit relation/edge. VisitTable = "attachments" // VisitInverseTable is the table name for the Visit entity. // It exists in this package in order to avoid circular dependency with the "visit" package. VisitInverseTable = "visits" // VisitColumn is the table column denoting the visit relation/edge. VisitColumn = "visit_attachment" // PatientTable is the table that holds the patient relation/edge. PatientTable = "attachments" // 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_attachment" )
Variables ¶
var Columns = []string{ FieldID, FieldFilePath, FieldFileType, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for attachment fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time )
var ForeignKeys = []string{
"patient_attachment",
"visit_attachment",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "attachments" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Attachment) predicate.Attachment
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Attachment
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Attachment
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Attachment
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Attachment
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Attachment
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Attachment
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Attachment
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Attachment
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Attachment
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.Attachment
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.Attachment
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.Attachment
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.Attachment
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.Attachment
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.Attachment
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.Attachment
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.Attachment
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.Attachment
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.Attachment
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.Attachment
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func FilePath ¶
func FilePath(v string) predicate.Attachment
FilePath applies equality check predicate on the "file_path" field. It's identical to FilePathEQ.
func FilePathContains ¶
func FilePathContains(v string) predicate.Attachment
FilePathContains applies the Contains predicate on the "file_path" field.
func FilePathContainsFold ¶
func FilePathContainsFold(v string) predicate.Attachment
FilePathContainsFold applies the ContainsFold predicate on the "file_path" field.
func FilePathEQ ¶
func FilePathEQ(v string) predicate.Attachment
FilePathEQ applies the EQ predicate on the "file_path" field.
func FilePathEqualFold ¶
func FilePathEqualFold(v string) predicate.Attachment
FilePathEqualFold applies the EqualFold predicate on the "file_path" field.
func FilePathGT ¶
func FilePathGT(v string) predicate.Attachment
FilePathGT applies the GT predicate on the "file_path" field.
func FilePathGTE ¶
func FilePathGTE(v string) predicate.Attachment
FilePathGTE applies the GTE predicate on the "file_path" field.
func FilePathHasPrefix ¶
func FilePathHasPrefix(v string) predicate.Attachment
FilePathHasPrefix applies the HasPrefix predicate on the "file_path" field.
func FilePathHasSuffix ¶
func FilePathHasSuffix(v string) predicate.Attachment
FilePathHasSuffix applies the HasSuffix predicate on the "file_path" field.
func FilePathIn ¶
func FilePathIn(vs ...string) predicate.Attachment
FilePathIn applies the In predicate on the "file_path" field.
func FilePathIsNil ¶
func FilePathIsNil() predicate.Attachment
FilePathIsNil applies the IsNil predicate on the "file_path" field.
func FilePathLT ¶
func FilePathLT(v string) predicate.Attachment
FilePathLT applies the LT predicate on the "file_path" field.
func FilePathLTE ¶
func FilePathLTE(v string) predicate.Attachment
FilePathLTE applies the LTE predicate on the "file_path" field.
func FilePathNEQ ¶
func FilePathNEQ(v string) predicate.Attachment
FilePathNEQ applies the NEQ predicate on the "file_path" field.
func FilePathNotIn ¶
func FilePathNotIn(vs ...string) predicate.Attachment
FilePathNotIn applies the NotIn predicate on the "file_path" field.
func FilePathNotNil ¶
func FilePathNotNil() predicate.Attachment
FilePathNotNil applies the NotNil predicate on the "file_path" field.
func FileType ¶
func FileType(v string) predicate.Attachment
FileType applies equality check predicate on the "file_type" field. It's identical to FileTypeEQ.
func FileTypeContains ¶
func FileTypeContains(v string) predicate.Attachment
FileTypeContains applies the Contains predicate on the "file_type" field.
func FileTypeContainsFold ¶
func FileTypeContainsFold(v string) predicate.Attachment
FileTypeContainsFold applies the ContainsFold predicate on the "file_type" field.
func FileTypeEQ ¶
func FileTypeEQ(v string) predicate.Attachment
FileTypeEQ applies the EQ predicate on the "file_type" field.
func FileTypeEqualFold ¶
func FileTypeEqualFold(v string) predicate.Attachment
FileTypeEqualFold applies the EqualFold predicate on the "file_type" field.
func FileTypeGT ¶
func FileTypeGT(v string) predicate.Attachment
FileTypeGT applies the GT predicate on the "file_type" field.
func FileTypeGTE ¶
func FileTypeGTE(v string) predicate.Attachment
FileTypeGTE applies the GTE predicate on the "file_type" field.
func FileTypeHasPrefix ¶
func FileTypeHasPrefix(v string) predicate.Attachment
FileTypeHasPrefix applies the HasPrefix predicate on the "file_type" field.
func FileTypeHasSuffix ¶
func FileTypeHasSuffix(v string) predicate.Attachment
FileTypeHasSuffix applies the HasSuffix predicate on the "file_type" field.
func FileTypeIn ¶
func FileTypeIn(vs ...string) predicate.Attachment
FileTypeIn applies the In predicate on the "file_type" field.
func FileTypeIsNil ¶
func FileTypeIsNil() predicate.Attachment
FileTypeIsNil applies the IsNil predicate on the "file_type" field.
func FileTypeLT ¶
func FileTypeLT(v string) predicate.Attachment
FileTypeLT applies the LT predicate on the "file_type" field.
func FileTypeLTE ¶
func FileTypeLTE(v string) predicate.Attachment
FileTypeLTE applies the LTE predicate on the "file_type" field.
func FileTypeNEQ ¶
func FileTypeNEQ(v string) predicate.Attachment
FileTypeNEQ applies the NEQ predicate on the "file_type" field.
func FileTypeNotIn ¶
func FileTypeNotIn(vs ...string) predicate.Attachment
FileTypeNotIn applies the NotIn predicate on the "file_type" field.
func FileTypeNotNil ¶
func FileTypeNotNil() predicate.Attachment
FileTypeNotNil applies the NotNil predicate on the "file_type" field.
func HasPatient ¶
func HasPatient() predicate.Attachment
HasPatient applies the HasEdge predicate on the "patient" edge.
func HasPatientWith ¶
func HasPatientWith(preds ...predicate.Patient) predicate.Attachment
HasPatientWith applies the HasEdge predicate on the "patient" edge with a given conditions (other predicates).
func HasVisit ¶
func HasVisit() predicate.Attachment
HasVisit applies the HasEdge predicate on the "visit" edge.
func HasVisitWith ¶
func HasVisitWith(preds ...predicate.Visit) predicate.Attachment
HasVisitWith applies the HasEdge predicate on the "visit" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Attachment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Attachment
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Attachment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Attachment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Attachment
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Attachment) predicate.Attachment
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Attachment) predicate.Attachment
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Attachment
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Attachment
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Attachment
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Attachment
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Attachment
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.Attachment
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Attachment
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Attachment
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Attachment
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Attachment
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.Attachment
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" 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 Attachment queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByFilePath ¶
func ByFilePath(opts ...sql.OrderTermOption) OrderOption
ByFilePath orders the results by the file_path field.
func ByFileType ¶
func ByFileType(opts ...sql.OrderTermOption) OrderOption
ByFileType orders the results by the file_type field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPatientField ¶
func ByPatientField(field string, opts ...sql.OrderTermOption) OrderOption
ByPatientField orders the results by patient field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVisitField ¶
func ByVisitField(field string, opts ...sql.OrderTermOption) OrderOption
ByVisitField orders the results by visit field.