attachment

package
v0.0.0-...-61914f4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for attachment fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)
View Source
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 ID

func ID(id int) predicate.Attachment

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Attachment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Attachment

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.Attachment

IDLT applies the LT 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

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

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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