patient

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

Columns holds all SQL columns for patient fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)

Functions

func And

func And(predicates ...predicate.Patient) predicate.Patient

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Patient

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Patient

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Patient

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Patient

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Patient

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Patient

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Patient

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Patient

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Patient

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Patient

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Patient

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Patient

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Patient

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Patient

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Patient

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Patient

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Patient

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Patient

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Patient

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Patient

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func FatherName

func FatherName(v string) predicate.Patient

FatherName applies equality check predicate on the "father_name" field. It's identical to FatherNameEQ.

func FatherNameContains

func FatherNameContains(v string) predicate.Patient

FatherNameContains applies the Contains predicate on the "father_name" field.

func FatherNameContainsFold

func FatherNameContainsFold(v string) predicate.Patient

FatherNameContainsFold applies the ContainsFold predicate on the "father_name" field.

func FatherNameEQ

func FatherNameEQ(v string) predicate.Patient

FatherNameEQ applies the EQ predicate on the "father_name" field.

func FatherNameEqualFold

func FatherNameEqualFold(v string) predicate.Patient

FatherNameEqualFold applies the EqualFold predicate on the "father_name" field.

func FatherNameGT

func FatherNameGT(v string) predicate.Patient

FatherNameGT applies the GT predicate on the "father_name" field.

func FatherNameGTE

func FatherNameGTE(v string) predicate.Patient

FatherNameGTE applies the GTE predicate on the "father_name" field.

func FatherNameHasPrefix

func FatherNameHasPrefix(v string) predicate.Patient

FatherNameHasPrefix applies the HasPrefix predicate on the "father_name" field.

func FatherNameHasSuffix

func FatherNameHasSuffix(v string) predicate.Patient

FatherNameHasSuffix applies the HasSuffix predicate on the "father_name" field.

func FatherNameIn

func FatherNameIn(vs ...string) predicate.Patient

FatherNameIn applies the In predicate on the "father_name" field.

func FatherNameIsNil

func FatherNameIsNil() predicate.Patient

FatherNameIsNil applies the IsNil predicate on the "father_name" field.

func FatherNameLT

func FatherNameLT(v string) predicate.Patient

FatherNameLT applies the LT predicate on the "father_name" field.

func FatherNameLTE

func FatherNameLTE(v string) predicate.Patient

FatherNameLTE applies the LTE predicate on the "father_name" field.

func FatherNameNEQ

func FatherNameNEQ(v string) predicate.Patient

FatherNameNEQ applies the NEQ predicate on the "father_name" field.

func FatherNameNotIn

func FatherNameNotIn(vs ...string) predicate.Patient

FatherNameNotIn applies the NotIn predicate on the "father_name" field.

func FatherNameNotNil

func FatherNameNotNil() predicate.Patient

FatherNameNotNil applies the NotNil predicate on the "father_name" field.

func FirstName

func FirstName(v string) predicate.Patient

FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.

func FirstNameContains

func FirstNameContains(v string) predicate.Patient

FirstNameContains applies the Contains predicate on the "first_name" field.

func FirstNameContainsFold

func FirstNameContainsFold(v string) predicate.Patient

FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.

func FirstNameEQ

func FirstNameEQ(v string) predicate.Patient

FirstNameEQ applies the EQ predicate on the "first_name" field.

func FirstNameEqualFold

func FirstNameEqualFold(v string) predicate.Patient

FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.

func FirstNameGT

func FirstNameGT(v string) predicate.Patient

FirstNameGT applies the GT predicate on the "first_name" field.

func FirstNameGTE

func FirstNameGTE(v string) predicate.Patient

FirstNameGTE applies the GTE predicate on the "first_name" field.

func FirstNameHasPrefix

func FirstNameHasPrefix(v string) predicate.Patient

FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.

func FirstNameHasSuffix

func FirstNameHasSuffix(v string) predicate.Patient

FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.

func FirstNameIn

func FirstNameIn(vs ...string) predicate.Patient

FirstNameIn applies the In predicate on the "first_name" field.

func FirstNameIsNil

func FirstNameIsNil() predicate.Patient

FirstNameIsNil applies the IsNil predicate on the "first_name" field.

func FirstNameLT

func FirstNameLT(v string) predicate.Patient

FirstNameLT applies the LT predicate on the "first_name" field.

func FirstNameLTE

func FirstNameLTE(v string) predicate.Patient

FirstNameLTE applies the LTE predicate on the "first_name" field.

func FirstNameNEQ

func FirstNameNEQ(v string) predicate.Patient

