Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Patient) predicate.Patient
- func CreatedAt(v time.Time) predicate.Patient
- func CreatedAtEQ(v time.Time) predicate.Patient
- func CreatedAtGT(v time.Time) predicate.Patient
- func CreatedAtGTE(v time.Time) predicate.Patient
- func CreatedAtIn(vs ...time.Time) predicate.Patient
- func CreatedAtLT(v time.Time) predicate.Patient
- func CreatedAtLTE(v time.Time) predicate.Patient
- func CreatedAtNEQ(v time.Time) predicate.Patient
- func CreatedAtNotIn(vs ...time.Time) predicate.Patient
- func DeletedAt(v time.Time) predicate.Patient
- func DeletedAtEQ(v time.Time) predicate.Patient
- func DeletedAtGT(v time.Time) predicate.Patient
- func DeletedAtGTE(v time.Time) predicate.Patient
- func DeletedAtIn(vs ...time.Time) predicate.Patient
- func DeletedAtIsNil() predicate.Patient
- func DeletedAtLT(v time.Time) predicate.Patient
- func DeletedAtLTE(v time.Time) predicate.Patient
- func DeletedAtNEQ(v time.Time) predicate.Patient
- func DeletedAtNotIn(vs ...time.Time) predicate.Patient
- func DeletedAtNotNil() predicate.Patient
- func FatherName(v string) predicate.Patient
- func FatherNameContains(v string) predicate.Patient
- func FatherNameContainsFold(v string) predicate.Patient
- func FatherNameEQ(v string) predicate.Patient
- func FatherNameEqualFold(v string) predicate.Patient
- func FatherNameGT(v string) predicate.Patient
- func FatherNameGTE(v string) predicate.Patient
- func FatherNameHasPrefix(v string) predicate.Patient
- func FatherNameHasSuffix(v string) predicate.Patient
- func FatherNameIn(vs ...string) predicate.Patient
- func FatherNameIsNil() predicate.Patient
- func FatherNameLT(v string) predicate.Patient
- func FatherNameLTE(v string) predicate.Patient
- func FatherNameNEQ(v string) predicate.Patient
- func FatherNameNotIn(vs ...string) predicate.Patient
- func FatherNameNotNil() predicate.Patient
- func FirstName(v string) predicate.Patient
- func FirstNameContains(v string) predicate.Patient
- func FirstNameContainsFold(v string) predicate.Patient
- func FirstNameEQ(v string) predicate.Patient
- func FirstNameEqualFold(v string) predicate.Patient
- func FirstNameGT(v string) predicate.Patient
- func FirstNameGTE(v string) predicate.Patient
- func FirstNameHasPrefix(v string) predicate.Patient
- func FirstNameHasSuffix(v string) predicate.Patient
- func FirstNameIn(vs ...string) predicate.Patient
- func FirstNameIsNil() predicate.Patient
- func FirstNameLT(v string) predicate.Patient
- func FirstNameLTE(v string) predicate.Patient
- func FirstNameNEQ(v string) predicate.Patient
- func FirstNameNotIn(vs ...string) predicate.Patient
- func FirstNameNotNil() predicate.Patient
- func HasAttachment() predicate.Patient
- func HasAttachmentWith(preds ...predicate.Attachment) predicate.Patient
- func HasReception() predicate.Patient
- func HasReceptionWith(preds ...predicate.Reception) predicate.Patient
- func ID(id int) predicate.Patient
- func IDEQ(id int) predicate.Patient
- func IDGT(id int) predicate.Patient
- func IDGTE(id int) predicate.Patient
- func IDIn(ids ...int) predicate.Patient
- func IDLT(id int) predicate.Patient
- func IDLTE(id int) predicate.Patient
- func IDNEQ(id int) predicate.Patient
- func IDNotIn(ids ...int) predicate.Patient
- func IdentityCode(v string) predicate.Patient
- func IdentityCodeContains(v string) predicate.Patient
- func IdentityCodeContainsFold(v string) predicate.Patient
- func IdentityCodeEQ(v string) predicate.Patient
- func IdentityCodeEqualFold(v string) predicate.Patient
- func IdentityCodeGT(v string) predicate.Patient
- func IdentityCodeGTE(v string) predicate.Patient
- func IdentityCodeHasPrefix(v string) predicate.Patient
- func IdentityCodeHasSuffix(v string) predicate.Patient
- func IdentityCodeIn(vs ...string) predicate.Patient
- func IdentityCodeIsNil() predicate.Patient
- func IdentityCodeLT(v string) predicate.Patient
- func IdentityCodeLTE(v string) predicate.Patient
- func IdentityCodeNEQ(v string) predicate.Patient
- func IdentityCodeNotIn(vs ...string) predicate.Patient
- func IdentityCodeNotNil() predicate.Patient
- func LastName(v string) predicate.Patient
- func LastNameContains(v string) predicate.Patient
- func LastNameContainsFold(v string) predicate.Patient
- func LastNameEQ(v string) predicate.Patient
- func LastNameEqualFold(v string) predicate.Patient
- func LastNameGT(v string) predicate.Patient
- func LastNameGTE(v string) predicate.Patient
- func LastNameHasPrefix(v string) predicate.Patient
- func LastNameHasSuffix(v string) predicate.Patient
- func LastNameIn(vs ...string) predicate.Patient
- func LastNameIsNil() predicate.Patient
- func LastNameLT(v string) predicate.Patient
- func LastNameLTE(v string) predicate.Patient
- func LastNameNEQ(v string) predicate.Patient
- func LastNameNotIn(vs ...string) predicate.Patient
- func LastNameNotNil() predicate.Patient
- func NationalCode(v string) predicate.Patient
- func NationalCodeContains(v string) predicate.Patient
- func NationalCodeContainsFold(v string) predicate.Patient
- func NationalCodeEQ(v string) predicate.Patient
- func NationalCodeEqualFold(v string) predicate.Patient
- func NationalCodeGT(v string) predicate.Patient
- func NationalCodeGTE(v string) predicate.Patient
- func NationalCodeHasPrefix(v string) predicate.Patient
- func NationalCodeHasSuffix(v string) predicate.Patient
- func NationalCodeIn(vs ...string) predicate.Patient
- func NationalCodeIsNil() predicate.Patient
- func NationalCodeLT(v string) predicate.Patient
- func NationalCodeLTE(v string) predicate.Patient
- func NationalCodeNEQ(v string) predicate.Patient
- func NationalCodeNotIn(vs ...string) predicate.Patient
- func NationalCodeNotNil() predicate.Patient
- func Not(p predicate.Patient) predicate.Patient
- func Or(predicates ...predicate.Patient) predicate.Patient
- func Phone(v string) predicate.Patient
- func PhoneContains(v string) predicate.Patient
- func PhoneContainsFold(v string) predicate.Patient
- func PhoneEQ(v string) predicate.Patient
- func PhoneEqualFold(v string) predicate.Patient
- func PhoneGT(v string) predicate.Patient
- func PhoneGTE(v string) predicate.Patient
- func PhoneHasPrefix(v string) predicate.Patient
- func PhoneHasSuffix(v string) predicate.Patient
- func PhoneIn(vs ...string) predicate.Patient
- func PhoneIsNil() predicate.Patient
- func PhoneLT(v string) predicate.Patient
- func PhoneLTE(v string) predicate.Patient
- func PhoneNEQ(v string) predicate.Patient
- func PhoneNotIn(vs ...string) predicate.Patient
- func PhoneNotNil() predicate.Patient
- func UpdatedAt(v time.Time) predicate.Patient
- func UpdatedAtEQ(v time.Time) predicate.Patient
- func UpdatedAtGT(v time.Time) predicate.Patient
- func UpdatedAtGTE(v time.Time) predicate.Patient
- func UpdatedAtIn(vs ...time.Time) predicate.Patient
- func UpdatedAtIsNil() predicate.Patient
- func UpdatedAtLT(v time.Time) predicate.Patient
- func UpdatedAtLTE(v time.Time) predicate.Patient
- func UpdatedAtNEQ(v time.Time) predicate.Patient
- func UpdatedAtNotIn(vs ...time.Time) predicate.Patient
- func UpdatedAtNotNil() predicate.Patient
- func ValidColumn(column string) bool
- type OrderOption
- func ByAttachment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAttachmentCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFatherName(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIdentityCode(opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByNationalCode(opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByReception(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReceptionCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the patient type in the database. Label = "patient" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldFatherName holds the string denoting the father_name field in the database. FieldFatherName = "father_name" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldNationalCode holds the string denoting the national_code field in the database. FieldNationalCode = "national_code" // FieldIdentityCode holds the string denoting the identity_code field in the database. FieldIdentityCode = "identity_code" // 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" // EdgeAttachment holds the string denoting the attachment edge name in mutations. EdgeAttachment = "attachment" // EdgeReception holds the string denoting the reception edge name in mutations. EdgeReception = "reception" // Table holds the table name of the patient in the database. Table = "patients" // AttachmentTable is the table that holds the attachment relation/edge. AttachmentTable = "attachments" // AttachmentInverseTable is the table name for the Attachment entity. // It exists in this package in order to avoid circular dependency with the "attachment" package. AttachmentInverseTable = "attachments" // AttachmentColumn is the table column denoting the attachment relation/edge. AttachmentColumn = "patient_attachment" // ReceptionTable is the table that holds the reception relation/edge. ReceptionTable = "receptions" // ReceptionInverseTable is the table name for the Reception entity. // It exists in this package in order to avoid circular dependency with the "reception" package. ReceptionInverseTable = "receptions" // ReceptionColumn is the table column denoting the reception relation/edge. ReceptionColumn = "patient_reception" )
Variables ¶
var Columns = []string{ FieldID, FieldFirstName, FieldLastName, FieldFatherName, FieldPhone, FieldNationalCode, FieldIdentityCode, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for patient fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func FatherName ¶
FatherName applies equality check predicate on the "father_name" field. It's identical to FatherNameEQ.
func FatherNameContains ¶
FatherNameContains applies the Contains predicate on the "father_name" field.
func FatherNameContainsFold ¶
FatherNameContainsFold applies the ContainsFold predicate on the "father_name" field.
func FatherNameEQ ¶
FatherNameEQ applies the EQ predicate on the "father_name" field.
func FatherNameEqualFold ¶
FatherNameEqualFold applies the EqualFold predicate on the "father_name" field.
func FatherNameGT ¶
FatherNameGT applies the GT predicate on the "father_name" field.
func FatherNameGTE ¶
FatherNameGTE applies the GTE predicate on the "father_name" field.
func FatherNameHasPrefix ¶
FatherNameHasPrefix applies the HasPrefix predicate on the "father_name" field.
func FatherNameHasSuffix ¶
FatherNameHasSuffix applies the HasSuffix predicate on the "father_name" field.
func FatherNameIn ¶
FatherNameIn applies the In predicate on the "father_name" field.
func FatherNameIsNil ¶
FatherNameIsNil applies the IsNil predicate on the "father_name" field.
func FatherNameLT ¶
FatherNameLT applies the LT predicate on the "father_name" field.
func FatherNameLTE ¶
FatherNameLTE applies the LTE predicate on the "father_name" field.
func FatherNameNEQ ¶
FatherNameNEQ applies the NEQ predicate on the "father_name" field.
func FatherNameNotIn ¶
FatherNameNotIn applies the NotIn predicate on the "father_name" field.
func FatherNameNotNil ¶
FatherNameNotNil applies the NotNil predicate on the "father_name" field.
func FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameIsNil ¶
FirstNameIsNil applies the IsNil predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func FirstNameNotNil ¶
FirstNameNotNil applies the NotNil predicate on the "first_name" field.
func HasAttachment ¶
HasAttachment applies the HasEdge predicate on the "attachment" edge.
func HasAttachmentWith ¶
func HasAttachmentWith(preds ...predicate.Attachment) predicate.Patient
HasAttachmentWith applies the HasEdge predicate on the "attachment" edge with a given conditions (other predicates).
func HasReception ¶
HasReception applies the HasEdge predicate on the "reception" edge.
func HasReceptionWith ¶
HasReceptionWith applies the HasEdge predicate on the "reception" edge with a given conditions (other predicates).
func IdentityCode ¶
IdentityCode applies equality check predicate on the "identity_code" field. It's identical to IdentityCodeEQ.
func IdentityCodeContains ¶
IdentityCodeContains applies the Contains predicate on the "identity_code" field.
func IdentityCodeContainsFold ¶
IdentityCodeContainsFold applies the ContainsFold predicate on the "identity_code" field.
func IdentityCodeEQ ¶
IdentityCodeEQ applies the EQ predicate on the "identity_code" field.
func IdentityCodeEqualFold ¶
IdentityCodeEqualFold applies the EqualFold predicate on the "identity_code" field.
func IdentityCodeGT ¶
IdentityCodeGT applies the GT predicate on the "identity_code" field.
func IdentityCodeGTE ¶
IdentityCodeGTE applies the GTE predicate on the "identity_code" field.
func IdentityCodeHasPrefix ¶
IdentityCodeHasPrefix applies the HasPrefix predicate on the "identity_code" field.
func IdentityCodeHasSuffix ¶
IdentityCodeHasSuffix applies the HasSuffix predicate on the "identity_code" field.
func IdentityCodeIn ¶
IdentityCodeIn applies the In predicate on the "identity_code" field.
func IdentityCodeIsNil ¶
IdentityCodeIsNil applies the IsNil predicate on the "identity_code" field.
func IdentityCodeLT ¶
IdentityCodeLT applies the LT predicate on the "identity_code" field.
func IdentityCodeLTE ¶
IdentityCodeLTE applies the LTE predicate on the "identity_code" field.
func IdentityCodeNEQ ¶
IdentityCodeNEQ applies the NEQ predicate on the "identity_code" field.
func IdentityCodeNotIn ¶
IdentityCodeNotIn applies the NotIn predicate on the "identity_code" field.
func IdentityCodeNotNil ¶
IdentityCodeNotNil applies the NotNil predicate on the "identity_code" field.
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameIsNil ¶
LastNameIsNil applies the IsNil predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_name" field.
func LastNameNotNil ¶
LastNameNotNil applies the NotNil predicate on the "last_name" field.
func NationalCode ¶
NationalCode applies equality check predicate on the "national_code" field. It's identical to NationalCodeEQ.
func NationalCodeContains ¶
NationalCodeContains applies the Contains predicate on the "national_code" field.
func NationalCodeContainsFold ¶
NationalCodeContainsFold applies the ContainsFold predicate on the "national_code" field.
func NationalCodeEQ ¶
NationalCodeEQ applies the EQ predicate on the "national_code" field.
func NationalCodeEqualFold ¶
NationalCodeEqualFold applies the EqualFold predicate on the "national_code" field.
func NationalCodeGT ¶
NationalCodeGT applies the GT predicate on the "national_code" field.
func NationalCodeGTE ¶
NationalCodeGTE applies the GTE predicate on the "national_code" field.
func NationalCodeHasPrefix ¶
NationalCodeHasPrefix applies the HasPrefix predicate on the "national_code" field.
func NationalCodeHasSuffix ¶
NationalCodeHasSuffix applies the HasSuffix predicate on the "national_code" field.
func NationalCodeIn ¶
NationalCodeIn applies the In predicate on the "national_code" field.
func NationalCodeIsNil ¶
NationalCodeIsNil applies the IsNil predicate on the "national_code" field.
func NationalCodeLT ¶
NationalCodeLT applies the LT predicate on the "national_code" field.
func NationalCodeLTE ¶
NationalCodeLTE applies the LTE predicate on the "national_code" field.
func NationalCodeNEQ ¶
NationalCodeNEQ applies the NEQ predicate on the "national_code" field.
func NationalCodeNotIn ¶
NationalCodeNotIn applies the NotIn predicate on the "national_code" field.
func NationalCodeNotNil ¶
NationalCodeNotNil applies the NotNil predicate on the "national_code" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneIsNil ¶
PhoneIsNil applies the IsNil predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotNil ¶
PhoneNotNil applies the NotNil predicate on the "phone" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
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 Patient queries.
func ByAttachment ¶
func ByAttachment(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAttachment orders the results by attachment terms.
func ByAttachmentCount ¶
func ByAttachmentCount(opts ...sql.OrderTermOption) OrderOption
ByAttachmentCount orders the results by attachment count.
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 ByFatherName ¶
func ByFatherName(opts ...sql.OrderTermOption) OrderOption
ByFatherName orders the results by the father_name field.
func ByFirstName ¶
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_name field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIdentityCode ¶
func ByIdentityCode(opts ...sql.OrderTermOption) OrderOption
ByIdentityCode orders the results by the identity_code field.
func ByLastName ¶
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByNationalCode ¶
func ByNationalCode(opts ...sql.OrderTermOption) OrderOption
ByNationalCode orders the results by the national_code field.
func ByPhone ¶
func ByPhone(opts ...sql.OrderTermOption) OrderOption
ByPhone orders the results by the phone field.
func ByReception ¶
func ByReception(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReception orders the results by reception terms.
func ByReceptionCount ¶
func ByReceptionCount(opts ...sql.OrderTermOption) OrderOption
ByReceptionCount orders the results by reception count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.