FirstNameNEQ applies the NEQ predicate on the "first_name" field.

func FirstNameNotIn

func FirstNameNotIn(vs ...string) predicate.Patient

FirstNameNotIn applies the NotIn predicate on the "first_name" field.

func FirstNameNotNil

func FirstNameNotNil() predicate.Patient

FirstNameNotNil applies the NotNil predicate on the "first_name" field.

func HasAttachment

func HasAttachment() predicate.Patient

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

func HasReception() predicate.Patient

HasReception applies the HasEdge predicate on the "reception" edge.

func HasReceptionWith

func HasReceptionWith(preds ...predicate.Reception) predicate.Patient

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

func ID

func ID(id int) predicate.Patient

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Patient

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Patient

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Patient

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Patient

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Patient

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Patient

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Patient

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Patient

IDNotIn applies the NotIn predicate on the ID field.

func IdentityCode

func IdentityCode(v string) predicate.Patient

IdentityCode applies equality check predicate on the "identity_code" field. It's identical to IdentityCodeEQ.

func IdentityCodeContains

func IdentityCodeContains(v string) predicate.Patient

IdentityCodeContains applies the Contains predicate on the "identity_code" field.

func IdentityCodeContainsFold

func IdentityCodeContainsFold(v string) predicate.Patient

IdentityCodeContainsFold applies the ContainsFold predicate on the "identity_code" field.

func IdentityCodeEQ

func IdentityCodeEQ(v string) predicate.Patient

IdentityCodeEQ applies the EQ predicate on the "identity_code" field.

func IdentityCodeEqualFold

func IdentityCodeEqualFold(v string) predicate.Patient

IdentityCodeEqualFold applies the EqualFold predicate on the "identity_code" field.

func IdentityCodeGT

func IdentityCodeGT(v string) predicate.Patient

IdentityCodeGT applies the GT predicate on the "identity_code" field.

func IdentityCodeGTE

func IdentityCodeGTE(v string) predicate.Patient

IdentityCodeGTE applies the GTE predicate on the "identity_code" field.

func IdentityCodeHasPrefix

func IdentityCodeHasPrefix(v string) predicate.Patient

IdentityCodeHasPrefix applies the HasPrefix predicate on the "identity_code" field.

func IdentityCodeHasSuffix

func IdentityCodeHasSuffix(v string) predicate.Patient

IdentityCodeHasSuffix applies the HasSuffix predicate on the "identity_code" field.

func IdentityCodeIn

func IdentityCodeIn(vs ...string) predicate.Patient

IdentityCodeIn applies the In predicate on the "identity_code" field.

func IdentityCodeIsNil

func IdentityCodeIsNil() predicate.Patient

IdentityCodeIsNil applies the IsNil predicate on the "identity_code" field.

func IdentityCodeLT

func IdentityCodeLT(v string) predicate.Patient

IdentityCodeLT applies the LT predicate on the "identity_code" field.

func IdentityCodeLTE

func IdentityCodeLTE(v string) predicate.Patient

IdentityCodeLTE applies the LTE predicate on the "identity_code" field.

func IdentityCodeNEQ

func IdentityCodeNEQ(v string) predicate.Patient

IdentityCodeNEQ applies the NEQ predicate on the "identity_code" field.

func IdentityCodeNotIn

func IdentityCodeNotIn(vs ...string) predicate.Patient

IdentityCodeNotIn applies the NotIn predicate on the "identity_code" field.

func IdentityCodeNotNil

func IdentityCodeNotNil() predicate.Patient

IdentityCodeNotNil applies the NotNil predicate on the "identity_code" field.

func LastName

func LastName(v string) predicate.Patient

LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.

func LastNameContains

func LastNameContains(v string) predicate.Patient

LastNameContains applies the Contains predicate on the "last_name" field.

func LastNameContainsFold

func LastNameContainsFold(v string) predicate.Patient

LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.

func LastNameEQ

func LastNameEQ(v string) predicate.Patient

LastNameEQ applies the EQ predicate on the "last_name" field.

func LastNameEqualFold

func LastNameEqualFold(v string) predicate.Patient

LastNameEqualFold applies the EqualFold predicate on the "last_name" field.

func LastNameGT

func LastNameGT(v string) predicate.Patient

LastNameGT applies the GT predicate on the "last_name" field.

func LastNameGTE

func LastNameGTE(v string) predicate.Patient

LastNameGTE applies the GTE predicate on the "last_name" field.

func LastNameHasPrefix

func LastNameHasPrefix(v string) predicate.Patient

LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.

func LastNameHasSuffix

func LastNameHasSuffix(v string) predicate.Patient

LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.

func LastNameIn

func LastNameIn(vs ...string) predicate.Patient

LastNameIn applies the In predicate on the "last_name" field.

func LastNameIsNil

func LastNameIsNil() predicate.Patient

LastNameIsNil applies the IsNil predicate on the "last_name" field.

func LastNameLT

func LastNameLT(v string) predicate.Patient

LastNameLT applies the LT predicate on the "last_name" field.

func LastNameLTE

func LastNameLTE(v string) predicate.Patient

LastNameLTE applies the LTE predicate on the "last_name" field.

func LastNameNEQ

func LastNameNEQ(v string) predicate.Patient

LastNameNEQ applies the NEQ predicate on the "last_name" field.

func LastNameNotIn

func LastNameNotIn(vs ...string) predicate.Patient

LastNameNotIn applies the NotIn predicate on the "last_name" field.

func LastNameNotNil

func LastNameNotNil() predicate.Patient

LastNameNotNil applies the NotNil predicate on the "last_name" field.

func NationalCode

func NationalCode(v string) predicate.Patient

NationalCode applies equality check predicate on the "national_code" field. It's identical to NationalCodeEQ.

func NationalCodeContains

func NationalCodeContains(v string) predicate.Patient

NationalCodeContains applies the Contains predicate on the "national_code" field.

func NationalCodeContainsFold

func NationalCodeContainsFold(v string) predicate.Patient

NationalCodeContainsFold applies the ContainsFold predicate on the "national_code" field.

func NationalCodeEQ

func NationalCodeEQ(v string) predicate.Patient

NationalCodeEQ applies the EQ predicate on the "national_code" field.

func NationalCodeEqualFold

func NationalCodeEqualFold(v string) predicate.Patient

NationalCodeEqualFold applies the EqualFold predicate on the "national_code" field.

func NationalCodeGT

func NationalCodeGT(v string) predicate.Patient

NationalCodeGT applies the GT predicate on the "national_code" field.

func NationalCodeGTE

func NationalCodeGTE(v string) predicate.Patient

NationalCodeGTE applies the GTE predicate on the "national_code" field.

func NationalCodeHasPrefix

func NationalCodeHasPrefix(v string) predicate.Patient

NationalCodeHasPrefix applies the HasPrefix predicate on the "national_code" field.

func NationalCodeHasSuffix

func NationalCodeHasSuffix(v string) predicate.Patient

NationalCodeHasSuffix applies the HasSuffix predicate on the "national_code" field.

func NationalCodeIn

func NationalCodeIn(vs ...string) predicate.Patient

NationalCodeIn applies the In predicate on the "national_code" field.

func NationalCodeIsNil

func NationalCodeIsNil() predicate.Patient

NationalCodeIsNil applies the IsNil predicate on the "national_code" field.

func NationalCodeLT

func NationalCodeLT(v string) predicate.Patient

NationalCodeLT applies the LT predicate on the "national_code" field.

func NationalCodeLTE

func NationalCodeLTE(v string) predicate.Patient

NationalCodeLTE applies the LTE predicate on the "national_code" field.

func NationalCodeNEQ

func NationalCodeNEQ(v string) predicate.Patient

NationalCodeNEQ applies the NEQ predicate on the "national_code" field.

func NationalCodeNotIn

func NationalCodeNotIn(vs ...string) predicate.Patient

NationalCodeNotIn applies the NotIn predicate on the "national_code" field.

func NationalCodeNotNil

func NationalCodeNotNil() predicate.Patient

NationalCodeNotNil applies the NotNil predicate on the "national_code" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Patient) predicate.Patient

Or groups predicates with the OR operator between them.

func Phone

func Phone(v string) predicate.Patient

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.Patient

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.Patient

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.Patient

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.Patient

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.Patient

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.Patient

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.Patient

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.Patient

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...string) predicate.Patient

PhoneIn applies the In predicate on the "phone" field.

func PhoneIsNil

func PhoneIsNil() predicate.Patient

PhoneIsNil applies the IsNil predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.Patient

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.Patient

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.Patient

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...string) predicate.Patient

PhoneNotIn applies the NotIn predicate on the "phone" field.

func PhoneNotNil

func PhoneNotNil() predicate.Patient

PhoneNotNil applies the NotNil predicate on the "phone" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Patient

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Patient

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Patient

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Patient

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Patient

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Patient

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Patient

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Patient

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Patient

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Patient

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Patient

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 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.

Jump to

Keyboard shortcuts

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