Documentation ¶
Index ¶
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- type Aggregate
- type Alert
- type AlertClient
- func (c *AlertClient) Create() *AlertCreate
- func (c *AlertClient) Delete() *AlertDelete
- func (c *AlertClient) DeleteOne(a *Alert) *AlertDeleteOne
- func (c *AlertClient) DeleteOneID(id int) *AlertDeleteOne
- func (c *AlertClient) Get(ctx context.Context, id int) (*Alert, error)
- func (c *AlertClient) GetX(ctx context.Context, id int) *Alert
- func (c *AlertClient) Query() *AlertQuery
- func (c *AlertClient) Update() *AlertUpdate
- func (c *AlertClient) UpdateOne(a *Alert) *AlertUpdateOne
- func (c *AlertClient) UpdateOneID(id int) *AlertUpdateOne
- type AlertCreate
- type AlertDelete
- type AlertDeleteOne
- type AlertGroupBy
- func (agb *AlertGroupBy) Aggregate(fns ...Aggregate) *AlertGroupBy
- func (agb *AlertGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (agb *AlertGroupBy) BoolsX(ctx context.Context) []bool
- func (agb *AlertGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (agb *AlertGroupBy) Float64sX(ctx context.Context) []float64
- func (agb *AlertGroupBy) Ints(ctx context.Context) ([]int, error)
- func (agb *AlertGroupBy) IntsX(ctx context.Context) []int
- func (agb *AlertGroupBy) Scan(ctx context.Context, v interface{}) error
- func (agb *AlertGroupBy) ScanX(ctx context.Context, v interface{})
- func (agb *AlertGroupBy) Strings(ctx context.Context) ([]string, error)
- func (agb *AlertGroupBy) StringsX(ctx context.Context) []string
- type AlertQuery
- func (aq *AlertQuery) All(ctx context.Context) ([]*Alert, error)
- func (aq *AlertQuery) AllX(ctx context.Context) []*Alert
- func (aq *AlertQuery) Clone() *AlertQuery
- func (aq *AlertQuery) Count(ctx context.Context) (int, error)
- func (aq *AlertQuery) CountX(ctx context.Context) int
- func (aq *AlertQuery) Exist(ctx context.Context) (bool, error)
- func (aq *AlertQuery) ExistX(ctx context.Context) bool
- func (aq *AlertQuery) First(ctx context.Context) (*Alert, error)
- func (aq *AlertQuery) FirstID(ctx context.Context) (id int, err error)
- func (aq *AlertQuery) FirstX(ctx context.Context) *Alert
- func (aq *AlertQuery) FirstXID(ctx context.Context) int
- func (aq *AlertQuery) GroupBy(field string, fields ...string) *AlertGroupBy
- func (aq *AlertQuery) IDs(ctx context.Context) ([]int, error)
- func (aq *AlertQuery) IDsX(ctx context.Context) []int
- func (aq *AlertQuery) Limit(limit int) *AlertQuery
- func (aq *AlertQuery) Offset(offset int) *AlertQuery
- func (aq *AlertQuery) Only(ctx context.Context) (*Alert, error)
- func (aq *AlertQuery) OnlyID(ctx context.Context) (id int, err error)
- func (aq *AlertQuery) OnlyX(ctx context.Context) *Alert
- func (aq *AlertQuery) OnlyXID(ctx context.Context) int
- func (aq *AlertQuery) Order(o ...Order) *AlertQuery
- func (aq *AlertQuery) Select(field string, fields ...string) *AlertSelect
- func (aq *AlertQuery) Where(ps ...predicate.Alert) *AlertQuery
- type AlertSelect
- func (as *AlertSelect) Bools(ctx context.Context) ([]bool, error)
- func (as *AlertSelect) BoolsX(ctx context.Context) []bool
- func (as *AlertSelect) Float64s(ctx context.Context) ([]float64, error)
- func (as *AlertSelect) Float64sX(ctx context.Context) []float64
- func (as *AlertSelect) Ints(ctx context.Context) ([]int, error)
- func (as *AlertSelect) IntsX(ctx context.Context) []int
- func (as *AlertSelect) Scan(ctx context.Context, v interface{}) error
- func (as *AlertSelect) ScanX(ctx context.Context, v interface{})
- func (as *AlertSelect) Strings(ctx context.Context) ([]string, error)
- func (as *AlertSelect) StringsX(ctx context.Context) []string
- type AlertUpdate
- type AlertUpdateOne
- type Alerts
- type Client
- type ClinicalResults
- type ClinicalResultsClient
- func (c *ClinicalResultsClient) Create() *ClinicalResultsCreate
- func (c *ClinicalResultsClient) Delete() *ClinicalResultsDelete
- func (c *ClinicalResultsClient) DeleteOne(cr *ClinicalResults) *ClinicalResultsDeleteOne
- func (c *ClinicalResultsClient) DeleteOneID(id uuid.UUID) *ClinicalResultsDeleteOne
- func (c *ClinicalResultsClient) Get(ctx context.Context, id uuid.UUID) (*ClinicalResults, error)
- func (c *ClinicalResultsClient) GetX(ctx context.Context, id uuid.UUID) *ClinicalResults
- func (c *ClinicalResultsClient) Query() *ClinicalResultsQuery
- func (c *ClinicalResultsClient) QueryTest(cr *ClinicalResults) *TestQuery
- func (c *ClinicalResultsClient) Update() *ClinicalResultsUpdate
- func (c *ClinicalResultsClient) UpdateOne(cr *ClinicalResults) *ClinicalResultsUpdateOne
- func (c *ClinicalResultsClient) UpdateOneID(id uuid.UUID) *ClinicalResultsUpdateOne
- type ClinicalResultsCreate
- func (crc *ClinicalResultsCreate) Save(ctx context.Context) (*ClinicalResults, error)
- func (crc *ClinicalResultsCreate) SaveX(ctx context.Context) *ClinicalResults
- func (crc *ClinicalResultsCreate) SetDyspnea(b bool) *ClinicalResultsCreate
- func (crc *ClinicalResultsCreate) SetFever(b bool) *ClinicalResultsCreate
- func (crc *ClinicalResultsCreate) SetGeneralDiscomfort(b bool) *ClinicalResultsCreate
- func (crc *ClinicalResultsCreate) SetID(u uuid.UUID) *ClinicalResultsCreate
- func (crc *ClinicalResultsCreate) SetNillableTestID(id *uuid.UUID) *ClinicalResultsCreate
- func (crc *ClinicalResultsCreate) SetTest(t *Test) *ClinicalResultsCreate
- func (crc *ClinicalResultsCreate) SetTestID(id uuid.UUID) *ClinicalResultsCreate
- func (crc *ClinicalResultsCreate) SetThirdAge(b bool) *ClinicalResultsCreate
- type ClinicalResultsDelete
- type ClinicalResultsDeleteOne
- type ClinicalResultsEdges
- type ClinicalResultsGroupBy
- func (crgb *ClinicalResultsGroupBy) Aggregate(fns ...Aggregate) *ClinicalResultsGroupBy
- func (crgb *ClinicalResultsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (crgb *ClinicalResultsGroupBy) BoolsX(ctx context.Context) []bool
- func (crgb *ClinicalResultsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (crgb *ClinicalResultsGroupBy) Float64sX(ctx context.Context) []float64
- func (crgb *ClinicalResultsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (crgb *ClinicalResultsGroupBy) IntsX(ctx context.Context) []int
- func (crgb *ClinicalResultsGroupBy) Scan(ctx context.Context, v interface{}) error
- func (crgb *ClinicalResultsGroupBy) ScanX(ctx context.Context, v interface{})
- func (crgb *ClinicalResultsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (crgb *ClinicalResultsGroupBy) StringsX(ctx context.Context) []string
- type ClinicalResultsQuery
- func (crq *ClinicalResultsQuery) All(ctx context.Context) ([]*ClinicalResults, error)
- func (crq *ClinicalResultsQuery) AllX(ctx context.Context) []*ClinicalResults
- func (crq *ClinicalResultsQuery) Clone() *ClinicalResultsQuery
- func (crq *ClinicalResultsQuery) Count(ctx context.Context) (int, error)
- func (crq *ClinicalResultsQuery) CountX(ctx context.Context) int
- func (crq *ClinicalResultsQuery) Exist(ctx context.Context) (bool, error)
- func (crq *ClinicalResultsQuery) ExistX(ctx context.Context) bool
- func (crq *ClinicalResultsQuery) First(ctx context.Context) (*ClinicalResults, error)
- func (crq *ClinicalResultsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (crq *ClinicalResultsQuery) FirstX(ctx context.Context) *ClinicalResults
- func (crq *ClinicalResultsQuery) FirstXID(ctx context.Context) uuid.UUID
- func (crq *ClinicalResultsQuery) GroupBy(field string, fields ...string) *ClinicalResultsGroupBy
- func (crq *ClinicalResultsQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (crq *ClinicalResultsQuery) IDsX(ctx context.Context) []uuid.UUID
- func (crq *ClinicalResultsQuery) Limit(limit int) *ClinicalResultsQuery
- func (crq *ClinicalResultsQuery) Offset(offset int) *ClinicalResultsQuery
- func (crq *ClinicalResultsQuery) Only(ctx context.Context) (*ClinicalResults, error)
- func (crq *ClinicalResultsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (crq *ClinicalResultsQuery) OnlyX(ctx context.Context) *ClinicalResults
- func (crq *ClinicalResultsQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (crq *ClinicalResultsQuery) Order(o ...Order) *ClinicalResultsQuery
- func (crq *ClinicalResultsQuery) QueryTest() *TestQuery
- func (crq *ClinicalResultsQuery) Select(field string, fields ...string) *ClinicalResultsSelect
- func (crq *ClinicalResultsQuery) Where(ps ...predicate.ClinicalResults) *ClinicalResultsQuery
- func (crq *ClinicalResultsQuery) WithTest(opts ...func(*TestQuery)) *ClinicalResultsQuery
- type ClinicalResultsSelect
- func (crs *ClinicalResultsSelect) Bools(ctx context.Context) ([]bool, error)
- func (crs *ClinicalResultsSelect) BoolsX(ctx context.Context) []bool
- func (crs *ClinicalResultsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (crs *ClinicalResultsSelect) Float64sX(ctx context.Context) []float64
- func (crs *ClinicalResultsSelect) Ints(ctx context.Context) ([]int, error)
- func (crs *ClinicalResultsSelect) IntsX(ctx context.Context) []int
- func (crs *ClinicalResultsSelect) Scan(ctx context.Context, v interface{}) error
- func (crs *ClinicalResultsSelect) ScanX(ctx context.Context, v interface{})
- func (crs *ClinicalResultsSelect) Strings(ctx context.Context) ([]string, error)
- func (crs *ClinicalResultsSelect) StringsX(ctx context.Context) []string
- type ClinicalResultsSlice
- type ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) ClearTest() *ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) Exec(ctx context.Context) error
- func (cru *ClinicalResultsUpdate) ExecX(ctx context.Context)
- func (cru *ClinicalResultsUpdate) Save(ctx context.Context) (int, error)
- func (cru *ClinicalResultsUpdate) SaveX(ctx context.Context) int
- func (cru *ClinicalResultsUpdate) SetDyspnea(b bool) *ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) SetFever(b bool) *ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) SetGeneralDiscomfort(b bool) *ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) SetNillableTestID(id *uuid.UUID) *ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) SetTest(t *Test) *ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) SetTestID(id uuid.UUID) *ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) SetThirdAge(b bool) *ClinicalResultsUpdate
- func (cru *ClinicalResultsUpdate) Where(ps ...predicate.ClinicalResults) *ClinicalResultsUpdate
- type ClinicalResultsUpdateOne
- func (cruo *ClinicalResultsUpdateOne) ClearTest() *ClinicalResultsUpdateOne
- func (cruo *ClinicalResultsUpdateOne) Exec(ctx context.Context) error
- func (cruo *ClinicalResultsUpdateOne) ExecX(ctx context.Context)
- func (cruo *ClinicalResultsUpdateOne) Save(ctx context.Context) (*ClinicalResults, error)
- func (cruo *ClinicalResultsUpdateOne) SaveX(ctx context.Context) *ClinicalResults
- func (cruo *ClinicalResultsUpdateOne) SetDyspnea(b bool) *ClinicalResultsUpdateOne
- func (cruo *ClinicalResultsUpdateOne) SetFever(b bool) *ClinicalResultsUpdateOne
- func (cruo *ClinicalResultsUpdateOne) SetGeneralDiscomfort(b bool) *ClinicalResultsUpdateOne
- func (cruo *ClinicalResultsUpdateOne) SetNillableTestID(id *uuid.UUID) *ClinicalResultsUpdateOne
- func (cruo *ClinicalResultsUpdateOne) SetTest(t *Test) *ClinicalResultsUpdateOne
- func (cruo *ClinicalResultsUpdateOne) SetTestID(id uuid.UUID) *ClinicalResultsUpdateOne
- func (cruo *ClinicalResultsUpdateOne) SetThirdAge(b bool) *ClinicalResultsUpdateOne
- type ConstraintError
- type Doctor
- type DoctorClient
- func (c *DoctorClient) Create() *DoctorCreate
- func (c *DoctorClient) Delete() *DoctorDelete
- func (c *DoctorClient) DeleteOne(d *Doctor) *DoctorDeleteOne
- func (c *DoctorClient) DeleteOneID(id uuid.UUID) *DoctorDeleteOne
- func (c *DoctorClient) Get(ctx context.Context, id uuid.UUID) (*Doctor, error)
- func (c *DoctorClient) GetX(ctx context.Context, id uuid.UUID) *Doctor
- func (c *DoctorClient) Query() *DoctorQuery
- func (c *DoctorClient) QueryNotes(d *Doctor) *MedicalNoteQuery
- func (c *DoctorClient) QueryResponses(d *Doctor) *TaskResponseQuery
- func (c *DoctorClient) QueryTasks(d *Doctor) *TaskQuery
- func (c *DoctorClient) Update() *DoctorUpdate
- func (c *DoctorClient) UpdateOne(d *Doctor) *DoctorUpdateOne
- func (c *DoctorClient) UpdateOneID(id uuid.UUID) *DoctorUpdateOne
- type DoctorCreate
- func (dc *DoctorCreate) AddNoteIDs(ids ...uuid.UUID) *DoctorCreate
- func (dc *DoctorCreate) AddNotes(m ...*MedicalNote) *DoctorCreate
- func (dc *DoctorCreate) AddResponseIDs(ids ...uuid.UUID) *DoctorCreate
- func (dc *DoctorCreate) AddResponses(t ...*TaskResponse) *DoctorCreate
- func (dc *DoctorCreate) AddTaskIDs(ids ...uuid.UUID) *DoctorCreate
- func (dc *DoctorCreate) AddTasks(t ...*Task) *DoctorCreate
- func (dc *DoctorCreate) Save(ctx context.Context) (*Doctor, error)
- func (dc *DoctorCreate) SaveX(ctx context.Context) *Doctor
- func (dc *DoctorCreate) SetEmail(s string) *DoctorCreate
- func (dc *DoctorCreate) SetID(u uuid.UUID) *DoctorCreate
- func (dc *DoctorCreate) SetLastConnection(t time.Time) *DoctorCreate
- func (dc *DoctorCreate) SetName(s []string) *DoctorCreate
- func (dc *DoctorCreate) SetNillableLastConnection(t *time.Time) *DoctorCreate
- func (dc *DoctorCreate) SetNillableVolunteer(b *bool) *DoctorCreate
- func (dc *DoctorCreate) SetPhone(s string) *DoctorCreate
- func (dc *DoctorCreate) SetState(d doctor.State) *DoctorCreate
- func (dc *DoctorCreate) SetVolunteer(b bool) *DoctorCreate
- type DoctorDelete
- type DoctorDeleteOne
- type DoctorEdges
- type DoctorGroupBy
- func (dgb *DoctorGroupBy) Aggregate(fns ...Aggregate) *DoctorGroupBy
- func (dgb *DoctorGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (dgb *DoctorGroupBy) BoolsX(ctx context.Context) []bool
- func (dgb *DoctorGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (dgb *DoctorGroupBy) Float64sX(ctx context.Context) []float64
- func (dgb *DoctorGroupBy) Ints(ctx context.Context) ([]int, error)
- func (dgb *DoctorGroupBy) IntsX(ctx context.Context) []int
- func (dgb *DoctorGroupBy) Scan(ctx context.Context, v interface{}) error
- func (dgb *DoctorGroupBy) ScanX(ctx context.Context, v interface{})
- func (dgb *DoctorGroupBy) Strings(ctx context.Context) ([]string, error)
- func (dgb *DoctorGroupBy) StringsX(ctx context.Context) []string
- type DoctorQuery
- func (dq *DoctorQuery) All(ctx context.Context) ([]*Doctor, error)
- func (dq *DoctorQuery) AllX(ctx context.Context) []*Doctor
- func (dq *DoctorQuery) Clone() *DoctorQuery
- func (dq *DoctorQuery) Count(ctx context.Context) (int, error)
- func (dq *DoctorQuery) CountX(ctx context.Context) int
- func (dq *DoctorQuery) Exist(ctx context.Context) (bool, error)
- func (dq *DoctorQuery) ExistX(ctx context.Context) bool
- func (dq *DoctorQuery) First(ctx context.Context) (*Doctor, error)
- func (dq *DoctorQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (dq *DoctorQuery) FirstX(ctx context.Context) *Doctor
- func (dq *DoctorQuery) FirstXID(ctx context.Context) uuid.UUID
- func (dq *DoctorQuery) GroupBy(field string, fields ...string) *DoctorGroupBy
- func (dq *DoctorQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (dq *DoctorQuery) IDsX(ctx context.Context) []uuid.UUID
- func (dq *DoctorQuery) Limit(limit int) *DoctorQuery
- func (dq *DoctorQuery) Offset(offset int) *DoctorQuery
- func (dq *DoctorQuery) Only(ctx context.Context) (*Doctor, error)
- func (dq *DoctorQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (dq *DoctorQuery) OnlyX(ctx context.Context) *Doctor
- func (dq *DoctorQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (dq *DoctorQuery) Order(o ...Order) *DoctorQuery
- func (dq *DoctorQuery) QueryNotes() *MedicalNoteQuery
- func (dq *DoctorQuery) QueryResponses() *TaskResponseQuery
- func (dq *DoctorQuery) QueryTasks() *TaskQuery
- func (dq *DoctorQuery) Select(field string, fields ...string) *DoctorSelect
- func (dq *DoctorQuery) Where(ps ...predicate.Doctor) *DoctorQuery
- func (dq *DoctorQuery) WithNotes(opts ...func(*MedicalNoteQuery)) *DoctorQuery
- func (dq *DoctorQuery) WithResponses(opts ...func(*TaskResponseQuery)) *DoctorQuery
- func (dq *DoctorQuery) WithTasks(opts ...func(*TaskQuery)) *DoctorQuery
- type DoctorSelect
- func (ds *DoctorSelect) Bools(ctx context.Context) ([]bool, error)
- func (ds *DoctorSelect) BoolsX(ctx context.Context) []bool
- func (ds *DoctorSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ds *DoctorSelect) Float64sX(ctx context.Context) []float64
- func (ds *DoctorSelect) Ints(ctx context.Context) ([]int, error)
- func (ds *DoctorSelect) IntsX(ctx context.Context) []int
- func (ds *DoctorSelect) Scan(ctx context.Context, v interface{}) error
- func (ds *DoctorSelect) ScanX(ctx context.Context, v interface{})
- func (ds *DoctorSelect) Strings(ctx context.Context) ([]string, error)
- func (ds *DoctorSelect) StringsX(ctx context.Context) []string
- type DoctorUpdate
- func (du *DoctorUpdate) AddNoteIDs(ids ...uuid.UUID) *DoctorUpdate
- func (du *DoctorUpdate) AddNotes(m ...*MedicalNote) *DoctorUpdate
- func (du *DoctorUpdate) AddResponseIDs(ids ...uuid.UUID) *DoctorUpdate
- func (du *DoctorUpdate) AddResponses(t ...*TaskResponse) *DoctorUpdate
- func (du *DoctorUpdate) AddTaskIDs(ids ...uuid.UUID) *DoctorUpdate
- func (du *DoctorUpdate) AddTasks(t ...*Task) *DoctorUpdate
- func (du *DoctorUpdate) ClearLastConnection() *DoctorUpdate
- func (du *DoctorUpdate) Exec(ctx context.Context) error
- func (du *DoctorUpdate) ExecX(ctx context.Context)
- func (du *DoctorUpdate) RemoveNoteIDs(ids ...uuid.UUID) *DoctorUpdate
- func (du *DoctorUpdate) RemoveNotes(m ...*MedicalNote) *DoctorUpdate
- func (du *DoctorUpdate) RemoveResponseIDs(ids ...uuid.UUID) *DoctorUpdate
- func (du *DoctorUpdate) RemoveResponses(t ...*TaskResponse) *DoctorUpdate
- func (du *DoctorUpdate) RemoveTaskIDs(ids ...uuid.UUID) *DoctorUpdate
- func (du *DoctorUpdate) RemoveTasks(t ...*Task) *DoctorUpdate
- func (du *DoctorUpdate) Save(ctx context.Context) (int, error)
- func (du *DoctorUpdate) SaveX(ctx context.Context) int
- func (du *DoctorUpdate) SetEmail(s string) *DoctorUpdate
- func (du *DoctorUpdate) SetLastConnection(t time.Time) *DoctorUpdate
- func (du *DoctorUpdate) SetName(s []string) *DoctorUpdate
- func (du *DoctorUpdate) SetNillableLastConnection(t *time.Time) *DoctorUpdate
- func (du *DoctorUpdate) SetNillableVolunteer(b *bool) *DoctorUpdate
- func (du *DoctorUpdate) SetPhone(s string) *DoctorUpdate
- func (du *DoctorUpdate) SetState(d doctor.State) *DoctorUpdate
- func (du *DoctorUpdate) SetVolunteer(b bool) *DoctorUpdate
- func (du *DoctorUpdate) Where(ps ...predicate.Doctor) *DoctorUpdate
- type DoctorUpdateOne
- func (duo *DoctorUpdateOne) AddNoteIDs(ids ...uuid.UUID) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) AddNotes(m ...*MedicalNote) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) AddResponseIDs(ids ...uuid.UUID) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) AddResponses(t ...*TaskResponse) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) AddTaskIDs(ids ...uuid.UUID) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) AddTasks(t ...*Task) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) ClearLastConnection() *DoctorUpdateOne
- func (duo *DoctorUpdateOne) Exec(ctx context.Context) error
- func (duo *DoctorUpdateOne) ExecX(ctx context.Context)
- func (duo *DoctorUpdateOne) RemoveNoteIDs(ids ...uuid.UUID) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) RemoveNotes(m ...*MedicalNote) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) RemoveResponseIDs(ids ...uuid.UUID) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) RemoveResponses(t ...*TaskResponse) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) RemoveTaskIDs(ids ...uuid.UUID) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) RemoveTasks(t ...*Task) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) Save(ctx context.Context) (*Doctor, error)
- func (duo *DoctorUpdateOne) SaveX(ctx context.Context) *Doctor
- func (duo *DoctorUpdateOne) SetEmail(s string) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) SetLastConnection(t time.Time) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) SetName(s []string) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) SetNillableLastConnection(t *time.Time) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) SetNillableVolunteer(b *bool) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) SetPhone(s string) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) SetState(d doctor.State) *DoctorUpdateOne
- func (duo *DoctorUpdateOne) SetVolunteer(b bool) *DoctorUpdateOne
- type Doctors
- type EpidemiologicResults
- type EpidemiologicResultsClient
- func (c *EpidemiologicResultsClient) Create() *EpidemiologicResultsCreate
- func (c *EpidemiologicResultsClient) Delete() *EpidemiologicResultsDelete
- func (c *EpidemiologicResultsClient) DeleteOne(er *EpidemiologicResults) *EpidemiologicResultsDeleteOne
- func (c *EpidemiologicResultsClient) DeleteOneID(id uuid.UUID) *EpidemiologicResultsDeleteOne
- func (c *EpidemiologicResultsClient) Get(ctx context.Context, id uuid.UUID) (*EpidemiologicResults, error)
- func (c *EpidemiologicResultsClient) GetX(ctx context.Context, id uuid.UUID) *EpidemiologicResults
- func (c *EpidemiologicResultsClient) Query() *EpidemiologicResultsQuery
- func (c *EpidemiologicResultsClient) QueryTest(er *EpidemiologicResults) *TestQuery
- func (c *EpidemiologicResultsClient) Update() *EpidemiologicResultsUpdate
- func (c *EpidemiologicResultsClient) UpdateOne(er *EpidemiologicResults) *EpidemiologicResultsUpdateOne
- func (c *EpidemiologicResultsClient) UpdateOneID(id uuid.UUID) *EpidemiologicResultsUpdateOne
- type EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) Save(ctx context.Context) (*EpidemiologicResults, error)
- func (erc *EpidemiologicResultsCreate) SaveX(ctx context.Context) *EpidemiologicResults
- func (erc *EpidemiologicResultsCreate) SetFromInfectedPlace(i int) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetID(u uuid.UUID) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetInfectedFamily(b bool) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetNillableFromInfectedPlace(i *int) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetNillableInfectedFamily(b *bool) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetNillableTestID(id *uuid.UUID) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetNillableToInfectedPlace(i *int) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetTest(t *Test) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetTestID(id uuid.UUID) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetToInfectedPlace(i int) *EpidemiologicResultsCreate
- func (erc *EpidemiologicResultsCreate) SetVisitedPlaces(s []string) *EpidemiologicResultsCreate
- type EpidemiologicResultsDelete
- type EpidemiologicResultsDeleteOne
- type EpidemiologicResultsEdges
- type EpidemiologicResultsGroupBy
- func (ergb *EpidemiologicResultsGroupBy) Aggregate(fns ...Aggregate) *EpidemiologicResultsGroupBy
- func (ergb *EpidemiologicResultsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (ergb *EpidemiologicResultsGroupBy) BoolsX(ctx context.Context) []bool
- func (ergb *EpidemiologicResultsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (ergb *EpidemiologicResultsGroupBy) Float64sX(ctx context.Context) []float64
- func (ergb *EpidemiologicResultsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (ergb *EpidemiologicResultsGroupBy) IntsX(ctx context.Context) []int
- func (ergb *EpidemiologicResultsGroupBy) Scan(ctx context.Context, v interface{}) error
- func (ergb *EpidemiologicResultsGroupBy) ScanX(ctx context.Context, v interface{})
- func (ergb *EpidemiologicResultsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (ergb *EpidemiologicResultsGroupBy) StringsX(ctx context.Context) []string
- type EpidemiologicResultsQuery
- func (erq *EpidemiologicResultsQuery) All(ctx context.Context) ([]*EpidemiologicResults, error)
- func (erq *EpidemiologicResultsQuery) AllX(ctx context.Context) []*EpidemiologicResults
- func (erq *EpidemiologicResultsQuery) Clone() *EpidemiologicResultsQuery
- func (erq *EpidemiologicResultsQuery) Count(ctx context.Context) (int, error)
- func (erq *EpidemiologicResultsQuery) CountX(ctx context.Context) int
- func (erq *EpidemiologicResultsQuery) Exist(ctx context.Context) (bool, error)
- func (erq *EpidemiologicResultsQuery) ExistX(ctx context.Context) bool
- func (erq *EpidemiologicResultsQuery) First(ctx context.Context) (*EpidemiologicResults, error)
- func (erq *EpidemiologicResultsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (erq *EpidemiologicResultsQuery) FirstX(ctx context.Context) *EpidemiologicResults
- func (erq *EpidemiologicResultsQuery) FirstXID(ctx context.Context) uuid.UUID
- func (erq *EpidemiologicResultsQuery) GroupBy(field string, fields ...string) *EpidemiologicResultsGroupBy
- func (erq *EpidemiologicResultsQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (erq *EpidemiologicResultsQuery) IDsX(ctx context.Context) []uuid.UUID
- func (erq *EpidemiologicResultsQuery) Limit(limit int) *EpidemiologicResultsQuery
- func (erq *EpidemiologicResultsQuery) Offset(offset int) *EpidemiologicResultsQuery
- func (erq *EpidemiologicResultsQuery) Only(ctx context.Context) (*EpidemiologicResults, error)
- func (erq *EpidemiologicResultsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (erq *EpidemiologicResultsQuery) OnlyX(ctx context.Context) *EpidemiologicResults
- func (erq *EpidemiologicResultsQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (erq *EpidemiologicResultsQuery) Order(o ...Order) *EpidemiologicResultsQuery
- func (erq *EpidemiologicResultsQuery) QueryTest() *TestQuery
- func (erq *EpidemiologicResultsQuery) Select(field string, fields ...string) *EpidemiologicResultsSelect
- func (erq *EpidemiologicResultsQuery) Where(ps ...predicate.EpidemiologicResults) *EpidemiologicResultsQuery
- func (erq *EpidemiologicResultsQuery) WithTest(opts ...func(*TestQuery)) *EpidemiologicResultsQuery
- type EpidemiologicResultsSelect
- func (ers *EpidemiologicResultsSelect) Bools(ctx context.Context) ([]bool, error)
- func (ers *EpidemiologicResultsSelect) BoolsX(ctx context.Context) []bool
- func (ers *EpidemiologicResultsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ers *EpidemiologicResultsSelect) Float64sX(ctx context.Context) []float64
- func (ers *EpidemiologicResultsSelect) Ints(ctx context.Context) ([]int, error)
- func (ers *EpidemiologicResultsSelect) IntsX(ctx context.Context) []int
- func (ers *EpidemiologicResultsSelect) Scan(ctx context.Context, v interface{}) error
- func (ers *EpidemiologicResultsSelect) ScanX(ctx context.Context, v interface{})
- func (ers *EpidemiologicResultsSelect) Strings(ctx context.Context) ([]string, error)
- func (ers *EpidemiologicResultsSelect) StringsX(ctx context.Context) []string
- type EpidemiologicResultsSlice
- type EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) AddFromInfectedPlace(i int) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) AddToInfectedPlace(i int) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) ClearFromInfectedPlace() *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) ClearInfectedFamily() *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) ClearTest() *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) ClearToInfectedPlace() *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) ClearVisitedPlaces() *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) Exec(ctx context.Context) error
- func (eru *EpidemiologicResultsUpdate) ExecX(ctx context.Context)
- func (eru *EpidemiologicResultsUpdate) Save(ctx context.Context) (int, error)
- func (eru *EpidemiologicResultsUpdate) SaveX(ctx context.Context) int
- func (eru *EpidemiologicResultsUpdate) SetFromInfectedPlace(i int) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetInfectedFamily(b bool) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetNillableFromInfectedPlace(i *int) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetNillableInfectedFamily(b *bool) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetNillableTestID(id *uuid.UUID) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetNillableToInfectedPlace(i *int) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetTest(t *Test) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetTestID(id uuid.UUID) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetToInfectedPlace(i int) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) SetVisitedPlaces(s []string) *EpidemiologicResultsUpdate
- func (eru *EpidemiologicResultsUpdate) Where(ps ...predicate.EpidemiologicResults) *EpidemiologicResultsUpdate
- type EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) AddFromInfectedPlace(i int) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) AddToInfectedPlace(i int) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) ClearFromInfectedPlace() *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) ClearInfectedFamily() *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) ClearTest() *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) ClearToInfectedPlace() *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) ClearVisitedPlaces() *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) Exec(ctx context.Context) error
- func (eruo *EpidemiologicResultsUpdateOne) ExecX(ctx context.Context)
- func (eruo *EpidemiologicResultsUpdateOne) Save(ctx context.Context) (*EpidemiologicResults, error)
- func (eruo *EpidemiologicResultsUpdateOne) SaveX(ctx context.Context) *EpidemiologicResults
- func (eruo *EpidemiologicResultsUpdateOne) SetFromInfectedPlace(i int) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetInfectedFamily(b bool) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetNillableFromInfectedPlace(i *int) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetNillableInfectedFamily(b *bool) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetNillableTestID(id *uuid.UUID) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetNillableToInfectedPlace(i *int) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetTest(t *Test) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetTestID(id uuid.UUID) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetToInfectedPlace(i int) *EpidemiologicResultsUpdateOne
- func (eruo *EpidemiologicResultsUpdateOne) SetVisitedPlaces(s []string) *EpidemiologicResultsUpdateOne
- type Histories
- type History
- type HistoryClient
- func (c *HistoryClient) Create() *HistoryCreate
- func (c *HistoryClient) Delete() *HistoryDelete
- func (c *HistoryClient) DeleteOne(h *History) *HistoryDeleteOne
- func (c *HistoryClient) DeleteOneID(id uuid.UUID) *HistoryDeleteOne
- func (c *HistoryClient) Get(ctx context.Context, id uuid.UUID) (*History, error)
- func (c *HistoryClient) GetX(ctx context.Context, id uuid.UUID) *History
- func (c *HistoryClient) Query() *HistoryQuery
- func (c *HistoryClient) QueryNotes(h *History) *MedicalNoteQuery
- func (c *HistoryClient) QueryPatient(h *History) *PatientQuery
- func (c *HistoryClient) QueryTests(h *History) *TestQuery
- func (c *HistoryClient) Update() *HistoryUpdate
- func (c *HistoryClient) UpdateOne(h *History) *HistoryUpdateOne
- func (c *HistoryClient) UpdateOneID(id uuid.UUID) *HistoryUpdateOne
- type HistoryCreate
- func (hc *HistoryCreate) AddNoteIDs(ids ...uuid.UUID) *HistoryCreate
- func (hc *HistoryCreate) AddNotes(m ...*MedicalNote) *HistoryCreate
- func (hc *HistoryCreate) AddTestIDs(ids ...uuid.UUID) *HistoryCreate
- func (hc *HistoryCreate) AddTests(t ...*Test) *HistoryCreate
- func (hc *HistoryCreate) Save(ctx context.Context) (*History, error)
- func (hc *HistoryCreate) SaveX(ctx context.Context) *History
- func (hc *HistoryCreate) SetID(u uuid.UUID) *HistoryCreate
- func (hc *HistoryCreate) SetNillablePatientID(id *uuid.UUID) *HistoryCreate
- func (hc *HistoryCreate) SetPatient(p *Patient) *HistoryCreate
- func (hc *HistoryCreate) SetPatientID(id uuid.UUID) *HistoryCreate
- type HistoryDelete
- type HistoryDeleteOne
- type HistoryEdges
- type HistoryGroupBy
- func (hgb *HistoryGroupBy) Aggregate(fns ...Aggregate) *HistoryGroupBy
- func (hgb *HistoryGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (hgb *HistoryGroupBy) BoolsX(ctx context.Context) []bool
- func (hgb *HistoryGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (hgb *HistoryGroupBy) Float64sX(ctx context.Context) []float64
- func (hgb *HistoryGroupBy) Ints(ctx context.Context) ([]int, error)
- func (hgb *HistoryGroupBy) IntsX(ctx context.Context) []int
- func (hgb *HistoryGroupBy) Scan(ctx context.Context, v interface{}) error
- func (hgb *HistoryGroupBy) ScanX(ctx context.Context, v interface{})
- func (hgb *HistoryGroupBy) Strings(ctx context.Context) ([]string, error)
- func (hgb *HistoryGroupBy) StringsX(ctx context.Context) []string
- type HistoryQuery
- func (hq *HistoryQuery) All(ctx context.Context) ([]*History, error)
- func (hq *HistoryQuery) AllX(ctx context.Context) []*History
- func (hq *HistoryQuery) Clone() *HistoryQuery
- func (hq *HistoryQuery) Count(ctx context.Context) (int, error)
- func (hq *HistoryQuery) CountX(ctx context.Context) int
- func (hq *HistoryQuery) Exist(ctx context.Context) (bool, error)
- func (hq *HistoryQuery) ExistX(ctx context.Context) bool
- func (hq *HistoryQuery) First(ctx context.Context) (*History, error)
- func (hq *HistoryQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (hq *HistoryQuery) FirstX(ctx context.Context) *History
- func (hq *HistoryQuery) FirstXID(ctx context.Context) uuid.UUID
- func (hq *HistoryQuery) GroupBy(field string, fields ...string) *HistoryGroupBy
- func (hq *HistoryQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (hq *HistoryQuery) IDsX(ctx context.Context) []uuid.UUID
- func (hq *HistoryQuery) Limit(limit int) *HistoryQuery
- func (hq *HistoryQuery) Offset(offset int) *HistoryQuery
- func (hq *HistoryQuery) Only(ctx context.Context) (*History, error)
- func (hq *HistoryQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (hq *HistoryQuery) OnlyX(ctx context.Context) *History
- func (hq *HistoryQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (hq *HistoryQuery) Order(o ...Order) *HistoryQuery
- func (hq *HistoryQuery) QueryNotes() *MedicalNoteQuery
- func (hq *HistoryQuery) QueryPatient() *PatientQuery
- func (hq *HistoryQuery) QueryTests() *TestQuery
- func (hq *HistoryQuery) Select(field string, fields ...string) *HistorySelect
- func (hq *HistoryQuery) Where(ps ...predicate.History) *HistoryQuery
- func (hq *HistoryQuery) WithNotes(opts ...func(*MedicalNoteQuery)) *HistoryQuery
- func (hq *HistoryQuery) WithPatient(opts ...func(*PatientQuery)) *HistoryQuery
- func (hq *HistoryQuery) WithTests(opts ...func(*TestQuery)) *HistoryQuery
- type HistorySelect
- func (hs *HistorySelect) Bools(ctx context.Context) ([]bool, error)
- func (hs *HistorySelect) BoolsX(ctx context.Context) []bool
- func (hs *HistorySelect) Float64s(ctx context.Context) ([]float64, error)
- func (hs *HistorySelect) Float64sX(ctx context.Context) []float64
- func (hs *HistorySelect) Ints(ctx context.Context) ([]int, error)
- func (hs *HistorySelect) IntsX(ctx context.Context) []int
- func (hs *HistorySelect) Scan(ctx context.Context, v interface{}) error
- func (hs *HistorySelect) ScanX(ctx context.Context, v interface{})
- func (hs *HistorySelect) Strings(ctx context.Context) ([]string, error)
- func (hs *HistorySelect) StringsX(ctx context.Context) []string
- type HistoryUpdate
- func (hu *HistoryUpdate) AddNoteIDs(ids ...uuid.UUID) *HistoryUpdate
- func (hu *HistoryUpdate) AddNotes(m ...*MedicalNote) *HistoryUpdate
- func (hu *HistoryUpdate) AddTestIDs(ids ...uuid.UUID) *HistoryUpdate
- func (hu *HistoryUpdate) AddTests(t ...*Test) *HistoryUpdate
- func (hu *HistoryUpdate) ClearPatient() *HistoryUpdate
- func (hu *HistoryUpdate) Exec(ctx context.Context) error
- func (hu *HistoryUpdate) ExecX(ctx context.Context)
- func (hu *HistoryUpdate) RemoveNoteIDs(ids ...uuid.UUID) *HistoryUpdate
- func (hu *HistoryUpdate) RemoveNotes(m ...*MedicalNote) *HistoryUpdate
- func (hu *HistoryUpdate) RemoveTestIDs(ids ...uuid.UUID) *HistoryUpdate
- func (hu *HistoryUpdate) RemoveTests(t ...*Test) *HistoryUpdate
- func (hu *HistoryUpdate) Save(ctx context.Context) (int, error)
- func (hu *HistoryUpdate) SaveX(ctx context.Context) int
- func (hu *HistoryUpdate) SetNillablePatientID(id *uuid.UUID) *HistoryUpdate
- func (hu *HistoryUpdate) SetPatient(p *Patient) *HistoryUpdate
- func (hu *HistoryUpdate) SetPatientID(id uuid.UUID) *HistoryUpdate
- func (hu *HistoryUpdate) Where(ps ...predicate.History) *HistoryUpdate
- type HistoryUpdateOne
- func (huo *HistoryUpdateOne) AddNoteIDs(ids ...uuid.UUID) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) AddNotes(m ...*MedicalNote) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) AddTestIDs(ids ...uuid.UUID) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) AddTests(t ...*Test) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) ClearPatient() *HistoryUpdateOne
- func (huo *HistoryUpdateOne) Exec(ctx context.Context) error
- func (huo *HistoryUpdateOne) ExecX(ctx context.Context)
- func (huo *HistoryUpdateOne) RemoveNoteIDs(ids ...uuid.UUID) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) RemoveNotes(m ...*MedicalNote) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) RemoveTestIDs(ids ...uuid.UUID) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) RemoveTests(t ...*Test) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) Save(ctx context.Context) (*History, error)
- func (huo *HistoryUpdateOne) SaveX(ctx context.Context) *History
- func (huo *HistoryUpdateOne) SetNillablePatientID(id *uuid.UUID) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) SetPatient(p *Patient) *HistoryUpdateOne
- func (huo *HistoryUpdateOne) SetPatientID(id uuid.UUID) *HistoryUpdateOne
- type MedicalNote
- type MedicalNoteClient
- func (c *MedicalNoteClient) Create() *MedicalNoteCreate
- func (c *MedicalNoteClient) Delete() *MedicalNoteDelete
- func (c *MedicalNoteClient) DeleteOne(mn *MedicalNote) *MedicalNoteDeleteOne
- func (c *MedicalNoteClient) DeleteOneID(id uuid.UUID) *MedicalNoteDeleteOne
- func (c *MedicalNoteClient) Get(ctx context.Context, id uuid.UUID) (*MedicalNote, error)
- func (c *MedicalNoteClient) GetX(ctx context.Context, id uuid.UUID) *MedicalNote
- func (c *MedicalNoteClient) Query() *MedicalNoteQuery
- func (c *MedicalNoteClient) QueryHistory(mn *MedicalNote) *HistoryQuery
- func (c *MedicalNoteClient) QueryOwner(mn *MedicalNote) *DoctorQuery
- func (c *MedicalNoteClient) Update() *MedicalNoteUpdate
- func (c *MedicalNoteClient) UpdateOne(mn *MedicalNote) *MedicalNoteUpdateOne
- func (c *MedicalNoteClient) UpdateOneID(id uuid.UUID) *MedicalNoteUpdateOne
- type MedicalNoteCreate
- func (mnc *MedicalNoteCreate) Save(ctx context.Context) (*MedicalNote, error)
- func (mnc *MedicalNoteCreate) SaveX(ctx context.Context) *MedicalNote
- func (mnc *MedicalNoteCreate) SetAt(t time.Time) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetHistory(h *History) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetHistoryID(id uuid.UUID) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetID(u uuid.UUID) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetLastChange(t time.Time) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetMeta(s []string) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetNillableAt(t *time.Time) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetNillableHistoryID(id *uuid.UUID) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetNillableLastChange(t *time.Time) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetNillableOwnerID(id *uuid.UUID) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetObservations(s []string) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetOwner(d *Doctor) *MedicalNoteCreate
- func (mnc *MedicalNoteCreate) SetOwnerID(id uuid.UUID) *MedicalNoteCreate
- type MedicalNoteDelete
- type MedicalNoteDeleteOne
- type MedicalNoteEdges
- type MedicalNoteGroupBy
- func (mngb *MedicalNoteGroupBy) Aggregate(fns ...Aggregate) *MedicalNoteGroupBy
- func (mngb *MedicalNoteGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (mngb *MedicalNoteGroupBy) BoolsX(ctx context.Context) []bool
- func (mngb *MedicalNoteGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (mngb *MedicalNoteGroupBy) Float64sX(ctx context.Context) []float64
- func (mngb *MedicalNoteGroupBy) Ints(ctx context.Context) ([]int, error)
- func (mngb *MedicalNoteGroupBy) IntsX(ctx context.Context) []int
- func (mngb *MedicalNoteGroupBy) Scan(ctx context.Context, v interface{}) error
- func (mngb *MedicalNoteGroupBy) ScanX(ctx context.Context, v interface{})
- func (mngb *MedicalNoteGroupBy) Strings(ctx context.Context) ([]string, error)
- func (mngb *MedicalNoteGroupBy) StringsX(ctx context.Context) []string
- type MedicalNoteQuery
- func (mnq *MedicalNoteQuery) All(ctx context.Context) ([]*MedicalNote, error)
- func (mnq *MedicalNoteQuery) AllX(ctx context.Context) []*MedicalNote
- func (mnq *MedicalNoteQuery) Clone() *MedicalNoteQuery
- func (mnq *MedicalNoteQuery) Count(ctx context.Context) (int, error)
- func (mnq *MedicalNoteQuery) CountX(ctx context.Context) int
- func (mnq *MedicalNoteQuery) Exist(ctx context.Context) (bool, error)
- func (mnq *MedicalNoteQuery) ExistX(ctx context.Context) bool
- func (mnq *MedicalNoteQuery) First(ctx context.Context) (*MedicalNote, error)
- func (mnq *MedicalNoteQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (mnq *MedicalNoteQuery) FirstX(ctx context.Context) *MedicalNote
- func (mnq *MedicalNoteQuery) FirstXID(ctx context.Context) uuid.UUID
- func (mnq *MedicalNoteQuery) GroupBy(field string, fields ...string) *MedicalNoteGroupBy
- func (mnq *MedicalNoteQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (mnq *MedicalNoteQuery) IDsX(ctx context.Context) []uuid.UUID
- func (mnq *MedicalNoteQuery) Limit(limit int) *MedicalNoteQuery
- func (mnq *MedicalNoteQuery) Offset(offset int) *MedicalNoteQuery
- func (mnq *MedicalNoteQuery) Only(ctx context.Context) (*MedicalNote, error)
- func (mnq *MedicalNoteQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (mnq *MedicalNoteQuery) OnlyX(ctx context.Context) *MedicalNote
- func (mnq *MedicalNoteQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (mnq *MedicalNoteQuery) Order(o ...Order) *MedicalNoteQuery
- func (mnq *MedicalNoteQuery) QueryHistory() *HistoryQuery
- func (mnq *MedicalNoteQuery) QueryOwner() *DoctorQuery
- func (mnq *MedicalNoteQuery) Select(field string, fields ...string) *MedicalNoteSelect
- func (mnq *MedicalNoteQuery) Where(ps ...predicate.MedicalNote) *MedicalNoteQuery
- func (mnq *MedicalNoteQuery) WithHistory(opts ...func(*HistoryQuery)) *MedicalNoteQuery
- func (mnq *MedicalNoteQuery) WithOwner(opts ...func(*DoctorQuery)) *MedicalNoteQuery
- type MedicalNoteSelect
- func (mns *MedicalNoteSelect) Bools(ctx context.Context) ([]bool, error)
- func (mns *MedicalNoteSelect) BoolsX(ctx context.Context) []bool
- func (mns *MedicalNoteSelect) Float64s(ctx context.Context) ([]float64, error)
- func (mns *MedicalNoteSelect) Float64sX(ctx context.Context) []float64
- func (mns *MedicalNoteSelect) Ints(ctx context.Context) ([]int, error)
- func (mns *MedicalNoteSelect) IntsX(ctx context.Context) []int
- func (mns *MedicalNoteSelect) Scan(ctx context.Context, v interface{}) error
- func (mns *MedicalNoteSelect) ScanX(ctx context.Context, v interface{})
- func (mns *MedicalNoteSelect) Strings(ctx context.Context) ([]string, error)
- func (mns *MedicalNoteSelect) StringsX(ctx context.Context) []string
- type MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) ClearHistory() *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) ClearMeta() *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) ClearOwner() *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) Exec(ctx context.Context) error
- func (mnu *MedicalNoteUpdate) ExecX(ctx context.Context)
- func (mnu *MedicalNoteUpdate) Save(ctx context.Context) (int, error)
- func (mnu *MedicalNoteUpdate) SaveX(ctx context.Context) int
- func (mnu *MedicalNoteUpdate) SetAt(t time.Time) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetHistory(h *History) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetHistoryID(id uuid.UUID) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetLastChange(t time.Time) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetMeta(s []string) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetNillableAt(t *time.Time) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetNillableHistoryID(id *uuid.UUID) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetNillableLastChange(t *time.Time) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetNillableOwnerID(id *uuid.UUID) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetObservations(s []string) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetOwner(d *Doctor) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) SetOwnerID(id uuid.UUID) *MedicalNoteUpdate
- func (mnu *MedicalNoteUpdate) Where(ps ...predicate.MedicalNote) *MedicalNoteUpdate
- type MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) ClearHistory() *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) ClearMeta() *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) ClearOwner() *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) Exec(ctx context.Context) error
- func (mnuo *MedicalNoteUpdateOne) ExecX(ctx context.Context)
- func (mnuo *MedicalNoteUpdateOne) Save(ctx context.Context) (*MedicalNote, error)
- func (mnuo *MedicalNoteUpdateOne) SaveX(ctx context.Context) *MedicalNote
- func (mnuo *MedicalNoteUpdateOne) SetAt(t time.Time) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetHistory(h *History) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetHistoryID(id uuid.UUID) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetLastChange(t time.Time) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetMeta(s []string) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetNillableAt(t *time.Time) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetNillableHistoryID(id *uuid.UUID) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetNillableLastChange(t *time.Time) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetNillableOwnerID(id *uuid.UUID) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetObservations(s []string) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetOwner(d *Doctor) *MedicalNoteUpdateOne
- func (mnuo *MedicalNoteUpdateOne) SetOwnerID(id uuid.UUID) *MedicalNoteUpdateOne
- type MedicalNotes
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Option
- type Order
- type Patient
- type PatientClient
- func (c *PatientClient) Create() *PatientCreate
- func (c *PatientClient) Delete() *PatientDelete
- func (c *PatientClient) DeleteOne(pa *Patient) *PatientDeleteOne
- func (c *PatientClient) DeleteOneID(id uuid.UUID) *PatientDeleteOne
- func (c *PatientClient) Get(ctx context.Context, id uuid.UUID) (*Patient, error)
- func (c *PatientClient) GetX(ctx context.Context, id uuid.UUID) *Patient
- func (c *PatientClient) Query() *PatientQuery
- func (c *PatientClient) QueryHistory(pa *Patient) *HistoryQuery
- func (c *PatientClient) QuerySchedule(pa *Patient) *ScheduleQuery
- func (c *PatientClient) Update() *PatientUpdate
- func (c *PatientClient) UpdateOne(pa *Patient) *PatientUpdateOne
- func (c *PatientClient) UpdateOneID(id uuid.UUID) *PatientUpdateOne
- type PatientCreate
- func (pc *PatientCreate) Save(ctx context.Context) (*Patient, error)
- func (pc *PatientCreate) SaveX(ctx context.Context) *Patient
- func (pc *PatientCreate) SetAge(i int) *PatientCreate
- func (pc *PatientCreate) SetConditions(s []string) *PatientCreate
- func (pc *PatientCreate) SetEmail(s string) *PatientCreate
- func (pc *PatientCreate) SetFacebookID(s string) *PatientCreate
- func (pc *PatientCreate) SetFirstContact(t time.Time) *PatientCreate
- func (pc *PatientCreate) SetHistory(h *History) *PatientCreate
- func (pc *PatientCreate) SetHistoryID(id uuid.UUID) *PatientCreate
- func (pc *PatientCreate) SetID(u uuid.UUID) *PatientCreate
- func (pc *PatientCreate) SetName(s string) *PatientCreate
- func (pc *PatientCreate) SetNillableAge(i *int) *PatientCreate
- func (pc *PatientCreate) SetNillableEmail(s *string) *PatientCreate
- func (pc *PatientCreate) SetNillableFacebookID(s *string) *PatientCreate
- func (pc *PatientCreate) SetNillableFirstContact(t *time.Time) *PatientCreate
- func (pc *PatientCreate) SetNillablePassword(s *string) *PatientCreate
- func (pc *PatientCreate) SetNillableWatsonID(s *string) *PatientCreate
- func (pc *PatientCreate) SetPassword(s string) *PatientCreate
- func (pc *PatientCreate) SetPhone(s string) *PatientCreate
- func (pc *PatientCreate) SetSchedule(s *Schedule) *PatientCreate
- func (pc *PatientCreate) SetScheduleID(id uuid.UUID) *PatientCreate
- func (pc *PatientCreate) SetWatsonID(s string) *PatientCreate
- type PatientDelete
- type PatientDeleteOne
- type PatientEdges
- type PatientGroupBy
- func (pgb *PatientGroupBy) Aggregate(fns ...Aggregate) *PatientGroupBy
- func (pgb *PatientGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (pgb *PatientGroupBy) BoolsX(ctx context.Context) []bool
- func (pgb *PatientGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (pgb *PatientGroupBy) Float64sX(ctx context.Context) []float64
- func (pgb *PatientGroupBy) Ints(ctx context.Context) ([]int, error)
- func (pgb *PatientGroupBy) IntsX(ctx context.Context) []int
- func (pgb *PatientGroupBy) Scan(ctx context.Context, v interface{}) error
- func (pgb *PatientGroupBy) ScanX(ctx context.Context, v interface{})
- func (pgb *PatientGroupBy) Strings(ctx context.Context) ([]string, error)
- func (pgb *PatientGroupBy) StringsX(ctx context.Context) []string
- type PatientQuery
- func (pq *PatientQuery) All(ctx context.Context) ([]*Patient, error)
- func (pq *PatientQuery) AllX(ctx context.Context) []*Patient
- func (pq *PatientQuery) Clone() *PatientQuery
- func (pq *PatientQuery) Count(ctx context.Context) (int, error)
- func (pq *PatientQuery) CountX(ctx context.Context) int
- func (pq *PatientQuery) Exist(ctx context.Context) (bool, error)
- func (pq *PatientQuery) ExistX(ctx context.Context) bool
- func (pq *PatientQuery) First(ctx context.Context) (*Patient, error)
- func (pq *PatientQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (pq *PatientQuery) FirstX(ctx context.Context) *Patient
- func (pq *PatientQuery) FirstXID(ctx context.Context) uuid.UUID
- func (pq *PatientQuery) GroupBy(field string, fields ...string) *PatientGroupBy
- func (pq *PatientQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (pq *PatientQuery) IDsX(ctx context.Context) []uuid.UUID
- func (pq *PatientQuery) Limit(limit int) *PatientQuery
- func (pq *PatientQuery) Offset(offset int) *PatientQuery
- func (pq *PatientQuery) Only(ctx context.Context) (*Patient, error)
- func (pq *PatientQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (pq *PatientQuery) OnlyX(ctx context.Context) *Patient
- func (pq *PatientQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (pq *PatientQuery) Order(o ...Order) *PatientQuery
- func (pq *PatientQuery) QueryHistory() *HistoryQuery
- func (pq *PatientQuery) QuerySchedule() *ScheduleQuery
- func (pq *PatientQuery) Select(field string, fields ...string) *PatientSelect
- func (pq *PatientQuery) Where(ps ...predicate.Patient) *PatientQuery
- func (pq *PatientQuery) WithHistory(opts ...func(*HistoryQuery)) *PatientQuery
- func (pq *PatientQuery) WithSchedule(opts ...func(*ScheduleQuery)) *PatientQuery
- type PatientSelect
- func (ps *PatientSelect) Bools(ctx context.Context) ([]bool, error)
- func (ps *PatientSelect) BoolsX(ctx context.Context) []bool
- func (ps *PatientSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ps *PatientSelect) Float64sX(ctx context.Context) []float64
- func (ps *PatientSelect) Ints(ctx context.Context) ([]int, error)
- func (ps *PatientSelect) IntsX(ctx context.Context) []int
- func (ps *PatientSelect) Scan(ctx context.Context, v interface{}) error
- func (ps *PatientSelect) ScanX(ctx context.Context, v interface{})
- func (ps *PatientSelect) Strings(ctx context.Context) ([]string, error)
- func (ps *PatientSelect) StringsX(ctx context.Context) []string
- type PatientUpdate
- func (pu *PatientUpdate) AddAge(i int) *PatientUpdate
- func (pu *PatientUpdate) ClearAge() *PatientUpdate
- func (pu *PatientUpdate) ClearConditions() *PatientUpdate
- func (pu *PatientUpdate) ClearEmail() *PatientUpdate
- func (pu *PatientUpdate) ClearFacebookID() *PatientUpdate
- func (pu *PatientUpdate) ClearHistory() *PatientUpdate
- func (pu *PatientUpdate) ClearPassword() *PatientUpdate
- func (pu *PatientUpdate) ClearSchedule() *PatientUpdate
- func (pu *PatientUpdate) ClearWatsonID() *PatientUpdate
- func (pu *PatientUpdate) Exec(ctx context.Context) error
- func (pu *PatientUpdate) ExecX(ctx context.Context)
- func (pu *PatientUpdate) Save(ctx context.Context) (int, error)
- func (pu *PatientUpdate) SaveX(ctx context.Context) int
- func (pu *PatientUpdate) SetAge(i int) *PatientUpdate
- func (pu *PatientUpdate) SetConditions(s []string) *PatientUpdate
- func (pu *PatientUpdate) SetEmail(s string) *PatientUpdate
- func (pu *PatientUpdate) SetFacebookID(s string) *PatientUpdate
- func (pu *PatientUpdate) SetFirstContact(t time.Time) *PatientUpdate
- func (pu *PatientUpdate) SetHistory(h *History) *PatientUpdate
- func (pu *PatientUpdate) SetHistoryID(id uuid.UUID) *PatientUpdate
- func (pu *PatientUpdate) SetName(s string) *PatientUpdate
- func (pu *PatientUpdate) SetNillableAge(i *int) *PatientUpdate
- func (pu *PatientUpdate) SetNillableEmail(s *string) *PatientUpdate
- func (pu *PatientUpdate) SetNillableFacebookID(s *string) *PatientUpdate
- func (pu *PatientUpdate) SetNillableFirstContact(t *time.Time) *PatientUpdate
- func (pu *PatientUpdate) SetNillablePassword(s *string) *PatientUpdate
- func (pu *PatientUpdate) SetNillableWatsonID(s *string) *PatientUpdate
- func (pu *PatientUpdate) SetPassword(s string) *PatientUpdate
- func (pu *PatientUpdate) SetPhone(s string) *PatientUpdate
- func (pu *PatientUpdate) SetSchedule(s *Schedule) *PatientUpdate
- func (pu *PatientUpdate) SetScheduleID(id uuid.UUID) *PatientUpdate
- func (pu *PatientUpdate) SetWatsonID(s string) *PatientUpdate
- func (pu *PatientUpdate) Where(ps ...predicate.Patient) *PatientUpdate
- type PatientUpdateOne
- func (puo *PatientUpdateOne) AddAge(i int) *PatientUpdateOne
- func (puo *PatientUpdateOne) ClearAge() *PatientUpdateOne
- func (puo *PatientUpdateOne) ClearConditions() *PatientUpdateOne
- func (puo *PatientUpdateOne) ClearEmail() *PatientUpdateOne
- func (puo *PatientUpdateOne) ClearFacebookID() *PatientUpdateOne
- func (puo *PatientUpdateOne) ClearHistory() *PatientUpdateOne
- func (puo *PatientUpdateOne) ClearPassword() *PatientUpdateOne
- func (puo *PatientUpdateOne) ClearSchedule() *PatientUpdateOne
- func (puo *PatientUpdateOne) ClearWatsonID() *PatientUpdateOne
- func (puo *PatientUpdateOne) Exec(ctx context.Context) error
- func (puo *PatientUpdateOne) ExecX(ctx context.Context)
- func (puo *PatientUpdateOne) Save(ctx context.Context) (*Patient, error)
- func (puo *PatientUpdateOne) SaveX(ctx context.Context) *Patient
- func (puo *PatientUpdateOne) SetAge(i int) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetConditions(s []string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetEmail(s string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetFacebookID(s string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetFirstContact(t time.Time) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetHistory(h *History) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetHistoryID(id uuid.UUID) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetName(s string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetNillableAge(i *int) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetNillableEmail(s *string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetNillableFacebookID(s *string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetNillableFirstContact(t *time.Time) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetNillablePassword(s *string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetNillableWatsonID(s *string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetPassword(s string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetPhone(s string) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetSchedule(s *Schedule) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetScheduleID(id uuid.UUID) *PatientUpdateOne
- func (puo *PatientUpdateOne) SetWatsonID(s string) *PatientUpdateOne
- type Patients
- type Schedule
- type ScheduleClient
- func (c *ScheduleClient) Create() *ScheduleCreate
- func (c *ScheduleClient) Delete() *ScheduleDelete
- func (c *ScheduleClient) DeleteOne(s *Schedule) *ScheduleDeleteOne
- func (c *ScheduleClient) DeleteOneID(id uuid.UUID) *ScheduleDeleteOne
- func (c *ScheduleClient) Get(ctx context.Context, id uuid.UUID) (*Schedule, error)
- func (c *ScheduleClient) GetX(ctx context.Context, id uuid.UUID) *Schedule
- func (c *ScheduleClient) Query() *ScheduleQuery
- func (c *ScheduleClient) QueryPatient(s *Schedule) *PatientQuery
- func (c *ScheduleClient) QueryTasks(s *Schedule) *TaskQuery
- func (c *ScheduleClient) Update() *ScheduleUpdate
- func (c *ScheduleClient) UpdateOne(s *Schedule) *ScheduleUpdateOne
- func (c *ScheduleClient) UpdateOneID(id uuid.UUID) *ScheduleUpdateOne
- type ScheduleCreate
- func (sc *ScheduleCreate) AddTaskIDs(ids ...uuid.UUID) *ScheduleCreate
- func (sc *ScheduleCreate) AddTasks(t ...*Task) *ScheduleCreate
- func (sc *ScheduleCreate) Save(ctx context.Context) (*Schedule, error)
- func (sc *ScheduleCreate) SaveX(ctx context.Context) *Schedule
- func (sc *ScheduleCreate) SetID(u uuid.UUID) *ScheduleCreate
- func (sc *ScheduleCreate) SetNillablePatientID(id *uuid.UUID) *ScheduleCreate
- func (sc *ScheduleCreate) SetPatient(p *Patient) *ScheduleCreate
- func (sc *ScheduleCreate) SetPatientID(id uuid.UUID) *ScheduleCreate
- type ScheduleDelete
- type ScheduleDeleteOne
- type ScheduleEdges
- type ScheduleGroupBy
- func (sgb *ScheduleGroupBy) Aggregate(fns ...Aggregate) *ScheduleGroupBy
- func (sgb *ScheduleGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (sgb *ScheduleGroupBy) BoolsX(ctx context.Context) []bool
- func (sgb *ScheduleGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (sgb *ScheduleGroupBy) Float64sX(ctx context.Context) []float64
- func (sgb *ScheduleGroupBy) Ints(ctx context.Context) ([]int, error)
- func (sgb *ScheduleGroupBy) IntsX(ctx context.Context) []int
- func (sgb *ScheduleGroupBy) Scan(ctx context.Context, v interface{}) error
- func (sgb *ScheduleGroupBy) ScanX(ctx context.Context, v interface{})
- func (sgb *ScheduleGroupBy) Strings(ctx context.Context) ([]string, error)
- func (sgb *ScheduleGroupBy) StringsX(ctx context.Context) []string
- type ScheduleQuery
- func (sq *ScheduleQuery) All(ctx context.Context) ([]*Schedule, error)
- func (sq *ScheduleQuery) AllX(ctx context.Context) []*Schedule
- func (sq *ScheduleQuery) Clone() *ScheduleQuery
- func (sq *ScheduleQuery) Count(ctx context.Context) (int, error)
- func (sq *ScheduleQuery) CountX(ctx context.Context) int
- func (sq *ScheduleQuery) Exist(ctx context.Context) (bool, error)
- func (sq *ScheduleQuery) ExistX(ctx context.Context) bool
- func (sq *ScheduleQuery) First(ctx context.Context) (*Schedule, error)
- func (sq *ScheduleQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (sq *ScheduleQuery) FirstX(ctx context.Context) *Schedule
- func (sq *ScheduleQuery) FirstXID(ctx context.Context) uuid.UUID
- func (sq *ScheduleQuery) GroupBy(field string, fields ...string) *ScheduleGroupBy
- func (sq *ScheduleQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (sq *ScheduleQuery) IDsX(ctx context.Context) []uuid.UUID
- func (sq *ScheduleQuery) Limit(limit int) *ScheduleQuery
- func (sq *ScheduleQuery) Offset(offset int) *ScheduleQuery
- func (sq *ScheduleQuery) Only(ctx context.Context) (*Schedule, error)
- func (sq *ScheduleQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (sq *ScheduleQuery) OnlyX(ctx context.Context) *Schedule
- func (sq *ScheduleQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (sq *ScheduleQuery) Order(o ...Order) *ScheduleQuery
- func (sq *ScheduleQuery) QueryPatient() *PatientQuery
- func (sq *ScheduleQuery) QueryTasks() *TaskQuery
- func (sq *ScheduleQuery) Select(field string, fields ...string) *ScheduleSelect
- func (sq *ScheduleQuery) Where(ps ...predicate.Schedule) *ScheduleQuery
- func (sq *ScheduleQuery) WithPatient(opts ...func(*PatientQuery)) *ScheduleQuery
- func (sq *ScheduleQuery) WithTasks(opts ...func(*TaskQuery)) *ScheduleQuery
- type ScheduleSelect
- func (ss *ScheduleSelect) Bools(ctx context.Context) ([]bool, error)
- func (ss *ScheduleSelect) BoolsX(ctx context.Context) []bool
- func (ss *ScheduleSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ss *ScheduleSelect) Float64sX(ctx context.Context) []float64
- func (ss *ScheduleSelect) Ints(ctx context.Context) ([]int, error)
- func (ss *ScheduleSelect) IntsX(ctx context.Context) []int
- func (ss *ScheduleSelect) Scan(ctx context.Context, v interface{}) error
- func (ss *ScheduleSelect) ScanX(ctx context.Context, v interface{})
- func (ss *ScheduleSelect) Strings(ctx context.Context) ([]string, error)
- func (ss *ScheduleSelect) StringsX(ctx context.Context) []string
- type ScheduleUpdate
- func (su *ScheduleUpdate) AddTaskIDs(ids ...uuid.UUID) *ScheduleUpdate
- func (su *ScheduleUpdate) AddTasks(t ...*Task) *ScheduleUpdate
- func (su *ScheduleUpdate) ClearPatient() *ScheduleUpdate
- func (su *ScheduleUpdate) Exec(ctx context.Context) error
- func (su *ScheduleUpdate) ExecX(ctx context.Context)
- func (su *ScheduleUpdate) RemoveTaskIDs(ids ...uuid.UUID) *ScheduleUpdate
- func (su *ScheduleUpdate) RemoveTasks(t ...*Task) *ScheduleUpdate
- func (su *ScheduleUpdate) Save(ctx context.Context) (int, error)
- func (su *ScheduleUpdate) SaveX(ctx context.Context) int
- func (su *ScheduleUpdate) SetNillablePatientID(id *uuid.UUID) *ScheduleUpdate
- func (su *ScheduleUpdate) SetPatient(p *Patient) *ScheduleUpdate
- func (su *ScheduleUpdate) SetPatientID(id uuid.UUID) *ScheduleUpdate
- func (su *ScheduleUpdate) Where(ps ...predicate.Schedule) *ScheduleUpdate
- type ScheduleUpdateOne
- func (suo *ScheduleUpdateOne) AddTaskIDs(ids ...uuid.UUID) *ScheduleUpdateOne
- func (suo *ScheduleUpdateOne) AddTasks(t ...*Task) *ScheduleUpdateOne
- func (suo *ScheduleUpdateOne) ClearPatient() *ScheduleUpdateOne
- func (suo *ScheduleUpdateOne) Exec(ctx context.Context) error
- func (suo *ScheduleUpdateOne) ExecX(ctx context.Context)
- func (suo *ScheduleUpdateOne) RemoveTaskIDs(ids ...uuid.UUID) *ScheduleUpdateOne
- func (suo *ScheduleUpdateOne) RemoveTasks(t ...*Task) *ScheduleUpdateOne
- func (suo *ScheduleUpdateOne) Save(ctx context.Context) (*Schedule, error)
- func (suo *ScheduleUpdateOne) SaveX(ctx context.Context) *Schedule
- func (suo *ScheduleUpdateOne) SetNillablePatientID(id *uuid.UUID) *ScheduleUpdateOne
- func (suo *ScheduleUpdateOne) SetPatient(p *Patient) *ScheduleUpdateOne
- func (suo *ScheduleUpdateOne) SetPatientID(id uuid.UUID) *ScheduleUpdateOne
- type Schedules
- type Task
- type TaskClient
- func (c *TaskClient) Create() *TaskCreate
- func (c *TaskClient) Delete() *TaskDelete
- func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne
- func (c *TaskClient) DeleteOneID(id uuid.UUID) *TaskDeleteOne
- func (c *TaskClient) Get(ctx context.Context, id uuid.UUID) (*Task, error)
- func (c *TaskClient) GetX(ctx context.Context, id uuid.UUID) *Task
- func (c *TaskClient) Query() *TaskQuery
- func (c *TaskClient) QueryResponses(t *Task) *TaskResponseQuery
- func (c *TaskClient) QueryResponsible(t *Task) *DoctorQuery
- func (c *TaskClient) QuerySchedule(t *Task) *ScheduleQuery
- func (c *TaskClient) Update() *TaskUpdate
- func (c *TaskClient) UpdateOne(t *Task) *TaskUpdateOne
- func (c *TaskClient) UpdateOneID(id uuid.UUID) *TaskUpdateOne
- type TaskCreate
- func (tc *TaskCreate) AddResponseIDs(ids ...uuid.UUID) *TaskCreate
- func (tc *TaskCreate) AddResponses(t ...*TaskResponse) *TaskCreate
- func (tc *TaskCreate) AddResponsible(d ...*Doctor) *TaskCreate
- func (tc *TaskCreate) AddResponsibleIDs(ids ...uuid.UUID) *TaskCreate
- func (tc *TaskCreate) Save(ctx context.Context) (*Task, error)
- func (tc *TaskCreate) SaveX(ctx context.Context) *Task
- func (tc *TaskCreate) SetDescription(s []string) *TaskCreate
- func (tc *TaskCreate) SetEndsAt(t time.Time) *TaskCreate
- func (tc *TaskCreate) SetID(u uuid.UUID) *TaskCreate
- func (tc *TaskCreate) SetNillableEndsAt(t *time.Time) *TaskCreate
- func (tc *TaskCreate) SetNillableScheduleID(id *uuid.UUID) *TaskCreate
- func (tc *TaskCreate) SetNillableStartAt(t *time.Time) *TaskCreate
- func (tc *TaskCreate) SetSchedule(s *Schedule) *TaskCreate
- func (tc *TaskCreate) SetScheduleID(id uuid.UUID) *TaskCreate
- func (tc *TaskCreate) SetStartAt(t time.Time) *TaskCreate
- func (tc *TaskCreate) SetTitle(s string) *TaskCreate
- type TaskDelete
- type TaskDeleteOne
- type TaskEdges
- type TaskGroupBy
- func (tgb *TaskGroupBy) Aggregate(fns ...Aggregate) *TaskGroupBy
- func (tgb *TaskGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (tgb *TaskGroupBy) BoolsX(ctx context.Context) []bool
- func (tgb *TaskGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (tgb *TaskGroupBy) Float64sX(ctx context.Context) []float64
- func (tgb *TaskGroupBy) Ints(ctx context.Context) ([]int, error)
- func (tgb *TaskGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TaskGroupBy) Scan(ctx context.Context, v interface{}) error
- func (tgb *TaskGroupBy) ScanX(ctx context.Context, v interface{})
- func (tgb *TaskGroupBy) Strings(ctx context.Context) ([]string, error)
- func (tgb *TaskGroupBy) StringsX(ctx context.Context) []string
- type TaskQuery
- func (tq *TaskQuery) All(ctx context.Context) ([]*Task, error)
- func (tq *TaskQuery) AllX(ctx context.Context) []*Task
- func (tq *TaskQuery) Clone() *TaskQuery
- func (tq *TaskQuery) Count(ctx context.Context) (int, error)
- func (tq *TaskQuery) CountX(ctx context.Context) int
- func (tq *TaskQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TaskQuery) ExistX(ctx context.Context) bool
- func (tq *TaskQuery) First(ctx context.Context) (*Task, error)
- func (tq *TaskQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TaskQuery) FirstX(ctx context.Context) *Task
- func (tq *TaskQuery) FirstXID(ctx context.Context) uuid.UUID
- func (tq *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy
- func (tq *TaskQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (tq *TaskQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tq *TaskQuery) Limit(limit int) *TaskQuery
- func (tq *TaskQuery) Offset(offset int) *TaskQuery
- func (tq *TaskQuery) Only(ctx context.Context) (*Task, error)
- func (tq *TaskQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TaskQuery) OnlyX(ctx context.Context) *Task
- func (tq *TaskQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (tq *TaskQuery) Order(o ...Order) *TaskQuery
- func (tq *TaskQuery) QueryResponses() *TaskResponseQuery
- func (tq *TaskQuery) QueryResponsible() *DoctorQuery
- func (tq *TaskQuery) QuerySchedule() *ScheduleQuery
- func (tq *TaskQuery) Select(field string, fields ...string) *TaskSelect
- func (tq *TaskQuery) Where(ps ...predicate.Task) *TaskQuery
- func (tq *TaskQuery) WithResponses(opts ...func(*TaskResponseQuery)) *TaskQuery
- func (tq *TaskQuery) WithResponsible(opts ...func(*DoctorQuery)) *TaskQuery
- func (tq *TaskQuery) WithSchedule(opts ...func(*ScheduleQuery)) *TaskQuery
- type TaskResponse
- type TaskResponseClient
- func (c *TaskResponseClient) Create() *TaskResponseCreate
- func (c *TaskResponseClient) Delete() *TaskResponseDelete
- func (c *TaskResponseClient) DeleteOne(tr *TaskResponse) *TaskResponseDeleteOne
- func (c *TaskResponseClient) DeleteOneID(id uuid.UUID) *TaskResponseDeleteOne
- func (c *TaskResponseClient) Get(ctx context.Context, id uuid.UUID) (*TaskResponse, error)
- func (c *TaskResponseClient) GetX(ctx context.Context, id uuid.UUID) *TaskResponse
- func (c *TaskResponseClient) Query() *TaskResponseQuery
- func (c *TaskResponseClient) QueryAuthor(tr *TaskResponse) *DoctorQuery
- func (c *TaskResponseClient) QueryTask(tr *TaskResponse) *TaskQuery
- func (c *TaskResponseClient) Update() *TaskResponseUpdate
- func (c *TaskResponseClient) UpdateOne(tr *TaskResponse) *TaskResponseUpdateOne
- func (c *TaskResponseClient) UpdateOneID(id uuid.UUID) *TaskResponseUpdateOne
- type TaskResponseCreate
- func (trc *TaskResponseCreate) Save(ctx context.Context) (*TaskResponse, error)
- func (trc *TaskResponseCreate) SaveX(ctx context.Context) *TaskResponse
- func (trc *TaskResponseCreate) SetAt(t time.Time) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetAuthor(d *Doctor) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetAuthorID(id uuid.UUID) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetID(u uuid.UUID) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetLastChange(t time.Time) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetMeta(s []string) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetNillableAt(t *time.Time) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetNillableLastChange(t *time.Time) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetObservations(s []string) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetTask(t *Task) *TaskResponseCreate
- func (trc *TaskResponseCreate) SetTaskID(id uuid.UUID) *TaskResponseCreate
- type TaskResponseDelete
- type TaskResponseDeleteOne
- type TaskResponseEdges
- type TaskResponseGroupBy
- func (trgb *TaskResponseGroupBy) Aggregate(fns ...Aggregate) *TaskResponseGroupBy
- func (trgb *TaskResponseGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (trgb *TaskResponseGroupBy) BoolsX(ctx context.Context) []bool
- func (trgb *TaskResponseGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (trgb *TaskResponseGroupBy) Float64sX(ctx context.Context) []float64
- func (trgb *TaskResponseGroupBy) Ints(ctx context.Context) ([]int, error)
- func (trgb *TaskResponseGroupBy) IntsX(ctx context.Context) []int
- func (trgb *TaskResponseGroupBy) Scan(ctx context.Context, v interface{}) error
- func (trgb *TaskResponseGroupBy) ScanX(ctx context.Context, v interface{})
- func (trgb *TaskResponseGroupBy) Strings(ctx context.Context) ([]string, error)
- func (trgb *TaskResponseGroupBy) StringsX(ctx context.Context) []string
- type TaskResponseQuery
- func (trq *TaskResponseQuery) All(ctx context.Context) ([]*TaskResponse, error)
- func (trq *TaskResponseQuery) AllX(ctx context.Context) []*TaskResponse
- func (trq *TaskResponseQuery) Clone() *TaskResponseQuery
- func (trq *TaskResponseQuery) Count(ctx context.Context) (int, error)
- func (trq *TaskResponseQuery) CountX(ctx context.Context) int
- func (trq *TaskResponseQuery) Exist(ctx context.Context) (bool, error)
- func (trq *TaskResponseQuery) ExistX(ctx context.Context) bool
- func (trq *TaskResponseQuery) First(ctx context.Context) (*TaskResponse, error)
- func (trq *TaskResponseQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (trq *TaskResponseQuery) FirstX(ctx context.Context) *TaskResponse
- func (trq *TaskResponseQuery) FirstXID(ctx context.Context) uuid.UUID
- func (trq *TaskResponseQuery) GroupBy(field string, fields ...string) *TaskResponseGroupBy
- func (trq *TaskResponseQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (trq *TaskResponseQuery) IDsX(ctx context.Context) []uuid.UUID
- func (trq *TaskResponseQuery) Limit(limit int) *TaskResponseQuery
- func (trq *TaskResponseQuery) Offset(offset int) *TaskResponseQuery
- func (trq *TaskResponseQuery) Only(ctx context.Context) (*TaskResponse, error)
- func (trq *TaskResponseQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (trq *TaskResponseQuery) OnlyX(ctx context.Context) *TaskResponse
- func (trq *TaskResponseQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (trq *TaskResponseQuery) Order(o ...Order) *TaskResponseQuery
- func (trq *TaskResponseQuery) QueryAuthor() *DoctorQuery
- func (trq *TaskResponseQuery) QueryTask() *TaskQuery
- func (trq *TaskResponseQuery) Select(field string, fields ...string) *TaskResponseSelect
- func (trq *TaskResponseQuery) Where(ps ...predicate.TaskResponse) *TaskResponseQuery
- func (trq *TaskResponseQuery) WithAuthor(opts ...func(*DoctorQuery)) *TaskResponseQuery
- func (trq *TaskResponseQuery) WithTask(opts ...func(*TaskQuery)) *TaskResponseQuery
- type TaskResponseSelect
- func (trs *TaskResponseSelect) Bools(ctx context.Context) ([]bool, error)
- func (trs *TaskResponseSelect) BoolsX(ctx context.Context) []bool
- func (trs *TaskResponseSelect) Float64s(ctx context.Context) ([]float64, error)
- func (trs *TaskResponseSelect) Float64sX(ctx context.Context) []float64
- func (trs *TaskResponseSelect) Ints(ctx context.Context) ([]int, error)
- func (trs *TaskResponseSelect) IntsX(ctx context.Context) []int
- func (trs *TaskResponseSelect) Scan(ctx context.Context, v interface{}) error
- func (trs *TaskResponseSelect) ScanX(ctx context.Context, v interface{})
- func (trs *TaskResponseSelect) Strings(ctx context.Context) ([]string, error)
- func (trs *TaskResponseSelect) StringsX(ctx context.Context) []string
- type TaskResponseUpdate
- func (tru *TaskResponseUpdate) ClearAuthor() *TaskResponseUpdate
- func (tru *TaskResponseUpdate) ClearMeta() *TaskResponseUpdate
- func (tru *TaskResponseUpdate) ClearTask() *TaskResponseUpdate
- func (tru *TaskResponseUpdate) Exec(ctx context.Context) error
- func (tru *TaskResponseUpdate) ExecX(ctx context.Context)
- func (tru *TaskResponseUpdate) Save(ctx context.Context) (int, error)
- func (tru *TaskResponseUpdate) SaveX(ctx context.Context) int
- func (tru *TaskResponseUpdate) SetAt(t time.Time) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetAuthor(d *Doctor) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetAuthorID(id uuid.UUID) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetLastChange(t time.Time) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetMeta(s []string) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetNillableAt(t *time.Time) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetNillableLastChange(t *time.Time) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetObservations(s []string) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetTask(t *Task) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) SetTaskID(id uuid.UUID) *TaskResponseUpdate
- func (tru *TaskResponseUpdate) Where(ps ...predicate.TaskResponse) *TaskResponseUpdate
- type TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) ClearAuthor() *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) ClearMeta() *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) ClearTask() *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) Exec(ctx context.Context) error
- func (truo *TaskResponseUpdateOne) ExecX(ctx context.Context)
- func (truo *TaskResponseUpdateOne) Save(ctx context.Context) (*TaskResponse, error)
- func (truo *TaskResponseUpdateOne) SaveX(ctx context.Context) *TaskResponse
- func (truo *TaskResponseUpdateOne) SetAt(t time.Time) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetAuthor(d *Doctor) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetAuthorID(id uuid.UUID) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetLastChange(t time.Time) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetMeta(s []string) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetNillableAt(t *time.Time) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetNillableLastChange(t *time.Time) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetObservations(s []string) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetTask(t *Task) *TaskResponseUpdateOne
- func (truo *TaskResponseUpdateOne) SetTaskID(id uuid.UUID) *TaskResponseUpdateOne
- type TaskResponses
- type TaskSelect
- func (ts *TaskSelect) Bools(ctx context.Context) ([]bool, error)
- func (ts *TaskSelect) BoolsX(ctx context.Context) []bool
- func (ts *TaskSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ts *TaskSelect) Float64sX(ctx context.Context) []float64
- func (ts *TaskSelect) Ints(ctx context.Context) ([]int, error)
- func (ts *TaskSelect) IntsX(ctx context.Context) []int
- func (ts *TaskSelect) Scan(ctx context.Context, v interface{}) error
- func (ts *TaskSelect) ScanX(ctx context.Context, v interface{})
- func (ts *TaskSelect) Strings(ctx context.Context) ([]string, error)
- func (ts *TaskSelect) StringsX(ctx context.Context) []string
- type TaskUpdate
- func (tu *TaskUpdate) AddResponseIDs(ids ...uuid.UUID) *TaskUpdate
- func (tu *TaskUpdate) AddResponses(t ...*TaskResponse) *TaskUpdate
- func (tu *TaskUpdate) AddResponsible(d ...*Doctor) *TaskUpdate
- func (tu *TaskUpdate) AddResponsibleIDs(ids ...uuid.UUID) *TaskUpdate
- func (tu *TaskUpdate) ClearDescription() *TaskUpdate
- func (tu *TaskUpdate) ClearSchedule() *TaskUpdate
- func (tu *TaskUpdate) Exec(ctx context.Context) error
- func (tu *TaskUpdate) ExecX(ctx context.Context)
- func (tu *TaskUpdate) RemoveResponseIDs(ids ...uuid.UUID) *TaskUpdate
- func (tu *TaskUpdate) RemoveResponses(t ...*TaskResponse) *TaskUpdate
- func (tu *TaskUpdate) RemoveResponsible(d ...*Doctor) *TaskUpdate
- func (tu *TaskUpdate) RemoveResponsibleIDs(ids ...uuid.UUID) *TaskUpdate
- func (tu *TaskUpdate) Save(ctx context.Context) (int, error)
- func (tu *TaskUpdate) SaveX(ctx context.Context) int
- func (tu *TaskUpdate) SetDescription(s []string) *TaskUpdate
- func (tu *TaskUpdate) SetEndsAt(t time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetNillableEndsAt(t *time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetNillableScheduleID(id *uuid.UUID) *TaskUpdate
- func (tu *TaskUpdate) SetNillableStartAt(t *time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetSchedule(s *Schedule) *TaskUpdate
- func (tu *TaskUpdate) SetScheduleID(id uuid.UUID) *TaskUpdate
- func (tu *TaskUpdate) SetStartAt(t time.Time) *TaskUpdate
- func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate
- type TaskUpdateOne
- func (tuo *TaskUpdateOne) AddResponseIDs(ids ...uuid.UUID) *TaskUpdateOne
- func (tuo *TaskUpdateOne) AddResponses(t ...*TaskResponse) *TaskUpdateOne
- func (tuo *TaskUpdateOne) AddResponsible(d ...*Doctor) *TaskUpdateOne
- func (tuo *TaskUpdateOne) AddResponsibleIDs(ids ...uuid.UUID) *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearDescription() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearSchedule() *TaskUpdateOne
- func (tuo *TaskUpdateOne) Exec(ctx context.Context) error
- func (tuo *TaskUpdateOne) ExecX(ctx context.Context)
- func (tuo *TaskUpdateOne) RemoveResponseIDs(ids ...uuid.UUID) *TaskUpdateOne
- func (tuo *TaskUpdateOne) RemoveResponses(t ...*TaskResponse) *TaskUpdateOne
- func (tuo *TaskUpdateOne) RemoveResponsible(d ...*Doctor) *TaskUpdateOne
- func (tuo *TaskUpdateOne) RemoveResponsibleIDs(ids ...uuid.UUID) *TaskUpdateOne
- func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error)
- func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task
- func (tuo *TaskUpdateOne) SetDescription(s []string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetEndsAt(t time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableEndsAt(t *time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableScheduleID(id *uuid.UUID) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableStartAt(t *time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetSchedule(s *Schedule) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetScheduleID(id uuid.UUID) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetStartAt(t time.Time) *TaskUpdateOne
- type Tasks
- type Test
- type TestClient
- func (c *TestClient) Create() *TestCreate
- func (c *TestClient) Delete() *TestDelete
- func (c *TestClient) DeleteOne(t *Test) *TestDeleteOne
- func (c *TestClient) DeleteOneID(id uuid.UUID) *TestDeleteOne
- func (c *TestClient) Get(ctx context.Context, id uuid.UUID) (*Test, error)
- func (c *TestClient) GetX(ctx context.Context, id uuid.UUID) *Test
- func (c *TestClient) Query() *TestQuery
- func (c *TestClient) QueryClinical(t *Test) *ClinicalResultsQuery
- func (c *TestClient) QueryEpidemiologic(t *Test) *EpidemiologicResultsQuery
- func (c *TestClient) QueryHistory(t *Test) *HistoryQuery
- func (c *TestClient) Update() *TestUpdate
- func (c *TestClient) UpdateOne(t *Test) *TestUpdateOne
- func (c *TestClient) UpdateOneID(id uuid.UUID) *TestUpdateOne
- type TestCreate
- func (tc *TestCreate) AddClinical(c ...*ClinicalResults) *TestCreate
- func (tc *TestCreate) AddClinicalIDs(ids ...uuid.UUID) *TestCreate
- func (tc *TestCreate) AddEpidemiologic(e ...*EpidemiologicResults) *TestCreate
- func (tc *TestCreate) AddEpidemiologicIDs(ids ...uuid.UUID) *TestCreate
- func (tc *TestCreate) Save(ctx context.Context) (*Test, error)
- func (tc *TestCreate) SaveX(ctx context.Context) *Test
- func (tc *TestCreate) SetHistory(h *History) *TestCreate
- func (tc *TestCreate) SetHistoryID(id uuid.UUID) *TestCreate
- func (tc *TestCreate) SetID(u uuid.UUID) *TestCreate
- func (tc *TestCreate) SetNillableHistoryID(id *uuid.UUID) *TestCreate
- func (tc *TestCreate) SetNotes(s []string) *TestCreate
- type TestDelete
- type TestDeleteOne
- type TestEdges
- type TestGroupBy
- func (tgb *TestGroupBy) Aggregate(fns ...Aggregate) *TestGroupBy
- func (tgb *TestGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (tgb *TestGroupBy) BoolsX(ctx context.Context) []bool
- func (tgb *TestGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (tgb *TestGroupBy) Float64sX(ctx context.Context) []float64
- func (tgb *TestGroupBy) Ints(ctx context.Context) ([]int, error)
- func (tgb *TestGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TestGroupBy) Scan(ctx context.Context, v interface{}) error
- func (tgb *TestGroupBy) ScanX(ctx context.Context, v interface{})
- func (tgb *TestGroupBy) Strings(ctx context.Context) ([]string, error)
- func (tgb *TestGroupBy) StringsX(ctx context.Context) []string
- type TestQuery
- func (tq *TestQuery) All(ctx context.Context) ([]*Test, error)
- func (tq *TestQuery) AllX(ctx context.Context) []*Test
- func (tq *TestQuery) Clone() *TestQuery
- func (tq *TestQuery) Count(ctx context.Context) (int, error)
- func (tq *TestQuery) CountX(ctx context.Context) int
- func (tq *TestQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TestQuery) ExistX(ctx context.Context) bool
- func (tq *TestQuery) First(ctx context.Context) (*Test, error)
- func (tq *TestQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TestQuery) FirstX(ctx context.Context) *Test
- func (tq *TestQuery) FirstXID(ctx context.Context) uuid.UUID
- func (tq *TestQuery) GroupBy(field string, fields ...string) *TestGroupBy
- func (tq *TestQuery) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (tq *TestQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tq *TestQuery) Limit(limit int) *TestQuery
- func (tq *TestQuery) Offset(offset int) *TestQuery
- func (tq *TestQuery) Only(ctx context.Context) (*Test, error)
- func (tq *TestQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TestQuery) OnlyX(ctx context.Context) *Test
- func (tq *TestQuery) OnlyXID(ctx context.Context) uuid.UUID
- func (tq *TestQuery) Order(o ...Order) *TestQuery
- func (tq *TestQuery) QueryClinical() *ClinicalResultsQuery
- func (tq *TestQuery) QueryEpidemiologic() *EpidemiologicResultsQuery
- func (tq *TestQuery) QueryHistory() *HistoryQuery
- func (tq *TestQuery) Select(field string, fields ...string) *TestSelect
- func (tq *TestQuery) Where(ps ...predicate.Test) *TestQuery
- func (tq *TestQuery) WithClinical(opts ...func(*ClinicalResultsQuery)) *TestQuery
- func (tq *TestQuery) WithEpidemiologic(opts ...func(*EpidemiologicResultsQuery)) *TestQuery
- func (tq *TestQuery) WithHistory(opts ...func(*HistoryQuery)) *TestQuery
- type TestSelect
- func (ts *TestSelect) Bools(ctx context.Context) ([]bool, error)
- func (ts *TestSelect) BoolsX(ctx context.Context) []bool
- func (ts *TestSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ts *TestSelect) Float64sX(ctx context.Context) []float64
- func (ts *TestSelect) Ints(ctx context.Context) ([]int, error)
- func (ts *TestSelect) IntsX(ctx context.Context) []int
- func (ts *TestSelect) Scan(ctx context.Context, v interface{}) error
- func (ts *TestSelect) ScanX(ctx context.Context, v interface{})
- func (ts *TestSelect) Strings(ctx context.Context) ([]string, error)
- func (ts *TestSelect) StringsX(ctx context.Context) []string
- type TestUpdate
- func (tu *TestUpdate) AddClinical(c ...*ClinicalResults) *TestUpdate
- func (tu *TestUpdate) AddClinicalIDs(ids ...uuid.UUID) *TestUpdate
- func (tu *TestUpdate) AddEpidemiologic(e ...*EpidemiologicResults) *TestUpdate
- func (tu *TestUpdate) AddEpidemiologicIDs(ids ...uuid.UUID) *TestUpdate
- func (tu *TestUpdate) ClearHistory() *TestUpdate
- func (tu *TestUpdate) ClearNotes() *TestUpdate
- func (tu *TestUpdate) Exec(ctx context.Context) error
- func (tu *TestUpdate) ExecX(ctx context.Context)
- func (tu *TestUpdate) RemoveClinical(c ...*ClinicalResults) *TestUpdate
- func (tu *TestUpdate) RemoveClinicalIDs(ids ...uuid.UUID) *TestUpdate
- func (tu *TestUpdate) RemoveEpidemiologic(e ...*EpidemiologicResults) *TestUpdate
- func (tu *TestUpdate) RemoveEpidemiologicIDs(ids ...uuid.UUID) *TestUpdate
- func (tu *TestUpdate) Save(ctx context.Context) (int, error)
- func (tu *TestUpdate) SaveX(ctx context.Context) int
- func (tu *TestUpdate) SetHistory(h *History) *TestUpdate
- func (tu *TestUpdate) SetHistoryID(id uuid.UUID) *TestUpdate
- func (tu *TestUpdate) SetNillableHistoryID(id *uuid.UUID) *TestUpdate
- func (tu *TestUpdate) SetNotes(s []string) *TestUpdate
- func (tu *TestUpdate) Where(ps ...predicate.Test) *TestUpdate
- type TestUpdateOne
- func (tuo *TestUpdateOne) AddClinical(c ...*ClinicalResults) *TestUpdateOne
- func (tuo *TestUpdateOne) AddClinicalIDs(ids ...uuid.UUID) *TestUpdateOne
- func (tuo *TestUpdateOne) AddEpidemiologic(e ...*EpidemiologicResults) *TestUpdateOne
- func (tuo *TestUpdateOne) AddEpidemiologicIDs(ids ...uuid.UUID) *TestUpdateOne
- func (tuo *TestUpdateOne) ClearHistory() *TestUpdateOne
- func (tuo *TestUpdateOne) ClearNotes() *TestUpdateOne
- func (tuo *TestUpdateOne) Exec(ctx context.Context) error
- func (tuo *TestUpdateOne) ExecX(ctx context.Context)
- func (tuo *TestUpdateOne) RemoveClinical(c ...*ClinicalResults) *TestUpdateOne
- func (tuo *TestUpdateOne) RemoveClinicalIDs(ids ...uuid.UUID) *TestUpdateOne
- func (tuo *TestUpdateOne) RemoveEpidemiologic(e ...*EpidemiologicResults) *TestUpdateOne
- func (tuo *TestUpdateOne) RemoveEpidemiologicIDs(ids ...uuid.UUID) *TestUpdateOne
- func (tuo *TestUpdateOne) Save(ctx context.Context) (*Test, error)
- func (tuo *TestUpdateOne) SaveX(ctx context.Context) *Test
- func (tuo *TestUpdateOne) SetHistory(h *History) *TestUpdateOne
- func (tuo *TestUpdateOne) SetHistoryID(id uuid.UUID) *TestUpdateOne
- func (tuo *TestUpdateOne) SetNillableHistoryID(id *uuid.UUID) *TestUpdateOne
- func (tuo *TestUpdateOne) SetNotes(s []string) *TestUpdateOne
- type Tests
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
Types ¶
type Aggregate ¶
Aggregate applies an aggregation step on the group-by traversal/selector.
func As ¶
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
type Alert ¶
type Alert struct { // ID of the ent. ID int `json:"id,omitempty"` // contains filtered or unexported fields }
Alert is the model entity for the Alert schema.
func (*Alert) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Alert) Update ¶
func (a *Alert) Update() *AlertUpdateOne
Update returns a builder for updating this Alert. Note that, you need to call Alert.Unwrap() before calling this method, if this Alert was returned from a transaction, and the transaction was committed or rolled back.
type AlertClient ¶
type AlertClient struct {
// contains filtered or unexported fields
}
AlertClient is a client for the Alert schema.
func NewAlertClient ¶
func NewAlertClient(c config) *AlertClient
NewAlertClient returns a client for the Alert from the given config.
func (*AlertClient) Create ¶
func (c *AlertClient) Create() *AlertCreate
Create returns a create builder for Alert.
func (*AlertClient) Delete ¶
func (c *AlertClient) Delete() *AlertDelete
Delete returns a delete builder for Alert.
func (*AlertClient) DeleteOne ¶
func (c *AlertClient) DeleteOne(a *Alert) *AlertDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*AlertClient) DeleteOneID ¶
func (c *AlertClient) DeleteOneID(id int) *AlertDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*AlertClient) GetX ¶
func (c *AlertClient) GetX(ctx context.Context, id int) *Alert
GetX is like Get, but panics if an error occurs.
func (*AlertClient) Query ¶
func (c *AlertClient) Query() *AlertQuery
Create returns a query builder for Alert.
func (*AlertClient) Update ¶
func (c *AlertClient) Update() *AlertUpdate
Update returns an update builder for Alert.
func (*AlertClient) UpdateOne ¶
func (c *AlertClient) UpdateOne(a *Alert) *AlertUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AlertClient) UpdateOneID ¶
func (c *AlertClient) UpdateOneID(id int) *AlertUpdateOne
UpdateOneID returns an update builder for the given id.
type AlertCreate ¶
type AlertCreate struct {
// contains filtered or unexported fields
}
AlertCreate is the builder for creating a Alert entity.
type AlertDelete ¶
type AlertDelete struct {
// contains filtered or unexported fields
}
AlertDelete is the builder for deleting a Alert entity.
func (*AlertDelete) Exec ¶
func (ad *AlertDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AlertDelete) ExecX ¶
func (ad *AlertDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AlertDelete) Where ¶
func (ad *AlertDelete) Where(ps ...predicate.Alert) *AlertDelete
Where adds a new predicate to the delete builder.
type AlertDeleteOne ¶
type AlertDeleteOne struct {
// contains filtered or unexported fields
}
AlertDeleteOne is the builder for deleting a single Alert entity.
func (*AlertDeleteOne) Exec ¶
func (ado *AlertDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AlertDeleteOne) ExecX ¶
func (ado *AlertDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type AlertGroupBy ¶
type AlertGroupBy struct {
// contains filtered or unexported fields
}
AlertGroupBy is the builder for group-by Alert entities.
func (*AlertGroupBy) Aggregate ¶
func (agb *AlertGroupBy) Aggregate(fns ...Aggregate) *AlertGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AlertGroupBy) Bools ¶
func (agb *AlertGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*AlertGroupBy) BoolsX ¶
func (agb *AlertGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*AlertGroupBy) Float64s ¶
func (agb *AlertGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*AlertGroupBy) Float64sX ¶
func (agb *AlertGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*AlertGroupBy) Ints ¶
func (agb *AlertGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*AlertGroupBy) IntsX ¶
func (agb *AlertGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*AlertGroupBy) Scan ¶
func (agb *AlertGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*AlertGroupBy) ScanX ¶
func (agb *AlertGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type AlertQuery ¶
type AlertQuery struct {
// contains filtered or unexported fields
}
AlertQuery is the builder for querying Alert entities.
func (*AlertQuery) All ¶
func (aq *AlertQuery) All(ctx context.Context) ([]*Alert, error)
All executes the query and returns a list of Alerts.
func (*AlertQuery) AllX ¶
func (aq *AlertQuery) AllX(ctx context.Context) []*Alert
AllX is like All, but panics if an error occurs.
func (*AlertQuery) Clone ¶
func (aq *AlertQuery) Clone() *AlertQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AlertQuery) Count ¶
func (aq *AlertQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AlertQuery) CountX ¶
func (aq *AlertQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AlertQuery) Exist ¶
func (aq *AlertQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AlertQuery) ExistX ¶
func (aq *AlertQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AlertQuery) First ¶
func (aq *AlertQuery) First(ctx context.Context) (*Alert, error)
First returns the first Alert entity in the query. Returns *NotFoundError when no alert was found.
func (*AlertQuery) FirstID ¶
func (aq *AlertQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Alert id in the query. Returns *NotFoundError when no id was found.
func (*AlertQuery) FirstX ¶
func (aq *AlertQuery) FirstX(ctx context.Context) *Alert
FirstX is like First, but panics if an error occurs.
func (*AlertQuery) FirstXID ¶
func (aq *AlertQuery) FirstXID(ctx context.Context) int
FirstXID is like FirstID, but panics if an error occurs.
func (*AlertQuery) GroupBy ¶
func (aq *AlertQuery) GroupBy(field string, fields ...string) *AlertGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
func (*AlertQuery) IDs ¶
func (aq *AlertQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Alert ids.
func (*AlertQuery) IDsX ¶
func (aq *AlertQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*AlertQuery) Limit ¶
func (aq *AlertQuery) Limit(limit int) *AlertQuery
Limit adds a limit step to the query.
func (*AlertQuery) Offset ¶
func (aq *AlertQuery) Offset(offset int) *AlertQuery
Offset adds an offset step to the query.
func (*AlertQuery) Only ¶
func (aq *AlertQuery) Only(ctx context.Context) (*Alert, error)
Only returns the only Alert entity in the query, returns an error if not exactly one entity was returned.
func (*AlertQuery) OnlyID ¶
func (aq *AlertQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID returns the only Alert id in the query, returns an error if not exactly one id was returned.
func (*AlertQuery) OnlyX ¶
func (aq *AlertQuery) OnlyX(ctx context.Context) *Alert
OnlyX is like Only, but panics if an error occurs.
func (*AlertQuery) OnlyXID ¶
func (aq *AlertQuery) OnlyXID(ctx context.Context) int
OnlyXID is like OnlyID, but panics if an error occurs.
func (*AlertQuery) Order ¶
func (aq *AlertQuery) Order(o ...Order) *AlertQuery
Order adds an order step to the query.
func (*AlertQuery) Select ¶
func (aq *AlertQuery) Select(field string, fields ...string) *AlertSelect
Select one or more fields from the given query.
func (*AlertQuery) Where ¶
func (aq *AlertQuery) Where(ps ...predicate.Alert) *AlertQuery
Where adds a new predicate for the builder.
type AlertSelect ¶
type AlertSelect struct {
// contains filtered or unexported fields
}
AlertSelect is the builder for select fields of Alert entities.
func (*AlertSelect) Bools ¶
func (as *AlertSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*AlertSelect) BoolsX ¶
func (as *AlertSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*AlertSelect) Float64s ¶
func (as *AlertSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*AlertSelect) Float64sX ¶
func (as *AlertSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*AlertSelect) Ints ¶
func (as *AlertSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*AlertSelect) IntsX ¶
func (as *AlertSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*AlertSelect) Scan ¶
func (as *AlertSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*AlertSelect) ScanX ¶
func (as *AlertSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type AlertUpdate ¶
type AlertUpdate struct {
// contains filtered or unexported fields
}
AlertUpdate is the builder for updating Alert entities.
func (*AlertUpdate) Exec ¶
func (au *AlertUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AlertUpdate) ExecX ¶
func (au *AlertUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AlertUpdate) Save ¶
func (au *AlertUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*AlertUpdate) SaveX ¶
func (au *AlertUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AlertUpdate) Where ¶
func (au *AlertUpdate) Where(ps ...predicate.Alert) *AlertUpdate
Where adds a new predicate for the builder.
type AlertUpdateOne ¶
type AlertUpdateOne struct {
// contains filtered or unexported fields
}
AlertUpdateOne is the builder for updating a single Alert entity.
func (*AlertUpdateOne) Exec ¶
func (auo *AlertUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AlertUpdateOne) ExecX ¶
func (auo *AlertUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Alert is the client for interacting with the Alert builders. Alert *AlertClient // ClinicalResults is the client for interacting with the ClinicalResults builders. ClinicalResults *ClinicalResultsClient // Doctor is the client for interacting with the Doctor builders. Doctor *DoctorClient // EpidemiologicResults is the client for interacting with the EpidemiologicResults builders. EpidemiologicResults *EpidemiologicResultsClient // History is the client for interacting with the History builders. History *HistoryClient // MedicalNote is the client for interacting with the MedicalNote builders. MedicalNote *MedicalNoteClient // Patient is the client for interacting with the Patient builders. Patient *PatientClient // Schedule is the client for interacting with the Schedule builders. Schedule *ScheduleClient // Task is the client for interacting with the Task builders. Task *TaskClient // TaskResponse is the client for interacting with the TaskResponse builders. TaskResponse *TaskResponseClient // Test is the client for interacting with the Test builders. Test *TestClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns the Client stored in a context, or nil if there isn't one.
func Open ¶
Open opens a connection to the database specified by the driver name and a driver-specific data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
type ClinicalResults ¶
type ClinicalResults struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // GeneralDiscomfort holds the value of the "generalDiscomfort" field. GeneralDiscomfort bool `json:"generalDiscomfort,omitempty"` // Fever holds the value of the "fever" field. Fever bool `json:"fever,omitempty"` // ThirdAge holds the value of the "thirdAge" field. ThirdAge bool `json:"thirdAge,omitempty"` // Dyspnea holds the value of the "dyspnea" field. Dyspnea bool `json:"dyspnea,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ClinicalResultsQuery when eager-loading is set. Edges ClinicalResultsEdges `json:"edges"` // contains filtered or unexported fields }
ClinicalResults is the model entity for the ClinicalResults schema.
func (*ClinicalResults) QueryTest ¶
func (cr *ClinicalResults) QueryTest() *TestQuery
QueryTest queries the test edge of the ClinicalResults.
func (*ClinicalResults) String ¶
func (cr *ClinicalResults) String() string
String implements the fmt.Stringer.
func (*ClinicalResults) Unwrap ¶
func (cr *ClinicalResults) Unwrap() *ClinicalResults
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*ClinicalResults) Update ¶
func (cr *ClinicalResults) Update() *ClinicalResultsUpdateOne
Update returns a builder for updating this ClinicalResults. Note that, you need to call ClinicalResults.Unwrap() before calling this method, if this ClinicalResults was returned from a transaction, and the transaction was committed or rolled back.
type ClinicalResultsClient ¶
type ClinicalResultsClient struct {
// contains filtered or unexported fields
}
ClinicalResultsClient is a client for the ClinicalResults schema.
func NewClinicalResultsClient ¶
func NewClinicalResultsClient(c config) *ClinicalResultsClient
NewClinicalResultsClient returns a client for the ClinicalResults from the given config.
func (*ClinicalResultsClient) Create ¶
func (c *ClinicalResultsClient) Create() *ClinicalResultsCreate
Create returns a create builder for ClinicalResults.
func (*ClinicalResultsClient) Delete ¶
func (c *ClinicalResultsClient) Delete() *ClinicalResultsDelete
Delete returns a delete builder for ClinicalResults.
func (*ClinicalResultsClient) DeleteOne ¶
func (c *ClinicalResultsClient) DeleteOne(cr *ClinicalResults) *ClinicalResultsDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ClinicalResultsClient) DeleteOneID ¶
func (c *ClinicalResultsClient) DeleteOneID(id uuid.UUID) *ClinicalResultsDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ClinicalResultsClient) Get ¶
func (c *ClinicalResultsClient) Get(ctx context.Context, id uuid.UUID) (*ClinicalResults, error)
Get returns a ClinicalResults entity by its id.
func (*ClinicalResultsClient) GetX ¶
func (c *ClinicalResultsClient) GetX(ctx context.Context, id uuid.UUID) *ClinicalResults
GetX is like Get, but panics if an error occurs.
func (*ClinicalResultsClient) Query ¶
func (c *ClinicalResultsClient) Query() *ClinicalResultsQuery
Create returns a query builder for ClinicalResults.
func (*ClinicalResultsClient) QueryTest ¶
func (c *ClinicalResultsClient) QueryTest(cr *ClinicalResults) *TestQuery
QueryTest queries the test edge of a ClinicalResults.
func (*ClinicalResultsClient) Update ¶
func (c *ClinicalResultsClient) Update() *ClinicalResultsUpdate
Update returns an update builder for ClinicalResults.
func (*ClinicalResultsClient) UpdateOne ¶
func (c *ClinicalResultsClient) UpdateOne(cr *ClinicalResults) *ClinicalResultsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ClinicalResultsClient) UpdateOneID ¶
func (c *ClinicalResultsClient) UpdateOneID(id uuid.UUID) *ClinicalResultsUpdateOne
UpdateOneID returns an update builder for the given id.
type ClinicalResultsCreate ¶
type ClinicalResultsCreate struct {
// contains filtered or unexported fields
}
ClinicalResultsCreate is the builder for creating a ClinicalResults entity.
func (*ClinicalResultsCreate) Save ¶
func (crc *ClinicalResultsCreate) Save(ctx context.Context) (*ClinicalResults, error)
Save creates the ClinicalResults in the database.
func (*ClinicalResultsCreate) SaveX ¶
func (crc *ClinicalResultsCreate) SaveX(ctx context.Context) *ClinicalResults
SaveX calls Save and panics if Save returns an error.
func (*ClinicalResultsCreate) SetDyspnea ¶
func (crc *ClinicalResultsCreate) SetDyspnea(b bool) *ClinicalResultsCreate
SetDyspnea sets the dyspnea field.
func (*ClinicalResultsCreate) SetFever ¶
func (crc *ClinicalResultsCreate) SetFever(b bool) *ClinicalResultsCreate
SetFever sets the fever field.
func (*ClinicalResultsCreate) SetGeneralDiscomfort ¶
func (crc *ClinicalResultsCreate) SetGeneralDiscomfort(b bool) *ClinicalResultsCreate
SetGeneralDiscomfort sets the generalDiscomfort field.
func (*ClinicalResultsCreate) SetID ¶
func (crc *ClinicalResultsCreate) SetID(u uuid.UUID) *ClinicalResultsCreate
SetID sets the id field.
func (*ClinicalResultsCreate) SetNillableTestID ¶
func (crc *ClinicalResultsCreate) SetNillableTestID(id *uuid.UUID) *ClinicalResultsCreate
SetNillableTestID sets the test edge to Test by id if the given value is not nil.
func (*ClinicalResultsCreate) SetTest ¶
func (crc *ClinicalResultsCreate) SetTest(t *Test) *ClinicalResultsCreate
SetTest sets the test edge to Test.
func (*ClinicalResultsCreate) SetTestID ¶
func (crc *ClinicalResultsCreate) SetTestID(id uuid.UUID) *ClinicalResultsCreate
SetTestID sets the test edge to Test by id.
func (*ClinicalResultsCreate) SetThirdAge ¶
func (crc *ClinicalResultsCreate) SetThirdAge(b bool) *ClinicalResultsCreate
SetThirdAge sets the thirdAge field.
type ClinicalResultsDelete ¶
type ClinicalResultsDelete struct {
// contains filtered or unexported fields
}
ClinicalResultsDelete is the builder for deleting a ClinicalResults entity.
func (*ClinicalResultsDelete) Exec ¶
func (crd *ClinicalResultsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ClinicalResultsDelete) ExecX ¶
func (crd *ClinicalResultsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ClinicalResultsDelete) Where ¶
func (crd *ClinicalResultsDelete) Where(ps ...predicate.ClinicalResults) *ClinicalResultsDelete
Where adds a new predicate to the delete builder.
type ClinicalResultsDeleteOne ¶
type ClinicalResultsDeleteOne struct {
// contains filtered or unexported fields
}
ClinicalResultsDeleteOne is the builder for deleting a single ClinicalResults entity.
func (*ClinicalResultsDeleteOne) Exec ¶
func (crdo *ClinicalResultsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ClinicalResultsDeleteOne) ExecX ¶
func (crdo *ClinicalResultsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ClinicalResultsEdges ¶
type ClinicalResultsEdges struct { // Test holds the value of the test edge. Test *Test // contains filtered or unexported fields }
ClinicalResultsEdges holds the relations/edges for other nodes in the graph.
func (ClinicalResultsEdges) TestOrErr ¶
func (e ClinicalResultsEdges) TestOrErr() (*Test, error)
TestOrErr returns the Test value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ClinicalResultsGroupBy ¶
type ClinicalResultsGroupBy struct {
// contains filtered or unexported fields
}
ClinicalResultsGroupBy is the builder for group-by ClinicalResults entities.
func (*ClinicalResultsGroupBy) Aggregate ¶
func (crgb *ClinicalResultsGroupBy) Aggregate(fns ...Aggregate) *ClinicalResultsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ClinicalResultsGroupBy) Bools ¶
func (crgb *ClinicalResultsGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*ClinicalResultsGroupBy) BoolsX ¶
func (crgb *ClinicalResultsGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ClinicalResultsGroupBy) Float64s ¶
func (crgb *ClinicalResultsGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*ClinicalResultsGroupBy) Float64sX ¶
func (crgb *ClinicalResultsGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ClinicalResultsGroupBy) Ints ¶
func (crgb *ClinicalResultsGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*ClinicalResultsGroupBy) IntsX ¶
func (crgb *ClinicalResultsGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ClinicalResultsGroupBy) Scan ¶
func (crgb *ClinicalResultsGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*ClinicalResultsGroupBy) ScanX ¶
func (crgb *ClinicalResultsGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type ClinicalResultsQuery ¶
type ClinicalResultsQuery struct {
// contains filtered or unexported fields
}
ClinicalResultsQuery is the builder for querying ClinicalResults entities.
func (*ClinicalResultsQuery) All ¶
func (crq *ClinicalResultsQuery) All(ctx context.Context) ([]*ClinicalResults, error)
All executes the query and returns a list of ClinicalResultsSlice.
func (*ClinicalResultsQuery) AllX ¶
func (crq *ClinicalResultsQuery) AllX(ctx context.Context) []*ClinicalResults
AllX is like All, but panics if an error occurs.
func (*ClinicalResultsQuery) Clone ¶
func (crq *ClinicalResultsQuery) Clone() *ClinicalResultsQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ClinicalResultsQuery) Count ¶
func (crq *ClinicalResultsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ClinicalResultsQuery) CountX ¶
func (crq *ClinicalResultsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ClinicalResultsQuery) Exist ¶
func (crq *ClinicalResultsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ClinicalResultsQuery) ExistX ¶
func (crq *ClinicalResultsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ClinicalResultsQuery) First ¶
func (crq *ClinicalResultsQuery) First(ctx context.Context) (*ClinicalResults, error)
First returns the first ClinicalResults entity in the query. Returns *NotFoundError when no clinicalresults was found.
func (*ClinicalResultsQuery) FirstID ¶
FirstID returns the first ClinicalResults id in the query. Returns *NotFoundError when no id was found.
func (*ClinicalResultsQuery) FirstX ¶
func (crq *ClinicalResultsQuery) FirstX(ctx context.Context) *ClinicalResults
FirstX is like First, but panics if an error occurs.
func (*ClinicalResultsQuery) FirstXID ¶
func (crq *ClinicalResultsQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*ClinicalResultsQuery) GroupBy ¶
func (crq *ClinicalResultsQuery) GroupBy(field string, fields ...string) *ClinicalResultsGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { GeneralDiscomfort bool `json:"generalDiscomfort,omitempty"` Count int `json:"count,omitempty"` } client.ClinicalResults.Query(). GroupBy(clinicalresults.FieldGeneralDiscomfort). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ClinicalResultsQuery) IDs ¶
IDs executes the query and returns a list of ClinicalResults ids.
func (*ClinicalResultsQuery) IDsX ¶
func (crq *ClinicalResultsQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*ClinicalResultsQuery) Limit ¶
func (crq *ClinicalResultsQuery) Limit(limit int) *ClinicalResultsQuery
Limit adds a limit step to the query.
func (*ClinicalResultsQuery) Offset ¶
func (crq *ClinicalResultsQuery) Offset(offset int) *ClinicalResultsQuery
Offset adds an offset step to the query.
func (*ClinicalResultsQuery) Only ¶
func (crq *ClinicalResultsQuery) Only(ctx context.Context) (*ClinicalResults, error)
Only returns the only ClinicalResults entity in the query, returns an error if not exactly one entity was returned.
func (*ClinicalResultsQuery) OnlyID ¶
OnlyID returns the only ClinicalResults id in the query, returns an error if not exactly one id was returned.
func (*ClinicalResultsQuery) OnlyX ¶
func (crq *ClinicalResultsQuery) OnlyX(ctx context.Context) *ClinicalResults
OnlyX is like Only, but panics if an error occurs.
func (*ClinicalResultsQuery) OnlyXID ¶
func (crq *ClinicalResultsQuery) OnlyXID(ctx context.Context) uuid.UUID
OnlyXID is like OnlyID, but panics if an error occurs.
func (*ClinicalResultsQuery) Order ¶
func (crq *ClinicalResultsQuery) Order(o ...Order) *ClinicalResultsQuery
Order adds an order step to the query.
func (*ClinicalResultsQuery) QueryTest ¶
func (crq *ClinicalResultsQuery) QueryTest() *TestQuery
QueryTest chains the current query on the test edge.
func (*ClinicalResultsQuery) Select ¶
func (crq *ClinicalResultsQuery) Select(field string, fields ...string) *ClinicalResultsSelect
Select one or more fields from the given query.
Example:
var v []struct { GeneralDiscomfort bool `json:"generalDiscomfort,omitempty"` } client.ClinicalResults.Query(). Select(clinicalresults.FieldGeneralDiscomfort). Scan(ctx, &v)
func (*ClinicalResultsQuery) Where ¶
func (crq *ClinicalResultsQuery) Where(ps ...predicate.ClinicalResults) *ClinicalResultsQuery
Where adds a new predicate for the builder.
func (*ClinicalResultsQuery) WithTest ¶
func (crq *ClinicalResultsQuery) WithTest(opts ...func(*TestQuery)) *ClinicalResultsQuery
WithTest tells the query-builder to eager-loads the nodes that are connected to
the "test" edge. The optional arguments used to configure the query builder of the edge.
type ClinicalResultsSelect ¶
type ClinicalResultsSelect struct {
// contains filtered or unexported fields
}
ClinicalResultsSelect is the builder for select fields of ClinicalResults entities.
func (*ClinicalResultsSelect) Bools ¶
func (crs *ClinicalResultsSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*ClinicalResultsSelect) BoolsX ¶
func (crs *ClinicalResultsSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ClinicalResultsSelect) Float64s ¶
func (crs *ClinicalResultsSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*ClinicalResultsSelect) Float64sX ¶
func (crs *ClinicalResultsSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ClinicalResultsSelect) Ints ¶
func (crs *ClinicalResultsSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*ClinicalResultsSelect) IntsX ¶
func (crs *ClinicalResultsSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ClinicalResultsSelect) Scan ¶
func (crs *ClinicalResultsSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*ClinicalResultsSelect) ScanX ¶
func (crs *ClinicalResultsSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type ClinicalResultsSlice ¶
type ClinicalResultsSlice []*ClinicalResults
ClinicalResultsSlice is a parsable slice of ClinicalResults.
type ClinicalResultsUpdate ¶
type ClinicalResultsUpdate struct {
// contains filtered or unexported fields
}
ClinicalResultsUpdate is the builder for updating ClinicalResults entities.
func (*ClinicalResultsUpdate) ClearTest ¶
func (cru *ClinicalResultsUpdate) ClearTest() *ClinicalResultsUpdate
ClearTest clears the test edge to Test.
func (*ClinicalResultsUpdate) Exec ¶
func (cru *ClinicalResultsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClinicalResultsUpdate) ExecX ¶
func (cru *ClinicalResultsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClinicalResultsUpdate) Save ¶
func (cru *ClinicalResultsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*ClinicalResultsUpdate) SaveX ¶
func (cru *ClinicalResultsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ClinicalResultsUpdate) SetDyspnea ¶
func (cru *ClinicalResultsUpdate) SetDyspnea(b bool) *ClinicalResultsUpdate
SetDyspnea sets the dyspnea field.
func (*ClinicalResultsUpdate) SetFever ¶
func (cru *ClinicalResultsUpdate) SetFever(b bool) *ClinicalResultsUpdate
SetFever sets the fever field.
func (*ClinicalResultsUpdate) SetGeneralDiscomfort ¶
func (cru *ClinicalResultsUpdate) SetGeneralDiscomfort(b bool) *ClinicalResultsUpdate
SetGeneralDiscomfort sets the generalDiscomfort field.
func (*ClinicalResultsUpdate) SetNillableTestID ¶
func (cru *ClinicalResultsUpdate) SetNillableTestID(id *uuid.UUID) *ClinicalResultsUpdate
SetNillableTestID sets the test edge to Test by id if the given value is not nil.
func (*ClinicalResultsUpdate) SetTest ¶
func (cru *ClinicalResultsUpdate) SetTest(t *Test) *ClinicalResultsUpdate
SetTest sets the test edge to Test.
func (*ClinicalResultsUpdate) SetTestID ¶
func (cru *ClinicalResultsUpdate) SetTestID(id uuid.UUID) *ClinicalResultsUpdate
SetTestID sets the test edge to Test by id.
func (*ClinicalResultsUpdate) SetThirdAge ¶
func (cru *ClinicalResultsUpdate) SetThirdAge(b bool) *ClinicalResultsUpdate
SetThirdAge sets the thirdAge field.
func (*ClinicalResultsUpdate) Where ¶
func (cru *ClinicalResultsUpdate) Where(ps ...predicate.ClinicalResults) *ClinicalResultsUpdate
Where adds a new predicate for the builder.
type ClinicalResultsUpdateOne ¶
type ClinicalResultsUpdateOne struct {
// contains filtered or unexported fields
}
ClinicalResultsUpdateOne is the builder for updating a single ClinicalResults entity.
func (*ClinicalResultsUpdateOne) ClearTest ¶
func (cruo *ClinicalResultsUpdateOne) ClearTest() *ClinicalResultsUpdateOne
ClearTest clears the test edge to Test.
func (*ClinicalResultsUpdateOne) Exec ¶
func (cruo *ClinicalResultsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ClinicalResultsUpdateOne) ExecX ¶
func (cruo *ClinicalResultsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClinicalResultsUpdateOne) Save ¶
func (cruo *ClinicalResultsUpdateOne) Save(ctx context.Context) (*ClinicalResults, error)
Save executes the query and returns the updated entity.
func (*ClinicalResultsUpdateOne) SaveX ¶
func (cruo *ClinicalResultsUpdateOne) SaveX(ctx context.Context) *ClinicalResults
SaveX is like Save, but panics if an error occurs.
func (*ClinicalResultsUpdateOne) SetDyspnea ¶
func (cruo *ClinicalResultsUpdateOne) SetDyspnea(b bool) *ClinicalResultsUpdateOne
SetDyspnea sets the dyspnea field.
func (*ClinicalResultsUpdateOne) SetFever ¶
func (cruo *ClinicalResultsUpdateOne) SetFever(b bool) *ClinicalResultsUpdateOne
SetFever sets the fever field.
func (*ClinicalResultsUpdateOne) SetGeneralDiscomfort ¶
func (cruo *ClinicalResultsUpdateOne) SetGeneralDiscomfort(b bool) *ClinicalResultsUpdateOne
SetGeneralDiscomfort sets the generalDiscomfort field.
func (*ClinicalResultsUpdateOne) SetNillableTestID ¶
func (cruo *ClinicalResultsUpdateOne) SetNillableTestID(id *uuid.UUID) *ClinicalResultsUpdateOne
SetNillableTestID sets the test edge to Test by id if the given value is not nil.
func (*ClinicalResultsUpdateOne) SetTest ¶
func (cruo *ClinicalResultsUpdateOne) SetTest(t *Test) *ClinicalResultsUpdateOne
SetTest sets the test edge to Test.
func (*ClinicalResultsUpdateOne) SetTestID ¶
func (cruo *ClinicalResultsUpdateOne) SetTestID(id uuid.UUID) *ClinicalResultsUpdateOne
SetTestID sets the test edge to Test by id.
func (*ClinicalResultsUpdateOne) SetThirdAge ¶
func (cruo *ClinicalResultsUpdateOne) SetThirdAge(b bool) *ClinicalResultsUpdateOne
SetThirdAge sets the thirdAge field.
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Doctor ¶
type Doctor struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name []string `json:"name,omitempty"` // Email holds the value of the "email" field. Email string `json:"email,omitempty"` // Phone holds the value of the "phone" field. Phone string `json:"phone,omitempty"` // State holds the value of the "state" field. State doctor.State `json:"state,omitempty"` // LastConnection holds the value of the "lastConnection" field. LastConnection time.Time `json:"lastConnection,omitempty"` // Volunteer holds the value of the "volunteer" field. Volunteer bool `json:"volunteer,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the DoctorQuery when eager-loading is set. Edges DoctorEdges `json:"edges"` // contains filtered or unexported fields }
Doctor is the model entity for the Doctor schema.
func (*Doctor) QueryNotes ¶
func (d *Doctor) QueryNotes() *MedicalNoteQuery
QueryNotes queries the notes edge of the Doctor.
func (*Doctor) QueryResponses ¶
func (d *Doctor) QueryResponses() *TaskResponseQuery
QueryResponses queries the responses edge of the Doctor.
func (*Doctor) QueryTasks ¶
QueryTasks queries the tasks edge of the Doctor.
func (*Doctor) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Doctor) Update ¶
func (d *Doctor) Update() *DoctorUpdateOne
Update returns a builder for updating this Doctor. Note that, you need to call Doctor.Unwrap() before calling this method, if this Doctor was returned from a transaction, and the transaction was committed or rolled back.
type DoctorClient ¶
type DoctorClient struct {
// contains filtered or unexported fields
}
DoctorClient is a client for the Doctor schema.
func NewDoctorClient ¶
func NewDoctorClient(c config) *DoctorClient
NewDoctorClient returns a client for the Doctor from the given config.
func (*DoctorClient) Create ¶
func (c *DoctorClient) Create() *DoctorCreate
Create returns a create builder for Doctor.
func (*DoctorClient) Delete ¶
func (c *DoctorClient) Delete() *DoctorDelete
Delete returns a delete builder for Doctor.
func (*DoctorClient) DeleteOne ¶
func (c *DoctorClient) DeleteOne(d *Doctor) *DoctorDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*DoctorClient) DeleteOneID ¶
func (c *DoctorClient) DeleteOneID(id uuid.UUID) *DoctorDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*DoctorClient) Query ¶
func (c *DoctorClient) Query() *DoctorQuery
Create returns a query builder for Doctor.
func (*DoctorClient) QueryNotes ¶
func (c *DoctorClient) QueryNotes(d *Doctor) *MedicalNoteQuery
QueryNotes queries the notes edge of a Doctor.
func (*DoctorClient) QueryResponses ¶
func (c *DoctorClient) QueryResponses(d *Doctor) *TaskResponseQuery
QueryResponses queries the responses edge of a Doctor.
func (*DoctorClient) QueryTasks ¶
func (c *DoctorClient) QueryTasks(d *Doctor) *TaskQuery
QueryTasks queries the tasks edge of a Doctor.
func (*DoctorClient) Update ¶
func (c *DoctorClient) Update() *DoctorUpdate
Update returns an update builder for Doctor.
func (*DoctorClient) UpdateOne ¶
func (c *DoctorClient) UpdateOne(d *Doctor) *DoctorUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DoctorClient) UpdateOneID ¶
func (c *DoctorClient) UpdateOneID(id uuid.UUID) *DoctorUpdateOne
UpdateOneID returns an update builder for the given id.
type DoctorCreate ¶
type DoctorCreate struct {
// contains filtered or unexported fields
}
DoctorCreate is the builder for creating a Doctor entity.
func (*DoctorCreate) AddNoteIDs ¶
func (dc *DoctorCreate) AddNoteIDs(ids ...uuid.UUID) *DoctorCreate
AddNoteIDs adds the notes edge to MedicalNote by ids.
func (*DoctorCreate) AddNotes ¶
func (dc *DoctorCreate) AddNotes(m ...*MedicalNote) *DoctorCreate
AddNotes adds the notes edges to MedicalNote.
func (*DoctorCreate) AddResponseIDs ¶
func (dc *DoctorCreate) AddResponseIDs(ids ...uuid.UUID) *DoctorCreate
AddResponseIDs adds the responses edge to TaskResponse by ids.
func (*DoctorCreate) AddResponses ¶
func (dc *DoctorCreate) AddResponses(t ...*TaskResponse) *DoctorCreate
AddResponses adds the responses edges to TaskResponse.
func (*DoctorCreate) AddTaskIDs ¶
func (dc *DoctorCreate) AddTaskIDs(ids ...uuid.UUID) *DoctorCreate
AddTaskIDs adds the tasks edge to Task by ids.
func (*DoctorCreate) AddTasks ¶
func (dc *DoctorCreate) AddTasks(t ...*Task) *DoctorCreate
AddTasks adds the tasks edges to Task.
func (*DoctorCreate) Save ¶
func (dc *DoctorCreate) Save(ctx context.Context) (*Doctor, error)
Save creates the Doctor in the database.
func (*DoctorCreate) SaveX ¶
func (dc *DoctorCreate) SaveX(ctx context.Context) *Doctor
SaveX calls Save and panics if Save returns an error.
func (*DoctorCreate) SetEmail ¶
func (dc *DoctorCreate) SetEmail(s string) *DoctorCreate
SetEmail sets the email field.
func (*DoctorCreate) SetID ¶
func (dc *DoctorCreate) SetID(u uuid.UUID) *DoctorCreate
SetID sets the id field.
func (*DoctorCreate) SetLastConnection ¶
func (dc *DoctorCreate) SetLastConnection(t time.Time) *DoctorCreate
SetLastConnection sets the lastConnection field.
func (*DoctorCreate) SetName ¶
func (dc *DoctorCreate) SetName(s []string) *DoctorCreate
SetName sets the name field.
func (*DoctorCreate) SetNillableLastConnection ¶
func (dc *DoctorCreate) SetNillableLastConnection(t *time.Time) *DoctorCreate
SetNillableLastConnection sets the lastConnection field if the given value is not nil.
func (*DoctorCreate) SetNillableVolunteer ¶
func (dc *DoctorCreate) SetNillableVolunteer(b *bool) *DoctorCreate
SetNillableVolunteer sets the volunteer field if the given value is not nil.
func (*DoctorCreate) SetPhone ¶
func (dc *DoctorCreate) SetPhone(s string) *DoctorCreate
SetPhone sets the phone field.
func (*DoctorCreate) SetState ¶
func (dc *DoctorCreate) SetState(d doctor.State) *DoctorCreate
SetState sets the state field.
func (*DoctorCreate) SetVolunteer ¶
func (dc *DoctorCreate) SetVolunteer(b bool) *DoctorCreate
SetVolunteer sets the volunteer field.
type DoctorDelete ¶
type DoctorDelete struct {
// contains filtered or unexported fields
}
DoctorDelete is the builder for deleting a Doctor entity.
func (*DoctorDelete) Exec ¶
func (dd *DoctorDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DoctorDelete) ExecX ¶
func (dd *DoctorDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DoctorDelete) Where ¶
func (dd *DoctorDelete) Where(ps ...predicate.Doctor) *DoctorDelete
Where adds a new predicate to the delete builder.
type DoctorDeleteOne ¶
type DoctorDeleteOne struct {
// contains filtered or unexported fields
}
DoctorDeleteOne is the builder for deleting a single Doctor entity.
func (*DoctorDeleteOne) Exec ¶
func (ddo *DoctorDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DoctorDeleteOne) ExecX ¶
func (ddo *DoctorDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type DoctorEdges ¶
type DoctorEdges struct { // Notes holds the value of the notes edge. Notes []*MedicalNote // Responses holds the value of the responses edge. Responses []*TaskResponse // Tasks holds the value of the tasks edge. Tasks []*Task // contains filtered or unexported fields }
DoctorEdges holds the relations/edges for other nodes in the graph.
func (DoctorEdges) NotesOrErr ¶
func (e DoctorEdges) NotesOrErr() ([]*MedicalNote, error)
NotesOrErr returns the Notes value or an error if the edge was not loaded in eager-loading.
func (DoctorEdges) ResponsesOrErr ¶
func (e DoctorEdges) ResponsesOrErr() ([]*TaskResponse, error)
ResponsesOrErr returns the Responses value or an error if the edge was not loaded in eager-loading.
func (DoctorEdges) TasksOrErr ¶
func (e DoctorEdges) TasksOrErr() ([]*Task, error)
TasksOrErr returns the Tasks value or an error if the edge was not loaded in eager-loading.
type DoctorGroupBy ¶
type DoctorGroupBy struct {
// contains filtered or unexported fields
}
DoctorGroupBy is the builder for group-by Doctor entities.
func (*DoctorGroupBy) Aggregate ¶
func (dgb *DoctorGroupBy) Aggregate(fns ...Aggregate) *DoctorGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DoctorGroupBy) Bools ¶
func (dgb *DoctorGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*DoctorGroupBy) BoolsX ¶
func (dgb *DoctorGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*DoctorGroupBy) Float64s ¶
func (dgb *DoctorGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*DoctorGroupBy) Float64sX ¶
func (dgb *DoctorGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*DoctorGroupBy) Ints ¶
func (dgb *DoctorGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*DoctorGroupBy) IntsX ¶
func (dgb *DoctorGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*DoctorGroupBy) Scan ¶
func (dgb *DoctorGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*DoctorGroupBy) ScanX ¶
func (dgb *DoctorGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type DoctorQuery ¶
type DoctorQuery struct {
// contains filtered or unexported fields
}
DoctorQuery is the builder for querying Doctor entities.
func (*DoctorQuery) All ¶
func (dq *DoctorQuery) All(ctx context.Context) ([]*Doctor, error)
All executes the query and returns a list of Doctors.
func (*DoctorQuery) AllX ¶
func (dq *DoctorQuery) AllX(ctx context.Context) []*Doctor
AllX is like All, but panics if an error occurs.
func (*DoctorQuery) Clone ¶
func (dq *DoctorQuery) Clone() *DoctorQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DoctorQuery) Count ¶
func (dq *DoctorQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DoctorQuery) CountX ¶
func (dq *DoctorQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DoctorQuery) Exist ¶
func (dq *DoctorQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DoctorQuery) ExistX ¶
func (dq *DoctorQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DoctorQuery) First ¶
func (dq *DoctorQuery) First(ctx context.Context) (*Doctor, error)
First returns the first Doctor entity in the query. Returns *NotFoundError when no doctor was found.
func (*DoctorQuery) FirstID ¶
FirstID returns the first Doctor id in the query. Returns *NotFoundError when no id was found.
func (*DoctorQuery) FirstX ¶
func (dq *DoctorQuery) FirstX(ctx context.Context) *Doctor
FirstX is like First, but panics if an error occurs.
func (*DoctorQuery) FirstXID ¶
func (dq *DoctorQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*DoctorQuery) GroupBy ¶
func (dq *DoctorQuery) GroupBy(field string, fields ...string) *DoctorGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name []string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Doctor.Query(). GroupBy(doctor.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DoctorQuery) IDsX ¶
func (dq *DoctorQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*DoctorQuery) Limit ¶
func (dq *DoctorQuery) Limit(limit int) *DoctorQuery
Limit adds a limit step to the query.
func (*DoctorQuery) Offset ¶
func (dq *DoctorQuery) Offset(offset int) *DoctorQuery
Offset adds an offset step to the query.
func (*DoctorQuery) Only ¶
func (dq *DoctorQuery) Only(ctx context.Context) (*Doctor, error)
Only returns the only Doctor entity in the query, returns an error if not exactly one entity was returned.
func (*DoctorQuery) OnlyID ¶
OnlyID returns the only Doctor id in the query, returns an error if not exactly one id was returned.
func (*DoctorQuery) OnlyX ¶
func (dq *DoctorQuery) OnlyX(ctx context.Context) *Doctor
OnlyX is like Only, but panics if an error occurs.
func (*DoctorQuery) OnlyXID ¶
func (dq *DoctorQuery) OnlyXID(ctx context.Context) uuid.UUID
OnlyXID is like OnlyID, but panics if an error occurs.
func (*DoctorQuery) Order ¶
func (dq *DoctorQuery) Order(o ...Order) *DoctorQuery
Order adds an order step to the query.
func (*DoctorQuery) QueryNotes ¶
func (dq *DoctorQuery) QueryNotes() *MedicalNoteQuery
QueryNotes chains the current query on the notes edge.
func (*DoctorQuery) QueryResponses ¶
func (dq *DoctorQuery) QueryResponses() *TaskResponseQuery
QueryResponses chains the current query on the responses edge.
func (*DoctorQuery) QueryTasks ¶
func (dq *DoctorQuery) QueryTasks() *TaskQuery
QueryTasks chains the current query on the tasks edge.
func (*DoctorQuery) Select ¶
func (dq *DoctorQuery) Select(field string, fields ...string) *DoctorSelect
Select one or more fields from the given query.
Example:
var v []struct { Name []string `json:"name,omitempty"` } client.Doctor.Query(). Select(doctor.FieldName). Scan(ctx, &v)
func (*DoctorQuery) Where ¶
func (dq *DoctorQuery) Where(ps ...predicate.Doctor) *DoctorQuery
Where adds a new predicate for the builder.
func (*DoctorQuery) WithNotes ¶
func (dq *DoctorQuery) WithNotes(opts ...func(*MedicalNoteQuery)) *DoctorQuery
WithNotes tells the query-builder to eager-loads the nodes that are connected to
the "notes" edge. The optional arguments used to configure the query builder of the edge.
func (*DoctorQuery) WithResponses ¶
func (dq *DoctorQuery) WithResponses(opts ...func(*TaskResponseQuery)) *DoctorQuery
WithResponses tells the query-builder to eager-loads the nodes that are connected to
the "responses" edge. The optional arguments used to configure the query builder of the edge.
func (*DoctorQuery) WithTasks ¶
func (dq *DoctorQuery) WithTasks(opts ...func(*TaskQuery)) *DoctorQuery
WithTasks tells the query-builder to eager-loads the nodes that are connected to
the "tasks" edge. The optional arguments used to configure the query builder of the edge.
type DoctorSelect ¶
type DoctorSelect struct {
// contains filtered or unexported fields
}
DoctorSelect is the builder for select fields of Doctor entities.
func (*DoctorSelect) Bools ¶
func (ds *DoctorSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*DoctorSelect) BoolsX ¶
func (ds *DoctorSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*DoctorSelect) Float64s ¶
func (ds *DoctorSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*DoctorSelect) Float64sX ¶
func (ds *DoctorSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*DoctorSelect) Ints ¶
func (ds *DoctorSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*DoctorSelect) IntsX ¶
func (ds *DoctorSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*DoctorSelect) Scan ¶
func (ds *DoctorSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*DoctorSelect) ScanX ¶
func (ds *DoctorSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type DoctorUpdate ¶
type DoctorUpdate struct {
// contains filtered or unexported fields
}
DoctorUpdate is the builder for updating Doctor entities.
func (*DoctorUpdate) AddNoteIDs ¶
func (du *DoctorUpdate) AddNoteIDs(ids ...uuid.UUID) *DoctorUpdate
AddNoteIDs adds the notes edge to MedicalNote by ids.
func (*DoctorUpdate) AddNotes ¶
func (du *DoctorUpdate) AddNotes(m ...*MedicalNote) *DoctorUpdate
AddNotes adds the notes edges to MedicalNote.
func (*DoctorUpdate) AddResponseIDs ¶
func (du *DoctorUpdate) AddResponseIDs(ids ...uuid.UUID) *DoctorUpdate
AddResponseIDs adds the responses edge to TaskResponse by ids.
func (*DoctorUpdate) AddResponses ¶
func (du *DoctorUpdate) AddResponses(t ...*TaskResponse) *DoctorUpdate
AddResponses adds the responses edges to TaskResponse.
func (*DoctorUpdate) AddTaskIDs ¶
func (du *DoctorUpdate) AddTaskIDs(ids ...uuid.UUID) *DoctorUpdate
AddTaskIDs adds the tasks edge to Task by ids.
func (*DoctorUpdate) AddTasks ¶
func (du *DoctorUpdate) AddTasks(t ...*Task) *DoctorUpdate
AddTasks adds the tasks edges to Task.
func (*DoctorUpdate) ClearLastConnection ¶
func (du *DoctorUpdate) ClearLastConnection() *DoctorUpdate
ClearLastConnection clears the value of lastConnection.
func (*DoctorUpdate) Exec ¶
func (du *DoctorUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DoctorUpdate) ExecX ¶
func (du *DoctorUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DoctorUpdate) RemoveNoteIDs ¶
func (du *DoctorUpdate) RemoveNoteIDs(ids ...uuid.UUID) *DoctorUpdate
RemoveNoteIDs removes the notes edge to MedicalNote by ids.
func (*DoctorUpdate) RemoveNotes ¶
func (du *DoctorUpdate) RemoveNotes(m ...*MedicalNote) *DoctorUpdate
RemoveNotes removes notes edges to MedicalNote.
func (*DoctorUpdate) RemoveResponseIDs ¶
func (du *DoctorUpdate) RemoveResponseIDs(ids ...uuid.UUID) *DoctorUpdate
RemoveResponseIDs removes the responses edge to TaskResponse by ids.
func (*DoctorUpdate) RemoveResponses ¶
func (du *DoctorUpdate) RemoveResponses(t ...*TaskResponse) *DoctorUpdate
RemoveResponses removes responses edges to TaskResponse.
func (*DoctorUpdate) RemoveTaskIDs ¶
func (du *DoctorUpdate) RemoveTaskIDs(ids ...uuid.UUID) *DoctorUpdate
RemoveTaskIDs removes the tasks edge to Task by ids.
func (*DoctorUpdate) RemoveTasks ¶
func (du *DoctorUpdate) RemoveTasks(t ...*Task) *DoctorUpdate
RemoveTasks removes tasks edges to Task.
func (*DoctorUpdate) Save ¶
func (du *DoctorUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*DoctorUpdate) SaveX ¶
func (du *DoctorUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DoctorUpdate) SetEmail ¶
func (du *DoctorUpdate) SetEmail(s string) *DoctorUpdate
SetEmail sets the email field.
func (*DoctorUpdate) SetLastConnection ¶
func (du *DoctorUpdate) SetLastConnection(t time.Time) *DoctorUpdate
SetLastConnection sets the lastConnection field.
func (*DoctorUpdate) SetName ¶
func (du *DoctorUpdate) SetName(s []string) *DoctorUpdate
SetName sets the name field.
func (*DoctorUpdate) SetNillableLastConnection ¶
func (du *DoctorUpdate) SetNillableLastConnection(t *time.Time) *DoctorUpdate
SetNillableLastConnection sets the lastConnection field if the given value is not nil.
func (*DoctorUpdate) SetNillableVolunteer ¶
func (du *DoctorUpdate) SetNillableVolunteer(b *bool) *DoctorUpdate
SetNillableVolunteer sets the volunteer field if the given value is not nil.
func (*DoctorUpdate) SetPhone ¶
func (du *DoctorUpdate) SetPhone(s string) *DoctorUpdate
SetPhone sets the phone field.
func (*DoctorUpdate) SetState ¶
func (du *DoctorUpdate) SetState(d doctor.State) *DoctorUpdate
SetState sets the state field.
func (*DoctorUpdate) SetVolunteer ¶
func (du *DoctorUpdate) SetVolunteer(b bool) *DoctorUpdate
SetVolunteer sets the volunteer field.
func (*DoctorUpdate) Where ¶
func (du *DoctorUpdate) Where(ps ...predicate.Doctor) *DoctorUpdate
Where adds a new predicate for the builder.
type DoctorUpdateOne ¶
type DoctorUpdateOne struct {
// contains filtered or unexported fields
}
DoctorUpdateOne is the builder for updating a single Doctor entity.
func (*DoctorUpdateOne) AddNoteIDs ¶
func (duo *DoctorUpdateOne) AddNoteIDs(ids ...uuid.UUID) *DoctorUpdateOne
AddNoteIDs adds the notes edge to MedicalNote by ids.
func (*DoctorUpdateOne) AddNotes ¶
func (duo *DoctorUpdateOne) AddNotes(m ...*MedicalNote) *DoctorUpdateOne
AddNotes adds the notes edges to MedicalNote.
func (*DoctorUpdateOne) AddResponseIDs ¶
func (duo *DoctorUpdateOne) AddResponseIDs(ids ...uuid.UUID) *DoctorUpdateOne
AddResponseIDs adds the responses edge to TaskResponse by ids.
func (*DoctorUpdateOne) AddResponses ¶
func (duo *DoctorUpdateOne) AddResponses(t ...*TaskResponse) *DoctorUpdateOne
AddResponses adds the responses edges to TaskResponse.
func (*DoctorUpdateOne) AddTaskIDs ¶
func (duo *DoctorUpdateOne) AddTaskIDs(ids ...uuid.UUID) *DoctorUpdateOne
AddTaskIDs adds the tasks edge to Task by ids.
func (*DoctorUpdateOne) AddTasks ¶
func (duo *DoctorUpdateOne) AddTasks(t ...*Task) *DoctorUpdateOne
AddTasks adds the tasks edges to Task.
func (*DoctorUpdateOne) ClearLastConnection ¶
func (duo *DoctorUpdateOne) ClearLastConnection() *DoctorUpdateOne
ClearLastConnection clears the value of lastConnection.
func (*DoctorUpdateOne) Exec ¶
func (duo *DoctorUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DoctorUpdateOne) ExecX ¶
func (duo *DoctorUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DoctorUpdateOne) RemoveNoteIDs ¶
func (duo *DoctorUpdateOne) RemoveNoteIDs(ids ...uuid.UUID) *DoctorUpdateOne
RemoveNoteIDs removes the notes edge to MedicalNote by ids.
func (*DoctorUpdateOne) RemoveNotes ¶
func (duo *DoctorUpdateOne) RemoveNotes(m ...*MedicalNote) *DoctorUpdateOne
RemoveNotes removes notes edges to MedicalNote.
func (*DoctorUpdateOne) RemoveResponseIDs ¶
func (duo *DoctorUpdateOne) RemoveResponseIDs(ids ...uuid.UUID) *DoctorUpdateOne
RemoveResponseIDs removes the responses edge to TaskResponse by ids.
func (*DoctorUpdateOne) RemoveResponses ¶
func (duo *DoctorUpdateOne) RemoveResponses(t ...*TaskResponse) *DoctorUpdateOne
RemoveResponses removes responses edges to TaskResponse.
func (*DoctorUpdateOne) RemoveTaskIDs ¶
func (duo *DoctorUpdateOne) RemoveTaskIDs(ids ...uuid.UUID) *DoctorUpdateOne
RemoveTaskIDs removes the tasks edge to Task by ids.
func (*DoctorUpdateOne) RemoveTasks ¶
func (duo *DoctorUpdateOne) RemoveTasks(t ...*Task) *DoctorUpdateOne
RemoveTasks removes tasks edges to Task.
func (*DoctorUpdateOne) Save ¶
func (duo *DoctorUpdateOne) Save(ctx context.Context) (*Doctor, error)
Save executes the query and returns the updated entity.
func (*DoctorUpdateOne) SaveX ¶
func (duo *DoctorUpdateOne) SaveX(ctx context.Context) *Doctor
SaveX is like Save, but panics if an error occurs.
func (*DoctorUpdateOne) SetEmail ¶
func (duo *DoctorUpdateOne) SetEmail(s string) *DoctorUpdateOne
SetEmail sets the email field.
func (*DoctorUpdateOne) SetLastConnection ¶
func (duo *DoctorUpdateOne) SetLastConnection(t time.Time) *DoctorUpdateOne
SetLastConnection sets the lastConnection field.
func (*DoctorUpdateOne) SetName ¶
func (duo *DoctorUpdateOne) SetName(s []string) *DoctorUpdateOne
SetName sets the name field.
func (*DoctorUpdateOne) SetNillableLastConnection ¶
func (duo *DoctorUpdateOne) SetNillableLastConnection(t *time.Time) *DoctorUpdateOne
SetNillableLastConnection sets the lastConnection field if the given value is not nil.
func (*DoctorUpdateOne) SetNillableVolunteer ¶
func (duo *DoctorUpdateOne) SetNillableVolunteer(b *bool) *DoctorUpdateOne
SetNillableVolunteer sets the volunteer field if the given value is not nil.
func (*DoctorUpdateOne) SetPhone ¶
func (duo *DoctorUpdateOne) SetPhone(s string) *DoctorUpdateOne
SetPhone sets the phone field.
func (*DoctorUpdateOne) SetState ¶
func (duo *DoctorUpdateOne) SetState(d doctor.State) *DoctorUpdateOne
SetState sets the state field.
func (*DoctorUpdateOne) SetVolunteer ¶
func (duo *DoctorUpdateOne) SetVolunteer(b bool) *DoctorUpdateOne
SetVolunteer sets the volunteer field.
type EpidemiologicResults ¶
type EpidemiologicResults struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // VisitedPlaces holds the value of the "visitedPlaces" field. VisitedPlaces []string `json:"visitedPlaces,omitempty"` // InfectedFamily holds the value of the "infectedFamily" field. InfectedFamily bool `json:"infectedFamily,omitempty"` // FromInfectedPlace holds the value of the "fromInfectedPlace" field. FromInfectedPlace int `json:"fromInfectedPlace,omitempty"` // ToInfectedPlace holds the value of the "toInfectedPlace" field. ToInfectedPlace int `json:"toInfectedPlace,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the EpidemiologicResultsQuery when eager-loading is set. Edges EpidemiologicResultsEdges `json:"edges"` // contains filtered or unexported fields }
EpidemiologicResults is the model entity for the EpidemiologicResults schema.
func (*EpidemiologicResults) QueryTest ¶
func (er *EpidemiologicResults) QueryTest() *TestQuery
QueryTest queries the test edge of the EpidemiologicResults.
func (*EpidemiologicResults) String ¶
func (er *EpidemiologicResults) String() string
String implements the fmt.Stringer.
func (*EpidemiologicResults) Unwrap ¶
func (er *EpidemiologicResults) Unwrap() *EpidemiologicResults
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*EpidemiologicResults) Update ¶
func (er *EpidemiologicResults) Update() *EpidemiologicResultsUpdateOne
Update returns a builder for updating this EpidemiologicResults. Note that, you need to call EpidemiologicResults.Unwrap() before calling this method, if this EpidemiologicResults was returned from a transaction, and the transaction was committed or rolled back.
type EpidemiologicResultsClient ¶
type EpidemiologicResultsClient struct {
// contains filtered or unexported fields
}
EpidemiologicResultsClient is a client for the EpidemiologicResults schema.
func NewEpidemiologicResultsClient ¶
func NewEpidemiologicResultsClient(c config) *EpidemiologicResultsClient
NewEpidemiologicResultsClient returns a client for the EpidemiologicResults from the given config.
func (*EpidemiologicResultsClient) Create ¶
func (c *EpidemiologicResultsClient) Create() *EpidemiologicResultsCreate
Create returns a create builder for EpidemiologicResults.
func (*EpidemiologicResultsClient) Delete ¶
func (c *EpidemiologicResultsClient) Delete() *EpidemiologicResultsDelete
Delete returns a delete builder for EpidemiologicResults.
func (*EpidemiologicResultsClient) DeleteOne ¶
func (c *EpidemiologicResultsClient) DeleteOne(er *EpidemiologicResults) *EpidemiologicResultsDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*EpidemiologicResultsClient) DeleteOneID ¶
func (c *EpidemiologicResultsClient) DeleteOneID(id uuid.UUID) *EpidemiologicResultsDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*EpidemiologicResultsClient) Get ¶
func (c *EpidemiologicResultsClient) Get(ctx context.Context, id uuid.UUID) (*EpidemiologicResults, error)
Get returns a EpidemiologicResults entity by its id.
func (*EpidemiologicResultsClient) GetX ¶
func (c *EpidemiologicResultsClient) GetX(ctx context.Context, id uuid.UUID) *EpidemiologicResults
GetX is like Get, but panics if an error occurs.
func (*EpidemiologicResultsClient) Query ¶
func (c *EpidemiologicResultsClient) Query() *EpidemiologicResultsQuery
Create returns a query builder for EpidemiologicResults.
func (*EpidemiologicResultsClient) QueryTest ¶
func (c *EpidemiologicResultsClient) QueryTest(er *EpidemiologicResults) *TestQuery
QueryTest queries the test edge of a EpidemiologicResults.
func (*EpidemiologicResultsClient) Update ¶
func (c *EpidemiologicResultsClient) Update() *EpidemiologicResultsUpdate
Update returns an update builder for EpidemiologicResults.
func (*EpidemiologicResultsClient) UpdateOne ¶
func (c *EpidemiologicResultsClient) UpdateOne(er *EpidemiologicResults) *EpidemiologicResultsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*EpidemiologicResultsClient) UpdateOneID ¶
func (c *EpidemiologicResultsClient) UpdateOneID(id uuid.UUID) *EpidemiologicResultsUpdateOne
UpdateOneID returns an update builder for the given id.
type EpidemiologicResultsCreate ¶
type EpidemiologicResultsCreate struct {
// contains filtered or unexported fields
}
EpidemiologicResultsCreate is the builder for creating a EpidemiologicResults entity.
func (*EpidemiologicResultsCreate) Save ¶
func (erc *EpidemiologicResultsCreate) Save(ctx context.Context) (*EpidemiologicResults, error)
Save creates the EpidemiologicResults in the database.
func (*EpidemiologicResultsCreate) SaveX ¶
func (erc *EpidemiologicResultsCreate) SaveX(ctx context.Context) *EpidemiologicResults
SaveX calls Save and panics if Save returns an error.
func (*EpidemiologicResultsCreate) SetFromInfectedPlace ¶
func (erc *EpidemiologicResultsCreate) SetFromInfectedPlace(i int) *EpidemiologicResultsCreate
SetFromInfectedPlace sets the fromInfectedPlace field.
func (*EpidemiologicResultsCreate) SetID ¶
func (erc *EpidemiologicResultsCreate) SetID(u uuid.UUID) *EpidemiologicResultsCreate
SetID sets the id field.
func (*EpidemiologicResultsCreate) SetInfectedFamily ¶
func (erc *EpidemiologicResultsCreate) SetInfectedFamily(b bool) *EpidemiologicResultsCreate
SetInfectedFamily sets the infectedFamily field.
func (*EpidemiologicResultsCreate) SetNillableFromInfectedPlace ¶
func (erc *EpidemiologicResultsCreate) SetNillableFromInfectedPlace(i *int) *EpidemiologicResultsCreate
SetNillableFromInfectedPlace sets the fromInfectedPlace field if the given value is not nil.
func (*EpidemiologicResultsCreate) SetNillableInfectedFamily ¶
func (erc *EpidemiologicResultsCreate) SetNillableInfectedFamily(b *bool) *EpidemiologicResultsCreate
SetNillableInfectedFamily sets the infectedFamily field if the given value is not nil.
func (*EpidemiologicResultsCreate) SetNillableTestID ¶
func (erc *EpidemiologicResultsCreate) SetNillableTestID(id *uuid.UUID) *EpidemiologicResultsCreate
SetNillableTestID sets the test edge to Test by id if the given value is not nil.
func (*EpidemiologicResultsCreate) SetNillableToInfectedPlace ¶
func (erc *EpidemiologicResultsCreate) SetNillableToInfectedPlace(i *int) *EpidemiologicResultsCreate
SetNillableToInfectedPlace sets the toInfectedPlace field if the given value is not nil.
func (*EpidemiologicResultsCreate) SetTest ¶
func (erc *EpidemiologicResultsCreate) SetTest(t *Test) *EpidemiologicResultsCreate
SetTest sets the test edge to Test.
func (*EpidemiologicResultsCreate) SetTestID ¶
func (erc *EpidemiologicResultsCreate) SetTestID(id uuid.UUID) *EpidemiologicResultsCreate
SetTestID sets the test edge to Test by id.
func (*EpidemiologicResultsCreate) SetToInfectedPlace ¶
func (erc *EpidemiologicResultsCreate) SetToInfectedPlace(i int) *EpidemiologicResultsCreate
SetToInfectedPlace sets the toInfectedPlace field.
func (*EpidemiologicResultsCreate) SetVisitedPlaces ¶
func (erc *EpidemiologicResultsCreate) SetVisitedPlaces(s []string) *EpidemiologicResultsCreate
SetVisitedPlaces sets the visitedPlaces field.
type EpidemiologicResultsDelete ¶
type EpidemiologicResultsDelete struct {
// contains filtered or unexported fields
}
EpidemiologicResultsDelete is the builder for deleting a EpidemiologicResults entity.
func (*EpidemiologicResultsDelete) Exec ¶
func (erd *EpidemiologicResultsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*EpidemiologicResultsDelete) ExecX ¶
func (erd *EpidemiologicResultsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*EpidemiologicResultsDelete) Where ¶
func (erd *EpidemiologicResultsDelete) Where(ps ...predicate.EpidemiologicResults) *EpidemiologicResultsDelete
Where adds a new predicate to the delete builder.
type EpidemiologicResultsDeleteOne ¶
type EpidemiologicResultsDeleteOne struct {
// contains filtered or unexported fields
}
EpidemiologicResultsDeleteOne is the builder for deleting a single EpidemiologicResults entity.
func (*EpidemiologicResultsDeleteOne) Exec ¶
func (erdo *EpidemiologicResultsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*EpidemiologicResultsDeleteOne) ExecX ¶
func (erdo *EpidemiologicResultsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type EpidemiologicResultsEdges ¶
type EpidemiologicResultsEdges struct { // Test holds the value of the test edge. Test *Test // contains filtered or unexported fields }
EpidemiologicResultsEdges holds the relations/edges for other nodes in the graph.
func (EpidemiologicResultsEdges) TestOrErr ¶
func (e EpidemiologicResultsEdges) TestOrErr() (*Test, error)
TestOrErr returns the Test value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type EpidemiologicResultsGroupBy ¶
type EpidemiologicResultsGroupBy struct {
// contains filtered or unexported fields
}
EpidemiologicResultsGroupBy is the builder for group-by EpidemiologicResults entities.
func (*EpidemiologicResultsGroupBy) Aggregate ¶
func (ergb *EpidemiologicResultsGroupBy) Aggregate(fns ...Aggregate) *EpidemiologicResultsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*EpidemiologicResultsGroupBy) Bools ¶
func (ergb *EpidemiologicResultsGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*EpidemiologicResultsGroupBy) BoolsX ¶
func (ergb *EpidemiologicResultsGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*EpidemiologicResultsGroupBy) Float64s ¶
func (ergb *EpidemiologicResultsGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*EpidemiologicResultsGroupBy) Float64sX ¶
func (ergb *EpidemiologicResultsGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*EpidemiologicResultsGroupBy) Ints ¶
func (ergb *EpidemiologicResultsGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*EpidemiologicResultsGroupBy) IntsX ¶
func (ergb *EpidemiologicResultsGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*EpidemiologicResultsGroupBy) Scan ¶
func (ergb *EpidemiologicResultsGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*EpidemiologicResultsGroupBy) ScanX ¶
func (ergb *EpidemiologicResultsGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type EpidemiologicResultsQuery ¶
type EpidemiologicResultsQuery struct {
// contains filtered or unexported fields
}
EpidemiologicResultsQuery is the builder for querying EpidemiologicResults entities.
func (*EpidemiologicResultsQuery) All ¶
func (erq *EpidemiologicResultsQuery) All(ctx context.Context) ([]*EpidemiologicResults, error)
All executes the query and returns a list of EpidemiologicResultsSlice.
func (*EpidemiologicResultsQuery) AllX ¶
func (erq *EpidemiologicResultsQuery) AllX(ctx context.Context) []*EpidemiologicResults
AllX is like All, but panics if an error occurs.
func (*EpidemiologicResultsQuery) Clone ¶
func (erq *EpidemiologicResultsQuery) Clone() *EpidemiologicResultsQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*EpidemiologicResultsQuery) Count ¶
func (erq *EpidemiologicResultsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*EpidemiologicResultsQuery) CountX ¶
func (erq *EpidemiologicResultsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*EpidemiologicResultsQuery) Exist ¶
func (erq *EpidemiologicResultsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*EpidemiologicResultsQuery) ExistX ¶
func (erq *EpidemiologicResultsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*EpidemiologicResultsQuery) First ¶
func (erq *EpidemiologicResultsQuery) First(ctx context.Context) (*EpidemiologicResults, error)
First returns the first EpidemiologicResults entity in the query. Returns *NotFoundError when no epidemiologicresults was found.
func (*EpidemiologicResultsQuery) FirstID ¶
FirstID returns the first EpidemiologicResults id in the query. Returns *NotFoundError when no id was found.
func (*EpidemiologicResultsQuery) FirstX ¶
func (erq *EpidemiologicResultsQuery) FirstX(ctx context.Context) *EpidemiologicResults
FirstX is like First, but panics if an error occurs.
func (*EpidemiologicResultsQuery) FirstXID ¶
func (erq *EpidemiologicResultsQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*EpidemiologicResultsQuery) GroupBy ¶
func (erq *EpidemiologicResultsQuery) GroupBy(field string, fields ...string) *EpidemiologicResultsGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { VisitedPlaces []string `json:"visitedPlaces,omitempty"` Count int `json:"count,omitempty"` } client.EpidemiologicResults.Query(). GroupBy(epidemiologicresults.FieldVisitedPlaces). Aggregate(ent.Count()). Scan(ctx, &v)
func (*EpidemiologicResultsQuery) IDs ¶
IDs executes the query and returns a list of EpidemiologicResults ids.
func (*EpidemiologicResultsQuery) IDsX ¶
func (erq *EpidemiologicResultsQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*EpidemiologicResultsQuery) Limit ¶
func (erq *EpidemiologicResultsQuery) Limit(limit int) *EpidemiologicResultsQuery
Limit adds a limit step to the query.
func (*EpidemiologicResultsQuery) Offset ¶
func (erq *EpidemiologicResultsQuery) Offset(offset int) *EpidemiologicResultsQuery
Offset adds an offset step to the query.
func (*EpidemiologicResultsQuery) Only ¶
func (erq *EpidemiologicResultsQuery) Only(ctx context.Context) (*EpidemiologicResults, error)
Only returns the only EpidemiologicResults entity in the query, returns an error if not exactly one entity was returned.
func (*EpidemiologicResultsQuery) OnlyID ¶
OnlyID returns the only EpidemiologicResults id in the query, returns an error if not exactly one id was returned.
func (*EpidemiologicResultsQuery) OnlyX ¶
func (erq *EpidemiologicResultsQuery) OnlyX(ctx context.Context) *EpidemiologicResults
OnlyX is like Only, but panics if an error occurs.
func (*EpidemiologicResultsQuery) OnlyXID ¶
func (erq *EpidemiologicResultsQuery) OnlyXID(ctx context.Context) uuid.UUID
OnlyXID is like OnlyID, but panics if an error occurs.
func (*EpidemiologicResultsQuery) Order ¶
func (erq *EpidemiologicResultsQuery) Order(o ...Order) *EpidemiologicResultsQuery
Order adds an order step to the query.
func (*EpidemiologicResultsQuery) QueryTest ¶
func (erq *EpidemiologicResultsQuery) QueryTest() *TestQuery
QueryTest chains the current query on the test edge.
func (*EpidemiologicResultsQuery) Select ¶
func (erq *EpidemiologicResultsQuery) Select(field string, fields ...string) *EpidemiologicResultsSelect
Select one or more fields from the given query.
Example:
var v []struct { VisitedPlaces []string `json:"visitedPlaces,omitempty"` } client.EpidemiologicResults.Query(). Select(epidemiologicresults.FieldVisitedPlaces). Scan(ctx, &v)
func (*EpidemiologicResultsQuery) Where ¶
func (erq *EpidemiologicResultsQuery) Where(ps ...predicate.EpidemiologicResults) *EpidemiologicResultsQuery
Where adds a new predicate for the builder.
func (*EpidemiologicResultsQuery) WithTest ¶
func (erq *EpidemiologicResultsQuery) WithTest(opts ...func(*TestQuery)) *EpidemiologicResultsQuery
WithTest tells the query-builder to eager-loads the nodes that are connected to
the "test" edge. The optional arguments used to configure the query builder of the edge.
type EpidemiologicResultsSelect ¶
type EpidemiologicResultsSelect struct {
// contains filtered or unexported fields
}
EpidemiologicResultsSelect is the builder for select fields of EpidemiologicResults entities.
func (*EpidemiologicResultsSelect) Bools ¶
func (ers *EpidemiologicResultsSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*EpidemiologicResultsSelect) BoolsX ¶
func (ers *EpidemiologicResultsSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*EpidemiologicResultsSelect) Float64s ¶
func (ers *EpidemiologicResultsSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*EpidemiologicResultsSelect) Float64sX ¶
func (ers *EpidemiologicResultsSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*EpidemiologicResultsSelect) Ints ¶
func (ers *EpidemiologicResultsSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*EpidemiologicResultsSelect) IntsX ¶
func (ers *EpidemiologicResultsSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*EpidemiologicResultsSelect) Scan ¶
func (ers *EpidemiologicResultsSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*EpidemiologicResultsSelect) ScanX ¶
func (ers *EpidemiologicResultsSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type EpidemiologicResultsSlice ¶
type EpidemiologicResultsSlice []*EpidemiologicResults
EpidemiologicResultsSlice is a parsable slice of EpidemiologicResults.
type EpidemiologicResultsUpdate ¶
type EpidemiologicResultsUpdate struct {
// contains filtered or unexported fields
}
EpidemiologicResultsUpdate is the builder for updating EpidemiologicResults entities.
func (*EpidemiologicResultsUpdate) AddFromInfectedPlace ¶
func (eru *EpidemiologicResultsUpdate) AddFromInfectedPlace(i int) *EpidemiologicResultsUpdate
AddFromInfectedPlace adds i to fromInfectedPlace.
func (*EpidemiologicResultsUpdate) AddToInfectedPlace ¶
func (eru *EpidemiologicResultsUpdate) AddToInfectedPlace(i int) *EpidemiologicResultsUpdate
AddToInfectedPlace adds i to toInfectedPlace.
func (*EpidemiologicResultsUpdate) ClearFromInfectedPlace ¶
func (eru *EpidemiologicResultsUpdate) ClearFromInfectedPlace() *EpidemiologicResultsUpdate
ClearFromInfectedPlace clears the value of fromInfectedPlace.
func (*EpidemiologicResultsUpdate) ClearInfectedFamily ¶
func (eru *EpidemiologicResultsUpdate) ClearInfectedFamily() *EpidemiologicResultsUpdate
ClearInfectedFamily clears the value of infectedFamily.
func (*EpidemiologicResultsUpdate) ClearTest ¶
func (eru *EpidemiologicResultsUpdate) ClearTest() *EpidemiologicResultsUpdate
ClearTest clears the test edge to Test.
func (*EpidemiologicResultsUpdate) ClearToInfectedPlace ¶
func (eru *EpidemiologicResultsUpdate) ClearToInfectedPlace() *EpidemiologicResultsUpdate
ClearToInfectedPlace clears the value of toInfectedPlace.
func (*EpidemiologicResultsUpdate) ClearVisitedPlaces ¶
func (eru *EpidemiologicResultsUpdate) ClearVisitedPlaces() *EpidemiologicResultsUpdate
ClearVisitedPlaces clears the value of visitedPlaces.
func (*EpidemiologicResultsUpdate) Exec ¶
func (eru *EpidemiologicResultsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*EpidemiologicResultsUpdate) ExecX ¶
func (eru *EpidemiologicResultsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EpidemiologicResultsUpdate) Save ¶
func (eru *EpidemiologicResultsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*EpidemiologicResultsUpdate) SaveX ¶
func (eru *EpidemiologicResultsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*EpidemiologicResultsUpdate) SetFromInfectedPlace ¶
func (eru *EpidemiologicResultsUpdate) SetFromInfectedPlace(i int) *EpidemiologicResultsUpdate
SetFromInfectedPlace sets the fromInfectedPlace field.
func (*EpidemiologicResultsUpdate) SetInfectedFamily ¶
func (eru *EpidemiologicResultsUpdate) SetInfectedFamily(b bool) *EpidemiologicResultsUpdate
SetInfectedFamily sets the infectedFamily field.
func (*EpidemiologicResultsUpdate) SetNillableFromInfectedPlace ¶
func (eru *EpidemiologicResultsUpdate) SetNillableFromInfectedPlace(i *int) *EpidemiologicResultsUpdate
SetNillableFromInfectedPlace sets the fromInfectedPlace field if the given value is not nil.
func (*EpidemiologicResultsUpdate) SetNillableInfectedFamily ¶
func (eru *EpidemiologicResultsUpdate) SetNillableInfectedFamily(b *bool) *EpidemiologicResultsUpdate
SetNillableInfectedFamily sets the infectedFamily field if the given value is not nil.
func (*EpidemiologicResultsUpdate) SetNillableTestID ¶
func (eru *EpidemiologicResultsUpdate) SetNillableTestID(id *uuid.UUID) *EpidemiologicResultsUpdate
SetNillableTestID sets the test edge to Test by id if the given value is not nil.
func (*EpidemiologicResultsUpdate) SetNillableToInfectedPlace ¶
func (eru *EpidemiologicResultsUpdate) SetNillableToInfectedPlace(i *int) *EpidemiologicResultsUpdate
SetNillableToInfectedPlace sets the toInfectedPlace field if the given value is not nil.
func (*EpidemiologicResultsUpdate) SetTest ¶
func (eru *EpidemiologicResultsUpdate) SetTest(t *Test) *EpidemiologicResultsUpdate
SetTest sets the test edge to Test.
func (*EpidemiologicResultsUpdate) SetTestID ¶
func (eru *EpidemiologicResultsUpdate) SetTestID(id uuid.UUID) *EpidemiologicResultsUpdate
SetTestID sets the test edge to Test by id.
func (*EpidemiologicResultsUpdate) SetToInfectedPlace ¶
func (eru *EpidemiologicResultsUpdate) SetToInfectedPlace(i int) *EpidemiologicResultsUpdate
SetToInfectedPlace sets the toInfectedPlace field.
func (*EpidemiologicResultsUpdate) SetVisitedPlaces ¶
func (eru *EpidemiologicResultsUpdate) SetVisitedPlaces(s []string) *EpidemiologicResultsUpdate
SetVisitedPlaces sets the visitedPlaces field.
func (*EpidemiologicResultsUpdate) Where ¶
func (eru *EpidemiologicResultsUpdate) Where(ps ...predicate.EpidemiologicResults) *EpidemiologicResultsUpdate
Where adds a new predicate for the builder.
type EpidemiologicResultsUpdateOne ¶
type EpidemiologicResultsUpdateOne struct {
// contains filtered or unexported fields
}
EpidemiologicResultsUpdateOne is the builder for updating a single EpidemiologicResults entity.
func (*EpidemiologicResultsUpdateOne) AddFromInfectedPlace ¶
func (eruo *EpidemiologicResultsUpdateOne) AddFromInfectedPlace(i int) *EpidemiologicResultsUpdateOne
AddFromInfectedPlace adds i to fromInfectedPlace.
func (*EpidemiologicResultsUpdateOne) AddToInfectedPlace ¶
func (eruo *EpidemiologicResultsUpdateOne) AddToInfectedPlace(i int) *EpidemiologicResultsUpdateOne
AddToInfectedPlace adds i to toInfectedPlace.
func (*EpidemiologicResultsUpdateOne) ClearFromInfectedPlace ¶
func (eruo *EpidemiologicResultsUpdateOne) ClearFromInfectedPlace() *EpidemiologicResultsUpdateOne
ClearFromInfectedPlace clears the value of fromInfectedPlace.
func (*EpidemiologicResultsUpdateOne) ClearInfectedFamily ¶
func (eruo *EpidemiologicResultsUpdateOne) ClearInfectedFamily() *EpidemiologicResultsUpdateOne
ClearInfectedFamily clears the value of infectedFamily.
func (*EpidemiologicResultsUpdateOne) ClearTest ¶
func (eruo *EpidemiologicResultsUpdateOne) ClearTest() *EpidemiologicResultsUpdateOne
ClearTest clears the test edge to Test.
func (*EpidemiologicResultsUpdateOne) ClearToInfectedPlace ¶
func (eruo *EpidemiologicResultsUpdateOne) ClearToInfectedPlace() *EpidemiologicResultsUpdateOne
ClearToInfectedPlace clears the value of toInfectedPlace.
func (*EpidemiologicResultsUpdateOne) ClearVisitedPlaces ¶
func (eruo *EpidemiologicResultsUpdateOne) ClearVisitedPlaces() *EpidemiologicResultsUpdateOne
ClearVisitedPlaces clears the value of visitedPlaces.
func (*EpidemiologicResultsUpdateOne) Exec ¶
func (eruo *EpidemiologicResultsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*EpidemiologicResultsUpdateOne) ExecX ¶
func (eruo *EpidemiologicResultsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EpidemiologicResultsUpdateOne) Save ¶
func (eruo *EpidemiologicResultsUpdateOne) Save(ctx context.Context) (*EpidemiologicResults, error)
Save executes the query and returns the updated entity.
func (*EpidemiologicResultsUpdateOne) SaveX ¶
func (eruo *EpidemiologicResultsUpdateOne) SaveX(ctx context.Context) *EpidemiologicResults
SaveX is like Save, but panics if an error occurs.
func (*EpidemiologicResultsUpdateOne) SetFromInfectedPlace ¶
func (eruo *EpidemiologicResultsUpdateOne) SetFromInfectedPlace(i int) *EpidemiologicResultsUpdateOne
SetFromInfectedPlace sets the fromInfectedPlace field.
func (*EpidemiologicResultsUpdateOne) SetInfectedFamily ¶
func (eruo *EpidemiologicResultsUpdateOne) SetInfectedFamily(b bool) *EpidemiologicResultsUpdateOne
SetInfectedFamily sets the infectedFamily field.
func (*EpidemiologicResultsUpdateOne) SetNillableFromInfectedPlace ¶
func (eruo *EpidemiologicResultsUpdateOne) SetNillableFromInfectedPlace(i *int) *EpidemiologicResultsUpdateOne
SetNillableFromInfectedPlace sets the fromInfectedPlace field if the given value is not nil.
func (*EpidemiologicResultsUpdateOne) SetNillableInfectedFamily ¶
func (eruo *EpidemiologicResultsUpdateOne) SetNillableInfectedFamily(b *bool) *EpidemiologicResultsUpdateOne
SetNillableInfectedFamily sets the infectedFamily field if the given value is not nil.
func (*EpidemiologicResultsUpdateOne) SetNillableTestID ¶
func (eruo *EpidemiologicResultsUpdateOne) SetNillableTestID(id *uuid.UUID) *EpidemiologicResultsUpdateOne
SetNillableTestID sets the test edge to Test by id if the given value is not nil.
func (*EpidemiologicResultsUpdateOne) SetNillableToInfectedPlace ¶
func (eruo *EpidemiologicResultsUpdateOne) SetNillableToInfectedPlace(i *int) *EpidemiologicResultsUpdateOne
SetNillableToInfectedPlace sets the toInfectedPlace field if the given value is not nil.
func (*EpidemiologicResultsUpdateOne) SetTest ¶
func (eruo *EpidemiologicResultsUpdateOne) SetTest(t *Test) *EpidemiologicResultsUpdateOne
SetTest sets the test edge to Test.
func (*EpidemiologicResultsUpdateOne) SetTestID ¶
func (eruo *EpidemiologicResultsUpdateOne) SetTestID(id uuid.UUID) *EpidemiologicResultsUpdateOne
SetTestID sets the test edge to Test by id.
func (*EpidemiologicResultsUpdateOne) SetToInfectedPlace ¶
func (eruo *EpidemiologicResultsUpdateOne) SetToInfectedPlace(i int) *EpidemiologicResultsUpdateOne
SetToInfectedPlace sets the toInfectedPlace field.
func (*EpidemiologicResultsUpdateOne) SetVisitedPlaces ¶
func (eruo *EpidemiologicResultsUpdateOne) SetVisitedPlaces(s []string) *EpidemiologicResultsUpdateOne
SetVisitedPlaces sets the visitedPlaces field.
type History ¶
type History struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the HistoryQuery when eager-loading is set. Edges HistoryEdges `json:"edges"` // contains filtered or unexported fields }
History is the model entity for the History schema.
func (*History) QueryNotes ¶
func (h *History) QueryNotes() *MedicalNoteQuery
QueryNotes queries the notes edge of the History.
func (*History) QueryPatient ¶
func (h *History) QueryPatient() *PatientQuery
QueryPatient queries the patient edge of the History.
func (*History) QueryTests ¶
QueryTests queries the tests edge of the History.
func (*History) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*History) Update ¶
func (h *History) Update() *HistoryUpdateOne
Update returns a builder for updating this History. Note that, you need to call History.Unwrap() before calling this method, if this History was returned from a transaction, and the transaction was committed or rolled back.
type HistoryClient ¶
type HistoryClient struct {
// contains filtered or unexported fields
}
HistoryClient is a client for the History schema.
func NewHistoryClient ¶
func NewHistoryClient(c config) *HistoryClient
NewHistoryClient returns a client for the History from the given config.
func (*HistoryClient) Create ¶
func (c *HistoryClient) Create() *HistoryCreate
Create returns a create builder for History.
func (*HistoryClient) Delete ¶
func (c *HistoryClient) Delete() *HistoryDelete
Delete returns a delete builder for History.
func (*HistoryClient) DeleteOne ¶
func (c *HistoryClient) DeleteOne(h *History) *HistoryDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*HistoryClient) DeleteOneID ¶
func (c *HistoryClient) DeleteOneID(id uuid.UUID) *HistoryDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*HistoryClient) Query ¶
func (c *HistoryClient) Query() *HistoryQuery
Create returns a query builder for History.
func (*HistoryClient) QueryNotes ¶
func (c *HistoryClient) QueryNotes(h *History) *MedicalNoteQuery
QueryNotes queries the notes edge of a History.
func (*HistoryClient) QueryPatient ¶
func (c *HistoryClient) QueryPatient(h *History) *PatientQuery
QueryPatient queries the patient edge of a History.
func (*HistoryClient) QueryTests ¶
func (c *HistoryClient) QueryTests(h *History) *TestQuery
QueryTests queries the tests edge of a History.
func (*HistoryClient) Update ¶
func (c *HistoryClient) Update() *HistoryUpdate
Update returns an update builder for History.
func (*HistoryClient) UpdateOne ¶
func (c *HistoryClient) UpdateOne(h *History) *HistoryUpdateOne
UpdateOne returns an update builder for the given entity.
func (*HistoryClient) UpdateOneID ¶
func (c *HistoryClient) UpdateOneID(id uuid.UUID) *HistoryUpdateOne
UpdateOneID returns an update builder for the given id.
type HistoryCreate ¶
type HistoryCreate struct {
// contains filtered or unexported fields
}
HistoryCreate is the builder for creating a History entity.
func (*HistoryCreate) AddNoteIDs ¶
func (hc *HistoryCreate) AddNoteIDs(ids ...uuid.UUID) *HistoryCreate
AddNoteIDs adds the notes edge to MedicalNote by ids.
func (*HistoryCreate) AddNotes ¶
func (hc *HistoryCreate) AddNotes(m ...*MedicalNote) *HistoryCreate
AddNotes adds the notes edges to MedicalNote.
func (*HistoryCreate) AddTestIDs ¶
func (hc *HistoryCreate) AddTestIDs(ids ...uuid.UUID) *HistoryCreate
AddTestIDs adds the tests edge to Test by ids.
func (*HistoryCreate) AddTests ¶
func (hc *HistoryCreate) AddTests(t ...*Test) *HistoryCreate
AddTests adds the tests edges to Test.
func (*HistoryCreate) Save ¶
func (hc *HistoryCreate) Save(ctx context.Context) (*History, error)
Save creates the History in the database.
func (*HistoryCreate) SaveX ¶
func (hc *HistoryCreate) SaveX(ctx context.Context) *History
SaveX calls Save and panics if Save returns an error.
func (*HistoryCreate) SetID ¶
func (hc *HistoryCreate) SetID(u uuid.UUID) *HistoryCreate
SetID sets the id field.
func (*HistoryCreate) SetNillablePatientID ¶
func (hc *HistoryCreate) SetNillablePatientID(id *uuid.UUID) *HistoryCreate
SetNillablePatientID sets the patient edge to Patient by id if the given value is not nil.
func (*HistoryCreate) SetPatient ¶
func (hc *HistoryCreate) SetPatient(p *Patient) *HistoryCreate
SetPatient sets the patient edge to Patient.
func (*HistoryCreate) SetPatientID ¶
func (hc *HistoryCreate) SetPatientID(id uuid.UUID) *HistoryCreate
SetPatientID sets the patient edge to Patient by id.
type HistoryDelete ¶
type HistoryDelete struct {
// contains filtered or unexported fields
}
HistoryDelete is the builder for deleting a History entity.
func (*HistoryDelete) Exec ¶
func (hd *HistoryDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*HistoryDelete) ExecX ¶
func (hd *HistoryDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*HistoryDelete) Where ¶
func (hd *HistoryDelete) Where(ps ...predicate.History) *HistoryDelete
Where adds a new predicate to the delete builder.
type HistoryDeleteOne ¶
type HistoryDeleteOne struct {
// contains filtered or unexported fields
}
HistoryDeleteOne is the builder for deleting a single History entity.
func (*HistoryDeleteOne) Exec ¶
func (hdo *HistoryDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*HistoryDeleteOne) ExecX ¶
func (hdo *HistoryDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type HistoryEdges ¶
type HistoryEdges struct { // Patient holds the value of the patient edge. Patient *Patient // Tests holds the value of the tests edge. Tests []*Test // Notes holds the value of the notes edge. Notes []*MedicalNote // contains filtered or unexported fields }
HistoryEdges holds the relations/edges for other nodes in the graph.
func (HistoryEdges) NotesOrErr ¶
func (e HistoryEdges) NotesOrErr() ([]*MedicalNote, error)
NotesOrErr returns the Notes value or an error if the edge was not loaded in eager-loading.
func (HistoryEdges) PatientOrErr ¶
func (e HistoryEdges) PatientOrErr() (*Patient, error)
PatientOrErr returns the Patient value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (HistoryEdges) TestsOrErr ¶
func (e HistoryEdges) TestsOrErr() ([]*Test, error)
TestsOrErr returns the Tests value or an error if the edge was not loaded in eager-loading.
type HistoryGroupBy ¶
type HistoryGroupBy struct {
// contains filtered or unexported fields
}
HistoryGroupBy is the builder for group-by History entities.
func (*HistoryGroupBy) Aggregate ¶
func (hgb *HistoryGroupBy) Aggregate(fns ...Aggregate) *HistoryGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*HistoryGroupBy) Bools ¶
func (hgb *HistoryGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*HistoryGroupBy) BoolsX ¶
func (hgb *HistoryGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*HistoryGroupBy) Float64s ¶
func (hgb *HistoryGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*HistoryGroupBy) Float64sX ¶
func (hgb *HistoryGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*HistoryGroupBy) Ints ¶
func (hgb *HistoryGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*HistoryGroupBy) IntsX ¶
func (hgb *HistoryGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*HistoryGroupBy) Scan ¶
func (hgb *HistoryGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*HistoryGroupBy) ScanX ¶
func (hgb *HistoryGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type HistoryQuery ¶
type HistoryQuery struct {
// contains filtered or unexported fields
}
HistoryQuery is the builder for querying History entities.
func (*HistoryQuery) All ¶
func (hq *HistoryQuery) All(ctx context.Context) ([]*History, error)
All executes the query and returns a list of Histories.
func (*HistoryQuery) AllX ¶
func (hq *HistoryQuery) AllX(ctx context.Context) []*History
AllX is like All, but panics if an error occurs.
func (*HistoryQuery) Clone ¶
func (hq *HistoryQuery) Clone() *HistoryQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*HistoryQuery) Count ¶
func (hq *HistoryQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*HistoryQuery) CountX ¶
func (hq *HistoryQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*HistoryQuery) Exist ¶
func (hq *HistoryQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*HistoryQuery) ExistX ¶
func (hq *HistoryQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*HistoryQuery) First ¶
func (hq *HistoryQuery) First(ctx context.Context) (*History, error)
First returns the first History entity in the query. Returns *NotFoundError when no history was found.
func (*HistoryQuery) FirstID ¶
FirstID returns the first History id in the query. Returns *NotFoundError when no id was found.
func (*HistoryQuery) FirstX ¶
func (hq *HistoryQuery) FirstX(ctx context.Context) *History
FirstX is like First, but panics if an error occurs.
func (*HistoryQuery) FirstXID ¶
func (hq *HistoryQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*HistoryQuery) GroupBy ¶
func (hq *HistoryQuery) GroupBy(field string, fields ...string) *HistoryGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
func (*HistoryQuery) IDsX ¶
func (hq *HistoryQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*HistoryQuery) Limit ¶
func (hq *HistoryQuery) Limit(limit int) *HistoryQuery
Limit adds a limit step to the query.
func (*HistoryQuery) Offset ¶
func (hq *HistoryQuery) Offset(offset int) *HistoryQuery
Offset adds an offset step to the query.
func (*HistoryQuery) Only ¶
func (hq *HistoryQuery) Only(ctx context.Context) (*History, error)
Only returns the only History entity in the query, returns an error if not exactly one entity was returned.
func (*HistoryQuery) OnlyID ¶
OnlyID returns the only History id in the query, returns an error if not exactly one id was returned.
func (*HistoryQuery) OnlyX ¶
func (hq *HistoryQuery) OnlyX(ctx context.Context) *History
OnlyX is like Only, but panics if an error occurs.
func (*HistoryQuery) OnlyXID ¶
func (hq *HistoryQuery) OnlyXID(ctx context.Context) uuid.UUID
OnlyXID is like OnlyID, but panics if an error occurs.
func (*HistoryQuery) Order ¶
func (hq *HistoryQuery) Order(o ...Order) *HistoryQuery
Order adds an order step to the query.
func (*HistoryQuery) QueryNotes ¶
func (hq *HistoryQuery) QueryNotes() *MedicalNoteQuery
QueryNotes chains the current query on the notes edge.
func (*HistoryQuery) QueryPatient ¶
func (hq *HistoryQuery) QueryPatient() *PatientQuery
QueryPatient chains the current query on the patient edge.
func (*HistoryQuery) QueryTests ¶
func (hq *HistoryQuery) QueryTests() *TestQuery
QueryTests chains the current query on the tests edge.
func (*HistoryQuery) Select ¶
func (hq *HistoryQuery) Select(field string, fields ...string) *HistorySelect
Select one or more fields from the given query.
func (*HistoryQuery) Where ¶
func (hq *HistoryQuery) Where(ps ...predicate.History) *HistoryQuery
Where adds a new predicate for the builder.
func (*HistoryQuery) WithNotes ¶
func (hq *HistoryQuery) WithNotes(opts ...func(*MedicalNoteQuery)) *HistoryQuery
WithNotes tells the query-builder to eager-loads the nodes that are connected to
the "notes" edge. The optional arguments used to configure the query builder of the edge.
func (*HistoryQuery) WithPatient ¶
func (hq *HistoryQuery) WithPatient(opts ...func(*PatientQuery)) *HistoryQuery
WithPatient tells the query-builder to eager-loads the nodes that are connected to
the "patient" edge. The optional arguments used to configure the query builder of the edge.
func (*HistoryQuery) WithTests ¶
func (hq *HistoryQuery) WithTests(opts ...func(*TestQuery)) *HistoryQuery
WithTests tells the query-builder to eager-loads the nodes that are connected to
the "tests" edge. The optional arguments used to configure the query builder of the edge.
type HistorySelect ¶
type HistorySelect struct {
// contains filtered or unexported fields
}
HistorySelect is the builder for select fields of History entities.
func (*HistorySelect) Bools ¶
func (hs *HistorySelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*HistorySelect) BoolsX ¶
func (hs *HistorySelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*HistorySelect) Float64s ¶
func (hs *HistorySelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*HistorySelect) Float64sX ¶
func (hs *HistorySelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*HistorySelect) Ints ¶
func (hs *HistorySelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*HistorySelect) IntsX ¶
func (hs *HistorySelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*HistorySelect) Scan ¶
func (hs *HistorySelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*HistorySelect) ScanX ¶
func (hs *HistorySelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type HistoryUpdate ¶
type HistoryUpdate struct {
// contains filtered or unexported fields
}
HistoryUpdate is the builder for updating History entities.
func (*HistoryUpdate) AddNoteIDs ¶
func (hu *HistoryUpdate) AddNoteIDs(ids ...uuid.UUID) *HistoryUpdate
AddNoteIDs adds the notes edge to MedicalNote by ids.
func (*HistoryUpdate) AddNotes ¶
func (hu *HistoryUpdate) AddNotes(m ...*MedicalNote) *HistoryUpdate
AddNotes adds the notes edges to MedicalNote.
func (*HistoryUpdate) AddTestIDs ¶
func (hu *HistoryUpdate) AddTestIDs(ids ...uuid.UUID) *HistoryUpdate
AddTestIDs adds the tests edge to Test by ids.
func (*HistoryUpdate) AddTests ¶
func (hu *HistoryUpdate) AddTests(t ...*Test) *HistoryUpdate
AddTests adds the tests edges to Test.
func (*HistoryUpdate) ClearPatient ¶
func (hu *HistoryUpdate) ClearPatient() *HistoryUpdate
ClearPatient clears the patient edge to Patient.
func (*HistoryUpdate) Exec ¶
func (hu *HistoryUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*HistoryUpdate) ExecX ¶
func (hu *HistoryUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*HistoryUpdate) RemoveNoteIDs ¶
func (hu *HistoryUpdate) RemoveNoteIDs(ids ...uuid.UUID) *HistoryUpdate
RemoveNoteIDs removes the notes edge to MedicalNote by ids.
func (*HistoryUpdate) RemoveNotes ¶
func (hu *HistoryUpdate) RemoveNotes(m ...*MedicalNote) *HistoryUpdate
RemoveNotes removes notes edges to MedicalNote.
func (*HistoryUpdate) RemoveTestIDs ¶
func (hu *HistoryUpdate) RemoveTestIDs(ids ...uuid.UUID) *HistoryUpdate
RemoveTestIDs removes the tests edge to Test by ids.
func (*HistoryUpdate) RemoveTests ¶
func (hu *HistoryUpdate) RemoveTests(t ...*Test) *HistoryUpdate
RemoveTests removes tests edges to Test.
func (*HistoryUpdate) Save ¶
func (hu *HistoryUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*HistoryUpdate) SaveX ¶
func (hu *HistoryUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*HistoryUpdate) SetNillablePatientID ¶
func (hu *HistoryUpdate) SetNillablePatientID(id *uuid.UUID) *HistoryUpdate
SetNillablePatientID sets the patient edge to Patient by id if the given value is not nil.
func (*HistoryUpdate) SetPatient ¶
func (hu *HistoryUpdate) SetPatient(p *Patient) *HistoryUpdate
SetPatient sets the patient edge to Patient.
func (*HistoryUpdate) SetPatientID ¶
func (hu *HistoryUpdate) SetPatientID(id uuid.UUID) *HistoryUpdate
SetPatientID sets the patient edge to Patient by id.
func (*HistoryUpdate) Where ¶
func (hu *HistoryUpdate) Where(ps ...predicate.History) *HistoryUpdate
Where adds a new predicate for the builder.
type HistoryUpdateOne ¶
type HistoryUpdateOne struct {
// contains filtered or unexported fields
}
HistoryUpdateOne is the builder for updating a single History entity.
func (*HistoryUpdateOne) AddNoteIDs ¶
func (huo *HistoryUpdateOne) AddNoteIDs(ids ...uuid.UUID) *HistoryUpdateOne
AddNoteIDs adds the notes edge to MedicalNote by ids.
func (*HistoryUpdateOne) AddNotes ¶
func (huo *HistoryUpdateOne) AddNotes(m ...*MedicalNote) *HistoryUpdateOne
AddNotes adds the notes edges to MedicalNote.
func (*HistoryUpdateOne) AddTestIDs ¶
func (huo *HistoryUpdateOne) AddTestIDs(ids ...uuid.UUID) *HistoryUpdateOne
AddTestIDs adds the tests edge to Test by ids.
func (*HistoryUpdateOne) AddTests ¶
func (huo *HistoryUpdateOne) AddTests(t ...*Test) *HistoryUpdateOne
AddTests adds the tests edges to Test.
func (*HistoryUpdateOne) ClearPatient ¶
func (huo *HistoryUpdateOne) ClearPatient() *HistoryUpdateOne
ClearPatient clears the patient edge to Patient.
func (*HistoryUpdateOne) Exec ¶
func (huo *HistoryUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*HistoryUpdateOne) ExecX ¶
func (huo *HistoryUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*HistoryUpdateOne) RemoveNoteIDs ¶
func (huo *HistoryUpdateOne) RemoveNoteIDs(ids ...uuid.UUID) *HistoryUpdateOne
RemoveNoteIDs removes the notes edge to MedicalNote by ids.
func (*HistoryUpdateOne) RemoveNotes ¶
func (huo *HistoryUpdateOne) RemoveNotes(m ...*MedicalNote) *HistoryUpdateOne
RemoveNotes removes notes edges to MedicalNote.
func (*HistoryUpdateOne) RemoveTestIDs ¶
func (huo *HistoryUpdateOne) RemoveTestIDs(ids ...uuid.UUID) *HistoryUpdateOne
RemoveTestIDs removes the tests edge to Test by ids.
func (*HistoryUpdateOne) RemoveTests ¶
func (huo *HistoryUpdateOne) RemoveTests(t ...*Test) *HistoryUpdateOne
RemoveTests removes tests edges to Test.
func (*HistoryUpdateOne) Save ¶
func (huo *HistoryUpdateOne) Save(ctx context.Context) (*History, error)
Save executes the query and returns the updated entity.
func (*HistoryUpdateOne) SaveX ¶
func (huo *HistoryUpdateOne) SaveX(ctx context.Context) *History
SaveX is like Save, but panics if an error occurs.
func (*HistoryUpdateOne) SetNillablePatientID ¶
func (huo *HistoryUpdateOne) SetNillablePatientID(id *uuid.UUID) *HistoryUpdateOne
SetNillablePatientID sets the patient edge to Patient by id if the given value is not nil.
func (*HistoryUpdateOne) SetPatient ¶
func (huo *HistoryUpdateOne) SetPatient(p *Patient) *HistoryUpdateOne
SetPatient sets the patient edge to Patient.
func (*HistoryUpdateOne) SetPatientID ¶
func (huo *HistoryUpdateOne) SetPatientID(id uuid.UUID) *HistoryUpdateOne
SetPatientID sets the patient edge to Patient by id.
type MedicalNote ¶
type MedicalNote struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // At holds the value of the "at" field. At time.Time `json:"at,omitempty"` // LastChange holds the value of the "lastChange" field. LastChange time.Time `json:"lastChange,omitempty"` // Observations holds the value of the "observations" field. Observations []string `json:"observations,omitempty"` // Meta holds the value of the "meta" field. Meta []string `json:"meta,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the MedicalNoteQuery when eager-loading is set. Edges MedicalNoteEdges `json:"edges"` // contains filtered or unexported fields }
MedicalNote is the model entity for the MedicalNote schema.
func (*MedicalNote) QueryHistory ¶
func (mn *MedicalNote) QueryHistory() *HistoryQuery
QueryHistory queries the history edge of the MedicalNote.
func (*MedicalNote) QueryOwner ¶
func (mn *MedicalNote) QueryOwner() *DoctorQuery
QueryOwner queries the owner edge of the MedicalNote.
func (*MedicalNote) String ¶
func (mn *MedicalNote) String() string
String implements the fmt.Stringer.
func (*MedicalNote) Unwrap ¶
func (mn *MedicalNote) Unwrap() *MedicalNote
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*MedicalNote) Update ¶
func (mn *MedicalNote) Update() *MedicalNoteUpdateOne
Update returns a builder for updating this MedicalNote. Note that, you need to call MedicalNote.Unwrap() before calling this method, if this MedicalNote was returned from a transaction, and the transaction was committed or rolled back.
type MedicalNoteClient ¶
type MedicalNoteClient struct {
// contains filtered or unexported fields
}
MedicalNoteClient is a client for the MedicalNote schema.
func NewMedicalNoteClient ¶
func NewMedicalNoteClient(c config) *MedicalNoteClient
NewMedicalNoteClient returns a client for the MedicalNote from the given config.
func (*MedicalNoteClient) Create ¶
func (c *MedicalNoteClient) Create() *MedicalNoteCreate
Create returns a create builder for MedicalNote.
func (*MedicalNoteClient) Delete ¶
func (c *MedicalNoteClient) Delete() *MedicalNoteDelete
Delete returns a delete builder for MedicalNote.
func (*MedicalNoteClient) DeleteOne ¶
func (c *MedicalNoteClient) DeleteOne(mn *MedicalNote) *MedicalNoteDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*MedicalNoteClient) DeleteOneID ¶
func (c *MedicalNoteClient) DeleteOneID(id uuid.UUID) *MedicalNoteDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*MedicalNoteClient) Get ¶
func (c *MedicalNoteClient) Get(ctx context.Context, id uuid.UUID) (*MedicalNote, error)
Get returns a MedicalNote entity by its id.
func (*MedicalNoteClient) GetX ¶
func (c *MedicalNoteClient) GetX(ctx context.Context, id uuid.UUID) *MedicalNote
GetX is like Get, but panics if an error occurs.
func (*MedicalNoteClient) Query ¶
func (c *MedicalNoteClient) Query() *MedicalNoteQuery
Create returns a query builder for MedicalNote.
func (*MedicalNoteClient) QueryHistory ¶
func (c *MedicalNoteClient) QueryHistory(mn *MedicalNote) *HistoryQuery
QueryHistory queries the history edge of a MedicalNote.
func (*MedicalNoteClient) QueryOwner ¶
func (c *MedicalNoteClient) QueryOwner(mn *MedicalNote) *DoctorQuery
QueryOwner queries the owner edge of a MedicalNote.
func (*MedicalNoteClient) Update ¶
func (c *MedicalNoteClient) Update() *MedicalNoteUpdate
Update returns an update builder for MedicalNote.
func (*MedicalNoteClient) UpdateOne ¶
func (c *MedicalNoteClient) UpdateOne(mn *MedicalNote) *MedicalNoteUpdateOne
UpdateOne returns an update builder for the given entity.
func (*MedicalNoteClient) UpdateOneID ¶
func (c *MedicalNoteClient) UpdateOneID(id uuid.UUID) *MedicalNoteUpdateOne
UpdateOneID returns an update builder for the given id.
type MedicalNoteCreate ¶
type MedicalNoteCreate struct {
// contains filtered or unexported fields
}
MedicalNoteCreate is the builder for creating a MedicalNote entity.
func (*MedicalNoteCreate) Save ¶
func (mnc *MedicalNoteCreate) Save(ctx context.Context) (*MedicalNote, error)
Save creates the MedicalNote in the database.
func (*MedicalNoteCreate) SaveX ¶
func (mnc *MedicalNoteCreate) SaveX(ctx context.Context) *MedicalNote
SaveX calls Save and panics if Save returns an error.
func (*MedicalNoteCreate) SetAt ¶
func (mnc *MedicalNoteCreate) SetAt(t time.Time) *MedicalNoteCreate
SetAt sets the at field.
func (*MedicalNoteCreate) SetHistory ¶
func (mnc *MedicalNoteCreate) SetHistory(h *History) *MedicalNoteCreate
SetHistory sets the history edge to History.
func (*MedicalNoteCreate) SetHistoryID ¶
func (mnc *MedicalNoteCreate) SetHistoryID(id uuid.UUID) *MedicalNoteCreate
SetHistoryID sets the history edge to History by id.
func (*MedicalNoteCreate) SetID ¶
func (mnc *MedicalNoteCreate) SetID(u uuid.UUID) *MedicalNoteCreate
SetID sets the id field.
func (*MedicalNoteCreate) SetLastChange ¶
func (mnc *MedicalNoteCreate) SetLastChange(t time.Time) *MedicalNoteCreate
SetLastChange sets the lastChange field.
func (*MedicalNoteCreate) SetMeta ¶
func (mnc *MedicalNoteCreate) SetMeta(s []string) *MedicalNoteCreate
SetMeta sets the meta field.
func (*MedicalNoteCreate) SetNillableAt ¶
func (mnc *MedicalNoteCreate) SetNillableAt(t *time.Time) *MedicalNoteCreate
SetNillableAt sets the at field if the given value is not nil.
func (*MedicalNoteCreate) SetNillableHistoryID ¶
func (mnc *MedicalNoteCreate) SetNillableHistoryID(id *uuid.UUID) *MedicalNoteCreate
SetNillableHistoryID sets the history edge to History by id if the given value is not nil.
func (*MedicalNoteCreate) SetNillableLastChange ¶
func (mnc *MedicalNoteCreate) SetNillableLastChange(t *time.Time) *MedicalNoteCreate
SetNillableLastChange sets the lastChange field if the given value is not nil.
func (*MedicalNoteCreate) SetNillableOwnerID ¶
func (mnc *MedicalNoteCreate) SetNillableOwnerID(id *uuid.UUID) *MedicalNoteCreate
SetNillableOwnerID sets the owner edge to Doctor by id if the given value is not nil.
func (*MedicalNoteCreate) SetObservations ¶
func (mnc *MedicalNoteCreate) SetObservations(s []string) *MedicalNoteCreate
SetObservations sets the observations field.
func (*MedicalNoteCreate) SetOwner ¶
func (mnc *MedicalNoteCreate) SetOwner(d *Doctor) *MedicalNoteCreate
SetOwner sets the owner edge to Doctor.
func (*MedicalNoteCreate) SetOwnerID ¶
func (mnc *MedicalNoteCreate) SetOwnerID(id uuid.UUID) *MedicalNoteCreate
SetOwnerID sets the owner edge to Doctor by id.
type MedicalNoteDelete ¶
type MedicalNoteDelete struct {
// contains filtered or unexported fields
}
MedicalNoteDelete is the builder for deleting a MedicalNote entity.
func (*MedicalNoteDelete) Exec ¶
func (mnd *MedicalNoteDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*MedicalNoteDelete) ExecX ¶
func (mnd *MedicalNoteDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*MedicalNoteDelete) Where ¶
func (mnd *MedicalNoteDelete) Where(ps ...predicate.MedicalNote) *MedicalNoteDelete
Where adds a new predicate to the delete builder.
type MedicalNoteDeleteOne ¶
type MedicalNoteDeleteOne struct {
// contains filtered or unexported fields
}
MedicalNoteDeleteOne is the builder for deleting a single MedicalNote entity.
func (*MedicalNoteDeleteOne) Exec ¶
func (mndo *MedicalNoteDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*MedicalNoteDeleteOne) ExecX ¶
func (mndo *MedicalNoteDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type MedicalNoteEdges ¶
type MedicalNoteEdges struct { // History holds the value of the history edge. History *History // Owner holds the value of the owner edge. Owner *Doctor // contains filtered or unexported fields }
MedicalNoteEdges holds the relations/edges for other nodes in the graph.
func (MedicalNoteEdges) HistoryOrErr ¶
func (e MedicalNoteEdges) HistoryOrErr() (*History, error)
HistoryOrErr returns the History value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (MedicalNoteEdges) OwnerOrErr ¶
func (e MedicalNoteEdges) OwnerOrErr() (*Doctor, error)
OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type MedicalNoteGroupBy ¶
type MedicalNoteGroupBy struct {
// contains filtered or unexported fields
}
MedicalNoteGroupBy is the builder for group-by MedicalNote entities.
func (*MedicalNoteGroupBy) Aggregate ¶
func (mngb *MedicalNoteGroupBy) Aggregate(fns ...Aggregate) *MedicalNoteGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*MedicalNoteGroupBy) Bools ¶
func (mngb *MedicalNoteGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*MedicalNoteGroupBy) BoolsX ¶
func (mngb *MedicalNoteGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*MedicalNoteGroupBy) Float64s ¶
func (mngb *MedicalNoteGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*MedicalNoteGroupBy) Float64sX ¶
func (mngb *MedicalNoteGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*MedicalNoteGroupBy) Ints ¶
func (mngb *MedicalNoteGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*MedicalNoteGroupBy) IntsX ¶
func (mngb *MedicalNoteGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*MedicalNoteGroupBy) Scan ¶
func (mngb *MedicalNoteGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*MedicalNoteGroupBy) ScanX ¶
func (mngb *MedicalNoteGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type MedicalNoteQuery ¶
type MedicalNoteQuery struct {
// contains filtered or unexported fields
}
MedicalNoteQuery is the builder for querying MedicalNote entities.
func (*MedicalNoteQuery) All ¶
func (mnq *MedicalNoteQuery) All(ctx context.Context) ([]*MedicalNote, error)
All executes the query and returns a list of MedicalNotes.
func (*MedicalNoteQuery) AllX ¶
func (mnq *MedicalNoteQuery) AllX(ctx context.Context) []*MedicalNote
AllX is like All, but panics if an error occurs.
func (*MedicalNoteQuery) Clone ¶
func (mnq *MedicalNoteQuery) Clone() *MedicalNoteQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*MedicalNoteQuery) Count ¶
func (mnq *MedicalNoteQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*MedicalNoteQuery) CountX ¶
func (mnq *MedicalNoteQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*MedicalNoteQuery) Exist ¶
func (mnq *MedicalNoteQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*MedicalNoteQuery) ExistX ¶
func (mnq *MedicalNoteQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*MedicalNoteQuery) First ¶
func (mnq *MedicalNoteQuery) First(ctx context.Context) (*MedicalNote, error)
First returns the first MedicalNote entity in the query. Returns *NotFoundError when no medicalnote was found.
func (*MedicalNoteQuery) FirstID ¶
FirstID returns the first MedicalNote id in the query. Returns *NotFoundError when no id was found.
func (*MedicalNoteQuery) FirstX ¶
func (mnq *MedicalNoteQuery) FirstX(ctx context.Context) *MedicalNote
FirstX is like First, but panics if an error occurs.
func (*MedicalNoteQuery) FirstXID ¶
func (mnq *MedicalNoteQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*MedicalNoteQuery) GroupBy ¶
func (mnq *MedicalNoteQuery) GroupBy(field string, fields ...string) *MedicalNoteGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { At time.Time `json:"at,omitempty"` Count int `json:"count,omitempty"` } client.MedicalNote.Query(). GroupBy(medicalnote.FieldAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*MedicalNoteQuery) IDsX ¶
func (mnq *MedicalNoteQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*MedicalNoteQuery) Limit ¶
func (mnq *MedicalNoteQuery) Limit(limit int) *MedicalNoteQuery
Limit adds a limit step to the query.
func (*MedicalNoteQuery) Offset ¶
func (mnq *MedicalNoteQuery) Offset(offset int) *MedicalNoteQuery
Offset adds an offset step to the query.
func (*MedicalNoteQuery) Only ¶
func (mnq *MedicalNoteQuery) Only(ctx context.Context) (*MedicalNote, error)
Only returns the only MedicalNote entity in the query, returns an error if not exactly one entity was returned.
func (*MedicalNoteQuery) OnlyID ¶
OnlyID returns the only MedicalNote id in the query, returns an error if not exactly one id was returned.
func (*MedicalNoteQuery) OnlyX ¶
func (mnq *MedicalNoteQuery) OnlyX(ctx context.Context) *MedicalNote
OnlyX is like Only, but panics if an error occurs.
func (*MedicalNoteQuery) OnlyXID ¶
func (mnq *MedicalNoteQuery) OnlyXID(ctx context.Context) uuid.UUID
OnlyXID is like OnlyID, but panics if an error occurs.
func (*MedicalNoteQuery) Order ¶
func (mnq *MedicalNoteQuery) Order(o ...Order) *MedicalNoteQuery
Order adds an order step to the query.
func (*MedicalNoteQuery) QueryHistory ¶
func (mnq *MedicalNoteQuery) QueryHistory() *HistoryQuery
QueryHistory chains the current query on the history edge.
func (*MedicalNoteQuery) QueryOwner ¶
func (mnq *MedicalNoteQuery) QueryOwner() *DoctorQuery
QueryOwner chains the current query on the owner edge.
func (*MedicalNoteQuery) Select ¶
func (mnq *MedicalNoteQuery) Select(field string, fields ...string) *MedicalNoteSelect
Select one or more fields from the given query.
Example:
var v []struct { At time.Time `json:"at,omitempty"` } client.MedicalNote.Query(). Select(medicalnote.FieldAt). Scan(ctx, &v)
func (*MedicalNoteQuery) Where ¶
func (mnq *MedicalNoteQuery) Where(ps ...predicate.MedicalNote) *MedicalNoteQuery
Where adds a new predicate for the builder.
func (*MedicalNoteQuery) WithHistory ¶
func (mnq *MedicalNoteQuery) WithHistory(opts ...func(*HistoryQuery)) *MedicalNoteQuery
WithHistory tells the query-builder to eager-loads the nodes that are connected to
the "history" edge. The optional arguments used to configure the query builder of the edge.
func (*MedicalNoteQuery) WithOwner ¶
func (mnq *MedicalNoteQuery) WithOwner(opts ...func(*DoctorQuery)) *MedicalNoteQuery
WithOwner tells the query-builder to eager-loads the nodes that are connected to
the "owner" edge. The optional arguments used to configure the query builder of the edge.
type MedicalNoteSelect ¶
type MedicalNoteSelect struct {
// contains filtered or unexported fields
}
MedicalNoteSelect is the builder for select fields of MedicalNote entities.
func (*MedicalNoteSelect) Bools ¶
func (mns *MedicalNoteSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*MedicalNoteSelect) BoolsX ¶
func (mns *MedicalNoteSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*MedicalNoteSelect) Float64s ¶
func (mns *MedicalNoteSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*MedicalNoteSelect) Float64sX ¶
func (mns *MedicalNoteSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*MedicalNoteSelect) Ints ¶
func (mns *MedicalNoteSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*MedicalNoteSelect) IntsX ¶
func (mns *MedicalNoteSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*MedicalNoteSelect) Scan ¶
func (mns *MedicalNoteSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*MedicalNoteSelect) ScanX ¶
func (mns *MedicalNoteSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type MedicalNoteUpdate ¶
type MedicalNoteUpdate struct {
// contains filtered or unexported fields
}
MedicalNoteUpdate is the builder for updating MedicalNote entities.
func (*MedicalNoteUpdate) ClearHistory ¶
func (mnu *MedicalNoteUpdate) ClearHistory() *MedicalNoteUpdate
ClearHistory clears the history edge to History.
func (*MedicalNoteUpdate) ClearMeta ¶
func (mnu *MedicalNoteUpdate) ClearMeta() *MedicalNoteUpdate
ClearMeta clears the value of meta.
func (*MedicalNoteUpdate) ClearOwner ¶
func (mnu *MedicalNoteUpdate) ClearOwner() *MedicalNoteUpdate
ClearOwner clears the owner edge to Doctor.
func (*MedicalNoteUpdate) Exec ¶
func (mnu *MedicalNoteUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*MedicalNoteUpdate) ExecX ¶
func (mnu *MedicalNoteUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MedicalNoteUpdate) Save ¶
func (mnu *MedicalNoteUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*MedicalNoteUpdate) SaveX ¶
func (mnu *MedicalNoteUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*MedicalNoteUpdate) SetAt ¶
func (mnu *MedicalNoteUpdate) SetAt(t time.Time) *MedicalNoteUpdate
SetAt sets the at field.
func (*MedicalNoteUpdate) SetHistory ¶
func (mnu *MedicalNoteUpdate) SetHistory(h *History) *MedicalNoteUpdate
SetHistory sets the history edge to History.
func (*MedicalNoteUpdate) SetHistoryID ¶
func (mnu *MedicalNoteUpdate) SetHistoryID(id uuid.UUID) *MedicalNoteUpdate
SetHistoryID sets the history edge to History by id.
func (*MedicalNoteUpdate) SetLastChange ¶
func (mnu *MedicalNoteUpdate) SetLastChange(t time.Time) *MedicalNoteUpdate
SetLastChange sets the lastChange field.
func (*MedicalNoteUpdate) SetMeta ¶
func (mnu *MedicalNoteUpdate) SetMeta(s []string) *MedicalNoteUpdate
SetMeta sets the meta field.
func (*MedicalNoteUpdate) SetNillableAt ¶
func (mnu *MedicalNoteUpdate) SetNillableAt(t *time.Time) *MedicalNoteUpdate
SetNillableAt sets the at field if the given value is not nil.
func (*MedicalNoteUpdate) SetNillableHistoryID ¶
func (mnu *MedicalNoteUpdate) SetNillableHistoryID(id *uuid.UUID) *MedicalNoteUpdate
SetNillableHistoryID sets the history edge to History by id if the given value is not nil.
func (*MedicalNoteUpdate) SetNillableLastChange ¶
func (mnu *MedicalNoteUpdate) SetNillableLastChange(t *time.Time) *MedicalNoteUpdate
SetNillableLastChange sets the lastChange field if the given value is not nil.
func (*MedicalNoteUpdate) SetNillableOwnerID ¶
func (mnu *MedicalNoteUpdate) SetNillableOwnerID(id *uuid.UUID) *MedicalNoteUpdate
SetNillableOwnerID sets the owner edge to Doctor by id if the given value is not nil.
func (*MedicalNoteUpdate) SetObservations ¶
func (mnu *MedicalNoteUpdate) SetObservations(s []string) *MedicalNoteUpdate
SetObservations sets the observations field.
func (*MedicalNoteUpdate) SetOwner ¶
func (mnu *MedicalNoteUpdate) SetOwner(d *Doctor) *MedicalNoteUpdate
SetOwner sets the owner edge to Doctor.
func (*MedicalNoteUpdate) SetOwnerID ¶
func (mnu *MedicalNoteUpdate) SetOwnerID(id uuid.UUID) *MedicalNoteUpdate
SetOwnerID sets the owner edge to Doctor by id.
func (*MedicalNoteUpdate) Where ¶
func (mnu *MedicalNoteUpdate) Where(ps ...predicate.MedicalNote) *MedicalNoteUpdate
Where adds a new predicate for the builder.
type MedicalNoteUpdateOne ¶
type MedicalNoteUpdateOne struct {
// contains filtered or unexported fields
}
MedicalNoteUpdateOne is the builder for updating a single MedicalNote entity.
func (*MedicalNoteUpdateOne) ClearHistory ¶
func (mnuo *MedicalNoteUpdateOne) ClearHistory() *MedicalNoteUpdateOne
ClearHistory clears the history edge to History.
func (*MedicalNoteUpdateOne) ClearMeta ¶
func (mnuo *MedicalNoteUpdateOne) ClearMeta() *MedicalNoteUpdateOne
ClearMeta clears the value of meta.
func (*MedicalNoteUpdateOne) ClearOwner ¶
func (mnuo *MedicalNoteUpdateOne) ClearOwner() *MedicalNoteUpdateOne
ClearOwner clears the owner edge to Doctor.
func (*MedicalNoteUpdateOne) Exec ¶
func (mnuo *MedicalNoteUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*MedicalNoteUpdateOne) ExecX ¶
func (mnuo *MedicalNoteUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MedicalNoteUpdateOne) Save ¶
func (mnuo *MedicalNoteUpdateOne) Save(ctx context.Context) (*MedicalNote, error)
Save executes the query and returns the updated entity.
func (*MedicalNoteUpdateOne) SaveX ¶
func (mnuo *MedicalNoteUpdateOne) SaveX(ctx context.Context) *MedicalNote
SaveX is like Save, but panics if an error occurs.
func (*MedicalNoteUpdateOne) SetAt ¶
func (mnuo *MedicalNoteUpdateOne) SetAt(t time.Time) *MedicalNoteUpdateOne
SetAt sets the at field.
func (*MedicalNoteUpdateOne) SetHistory ¶
func (mnuo *MedicalNoteUpdateOne) SetHistory(h *History) *MedicalNoteUpdateOne
SetHistory sets the history edge to History.
func (*MedicalNoteUpdateOne) SetHistoryID ¶
func (mnuo *MedicalNoteUpdateOne) SetHistoryID(id uuid.UUID) *MedicalNoteUpdateOne
SetHistoryID sets the history edge to History by id.
func (*MedicalNoteUpdateOne) SetLastChange ¶
func (mnuo *MedicalNoteUpdateOne) SetLastChange(t time.Time) *MedicalNoteUpdateOne
SetLastChange sets the lastChange field.
func (*MedicalNoteUpdateOne) SetMeta ¶
func (mnuo *MedicalNoteUpdateOne) SetMeta(s []string) *MedicalNoteUpdateOne
SetMeta sets the meta field.
func (*MedicalNoteUpdateOne) SetNillableAt ¶
func (mnuo *MedicalNoteUpdateOne) SetNillableAt(t *time.Time) *MedicalNoteUpdateOne
SetNillableAt sets the at field if the given value is not nil.
func (*MedicalNoteUpdateOne) SetNillableHistoryID ¶
func (mnuo *MedicalNoteUpdateOne) SetNillableHistoryID(id *uuid.UUID) *MedicalNoteUpdateOne
SetNillableHistoryID sets the history edge to History by id if the given value is not nil.
func (*MedicalNoteUpdateOne) SetNillableLastChange ¶
func (mnuo *MedicalNoteUpdateOne) SetNillableLastChange(t *time.Time) *MedicalNoteUpdateOne
SetNillableLastChange sets the lastChange field if the given value is not nil.
func (*MedicalNoteUpdateOne) SetNillableOwnerID ¶
func (mnuo *MedicalNoteUpdateOne) SetNillableOwnerID(id *uuid.UUID) *MedicalNoteUpdateOne
SetNillableOwnerID sets the owner edge to Doctor by id if the given value is not nil.
func (*MedicalNoteUpdateOne) SetObservations ¶
func (mnuo *MedicalNoteUpdateOne) SetObservations(s []string) *MedicalNoteUpdateOne
SetObservations sets the observations field.
func (*MedicalNoteUpdateOne) SetOwner ¶
func (mnuo *MedicalNoteUpdateOne) SetOwner(d *Doctor) *MedicalNoteUpdateOne
SetOwner sets the owner edge to Doctor.
func (*MedicalNoteUpdateOne) SetOwnerID ¶
func (mnuo *MedicalNoteUpdateOne) SetOwnerID(id uuid.UUID) *MedicalNoteUpdateOne
SetOwnerID sets the owner edge to Doctor by id.
type MedicalNotes ¶
type MedicalNotes []*MedicalNote
MedicalNotes is a parsable slice of MedicalNote.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type Patient ¶
type Patient struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Phone holds the value of the "phone" field. Phone string `json:"phone,omitempty"` // Age holds the value of the "age" field. Age int `json:"age,omitempty"` // Email holds the value of the "email" field. Email string `json:"email,omitempty"` // Password holds the value of the "password" field. Password string `json:"-"` // FacebookID holds the value of the "facebookID" field. FacebookID string `json:"facebookID,omitempty"` // WatsonID holds the value of the "watsonID" field. WatsonID string `json:"watsonID,omitempty"` // FirstContact holds the value of the "first_contact" field. FirstContact time.Time `json:"first_contact,omitempty"` // Conditions holds the value of the "conditions" field. Conditions []string `json:"conditions,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the PatientQuery when eager-loading is set. Edges PatientEdges `json:"edges"` // contains filtered or unexported fields }
Patient is the model entity for the Patient schema.
func (*Patient) QueryHistory ¶
func (pa *Patient) QueryHistory() *HistoryQuery
QueryHistory queries the history edge of the Patient.
func (*Patient) QuerySchedule ¶
func (pa *Patient) QuerySchedule() *ScheduleQuery
QuerySchedule queries the schedule edge of the Patient.
func (*Patient) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Patient) Update ¶
func (pa *Patient) Update() *PatientUpdateOne
Update returns a builder for updating this Patient. Note that, you need to call Patient.Unwrap() before calling this method, if this Patient was returned from a transaction, and the transaction was committed or rolled back.
type PatientClient ¶
type PatientClient struct {
// contains filtered or unexported fields
}
PatientClient is a client for the Patient schema.
func NewPatientClient ¶
func NewPatientClient(c config) *PatientClient
NewPatientClient returns a client for the Patient from the given config.
func (*PatientClient) Create ¶
func (c *PatientClient) Create() *PatientCreate
Create returns a create builder for Patient.
func (*PatientClient) Delete ¶
func (c *PatientClient) Delete() *PatientDelete
Delete returns a delete builder for Patient.
func (*PatientClient) DeleteOne ¶
func (c *PatientClient) DeleteOne(pa *Patient) *PatientDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*PatientClient) DeleteOneID ¶
func (c *PatientClient) DeleteOneID(id uuid.UUID) *PatientDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*PatientClient) Query ¶
func (c *PatientClient) Query() *PatientQuery
Create returns a query builder for Patient.
func (*PatientClient) QueryHistory ¶
func (c *PatientClient) QueryHistory(pa *Patient) *HistoryQuery
QueryHistory queries the history edge of a Patient.
func (*PatientClient) QuerySchedule ¶
func (c *PatientClient) QuerySchedule(pa *Patient) *ScheduleQuery
QuerySchedule queries the schedule edge of a Patient.
func (*PatientClient) Update ¶
func (c *PatientClient) Update() *PatientUpdate
Update returns an update builder for Patient.
func (*PatientClient) UpdateOne ¶
func (c *PatientClient) UpdateOne(pa *Patient) *PatientUpdateOne
UpdateOne returns an update builder for the given entity.
func (*PatientClient) UpdateOneID ¶
func (c *PatientClient) UpdateOneID(id uuid.UUID) *PatientUpdateOne
UpdateOneID returns an update builder for the given id.
type PatientCreate ¶
type PatientCreate struct {
// contains filtered or unexported fields
}
PatientCreate is the builder for creating a Patient entity.
func (*PatientCreate) Save ¶
func (pc *PatientCreate) Save(ctx context.Context) (*Patient, error)
Save creates the Patient in the database.
func (*PatientCreate) SaveX ¶
func (pc *PatientCreate) SaveX(ctx context.Context) *Patient
SaveX calls Save and panics if Save returns an error.
func (*PatientCreate) SetAge ¶
func (pc *PatientCreate) SetAge(i int) *PatientCreate
SetAge sets the age field.
func (*PatientCreate) SetConditions ¶
func (pc *PatientCreate) SetConditions(s []string) *PatientCreate
SetConditions sets the conditions field.
func (*PatientCreate) SetEmail ¶
func (pc *PatientCreate) SetEmail(s string) *PatientCreate
SetEmail sets the email field.
func (*PatientCreate) SetFacebookID ¶
func (pc *PatientCreate) SetFacebookID(s string) *PatientCreate
SetFacebookID sets the facebookID field.
func (*PatientCreate) SetFirstContact ¶
func (pc *PatientCreate) SetFirstContact(t time.Time) *PatientCreate
SetFirstContact sets the first_contact field.
func (*PatientCreate) SetHistory ¶
func (pc *PatientCreate) SetHistory(h *History) *PatientCreate
SetHistory sets the history edge to History.
func (*PatientCreate) SetHistoryID ¶
func (pc *PatientCreate) SetHistoryID(id uuid.UUID) *PatientCreate
SetHistoryID sets the history edge to History by id.
func (*PatientCreate) SetID ¶
func (pc *PatientCreate) SetID(u uuid.UUID) *PatientCreate
SetID sets the id field.
func (*PatientCreate) SetName ¶
func (pc *PatientCreate) SetName(s string) *PatientCreate
SetName sets the name field.
func (*PatientCreate) SetNillableAge ¶
func (pc *PatientCreate) SetNillableAge(i *int) *PatientCreate
SetNillableAge sets the age field if the given value is not nil.
func (*PatientCreate) SetNillableEmail ¶
func (pc *PatientCreate) SetNillableEmail(s *string) *PatientCreate
SetNillableEmail sets the email field if the given value is not nil.
func (*PatientCreate) SetNillableFacebookID ¶
func (pc *PatientCreate) SetNillableFacebookID(s *string) *PatientCreate
SetNillableFacebookID sets the facebookID field if the given value is not nil.
func (*PatientCreate) SetNillableFirstContact ¶
func (pc *PatientCreate) SetNillableFirstContact(t *time.Time) *PatientCreate
SetNillableFirstContact sets the first_contact field if the given value is not nil.
func (*PatientCreate) SetNillablePassword ¶
func (pc *PatientCreate) SetNillablePassword(s *string) *PatientCreate
SetNillablePassword sets the password field if the given value is not nil.
func (*PatientCreate) SetNillableWatsonID ¶
func (pc *PatientCreate) SetNillableWatsonID(s *string) *PatientCreate
SetNillableWatsonID sets the watsonID field if the given value is not nil.
func (*PatientCreate) SetPassword ¶
func (pc *PatientCreate) SetPassword(s string) *PatientCreate
SetPassword sets the password field.
func (*PatientCreate) SetPhone ¶
func (pc *PatientCreate) SetPhone(s string) *PatientCreate
SetPhone sets the phone field.
func (*PatientCreate) SetSchedule ¶
func (pc *PatientCreate) SetSchedule(s *Schedule) *PatientCreate
SetSchedule sets the schedule edge to Schedule.
func (*PatientCreate) SetScheduleID ¶
func (pc *PatientCreate) SetScheduleID(id uuid.UUID) *PatientCreate
SetScheduleID sets the schedule edge to Schedule by id.
func (*PatientCreate) SetWatsonID ¶
func (pc *PatientCreate) SetWatsonID(s string) *PatientCreate
SetWatsonID sets the watsonID field.
type PatientDelete ¶
type PatientDelete struct {
// contains filtered or unexported fields
}
PatientDelete is the builder for deleting a Patient entity.
func (*PatientDelete) Exec ¶
func (pd *PatientDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*PatientDelete) ExecX ¶
func (pd *PatientDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*PatientDelete) Where ¶
func (pd *PatientDelete) Where(ps ...predicate.Patient) *PatientDelete
Where adds a new predicate to the delete builder.
type PatientDeleteOne ¶
type PatientDeleteOne struct {
// contains filtered or unexported fields
}
PatientDeleteOne is the builder for deleting a single Patient entity.
func (*PatientDeleteOne) Exec ¶
func (pdo *PatientDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*PatientDeleteOne) ExecX ¶
func (pdo *PatientDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type PatientEdges ¶
type PatientEdges struct { // History holds the value of the history edge. History *History // Schedule holds the value of the schedule edge. Schedule *Schedule // contains filtered or unexported fields }
PatientEdges holds the relations/edges for other nodes in the graph.
func (PatientEdges) HistoryOrErr ¶
func (e PatientEdges) HistoryOrErr() (*History, error)
HistoryOrErr returns the History value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (PatientEdges) ScheduleOrErr ¶
func (e PatientEdges) ScheduleOrErr() (*Schedule, error)
ScheduleOrErr returns the Schedule value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type PatientGroupBy ¶
type PatientGroupBy struct {
// contains filtered or unexported fields
}
PatientGroupBy is the builder for group-by Patient entities.
func (*PatientGroupBy) Aggregate ¶
func (pgb *PatientGroupBy) Aggregate(fns ...Aggregate) *PatientGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*PatientGroupBy) Bools ¶
func (pgb *PatientGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*PatientGroupBy) BoolsX ¶
func (pgb *PatientGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*PatientGroupBy) Float64s ¶
func (pgb *PatientGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*PatientGroupBy) Float64sX ¶
func (pgb *PatientGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*PatientGroupBy) Ints ¶
func (pgb *PatientGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*PatientGroupBy) IntsX ¶
func (pgb *PatientGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*PatientGroupBy) Scan ¶
func (pgb *PatientGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*PatientGroupBy) ScanX ¶
func (pgb *PatientGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type PatientQuery ¶
type PatientQuery struct {
// contains filtered or unexported fields
}
PatientQuery is the builder for querying Patient entities.
func (*PatientQuery) All ¶
func (pq *PatientQuery) All(ctx context.Context) ([]*Patient, error)
All executes the query and returns a list of Patients.
func (*PatientQuery) AllX ¶
func (pq *PatientQuery) AllX(ctx context.Context) []*Patient
AllX is like All, but panics if an error occurs.
func (*PatientQuery) Clone ¶
func (pq *PatientQuery) Clone() *PatientQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*PatientQuery) Count ¶
func (pq *PatientQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*PatientQuery) CountX ¶
func (pq *PatientQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*PatientQuery) Exist ¶
func (pq *PatientQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*PatientQuery) ExistX ¶
func (pq *PatientQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*PatientQuery) First ¶
func (pq *PatientQuery) First(ctx context.Context) (*Patient, error)
First returns the first Patient entity in the query. Returns *NotFoundError when no patient was found.
func (*PatientQuery) FirstID ¶
FirstID returns the first Patient id in the query. Returns *NotFoundError when no id was found.
func (*PatientQuery) FirstX ¶
func (pq *PatientQuery) FirstX(ctx context.Context) *Patient
FirstX is like First, but panics if an error occurs.
func (*PatientQuery) FirstXID ¶
func (pq *PatientQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*PatientQuery) GroupBy ¶
func (pq *PatientQuery) GroupBy(field string, fields ...string) *PatientGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Patient.Query(). GroupBy(patient.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*PatientQuery) IDsX ¶
func (pq *PatientQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*PatientQuery) Limit ¶
func (pq *PatientQuery) Limit(limit int) *PatientQuery
Limit adds a limit step to the query.
func (*PatientQuery) Offset ¶
func (pq *PatientQuery) Offset(offset int) *PatientQuery
Offset adds an offset step to the query.
func (*PatientQuery) Only ¶
func (pq *PatientQuery) Only(ctx context.Context) (*Patient, error)
Only returns the only Patient entity in the query, returns an error if not exactly one entity was returned.
func (*PatientQuery) OnlyID ¶
OnlyID returns the only Patient id in the query, returns an error if not exactly one id was returned.
func (*PatientQuery) OnlyX ¶
func (pq *PatientQuery) OnlyX(ctx context.Context) *Patient
OnlyX is like Only, but panics if an error occurs.
func (*PatientQuery) OnlyXID ¶
func (pq *PatientQuery) OnlyXID(ctx context.Context) uuid.UUID
OnlyXID is like OnlyID, but panics if an error occurs.
func (*PatientQuery) Order ¶
func (pq *PatientQuery) Order(o ...Order) *PatientQuery
Order adds an order step to the query.
func (*PatientQuery) QueryHistory ¶
func (pq *PatientQuery) QueryHistory() *HistoryQuery
QueryHistory chains the current query on the history edge.
func (*PatientQuery) QuerySchedule ¶
func (pq *PatientQuery) QuerySchedule() *ScheduleQuery
QuerySchedule chains the current query on the schedule edge.
func (*PatientQuery) Select ¶
func (pq *PatientQuery) Select(field string, fields ...string) *PatientSelect
Select one or more fields from the given query.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Patient.Query(). Select(patient.FieldName). Scan(ctx, &v)
func (*PatientQuery) Where ¶
func (pq *PatientQuery) Where(ps ...predicate.Patient) *PatientQuery
Where adds a new predicate for the builder.
func (*PatientQuery) WithHistory ¶
func (pq *PatientQuery) WithHistory(opts ...func(*HistoryQuery)) *PatientQuery
WithHistory tells the query-builder to eager-loads the nodes that are connected to
the "history" edge. The optional arguments used to configure the query builder of the edge.
func (*PatientQuery) WithSchedule ¶
func (pq *PatientQuery) WithSchedule(opts ...func(*ScheduleQuery)) *PatientQuery
WithSchedule tells the query-builder to eager-loads the nodes that are connected to
the "schedule" edge. The optional arguments used to configure the query builder of the edge.
type PatientSelect ¶
type PatientSelect struct {
// contains filtered or unexported fields
}
PatientSelect is the builder for select fields of Patient entities.
func (*PatientSelect) Bools ¶
func (ps *PatientSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*PatientSelect) BoolsX ¶
func (ps *PatientSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*PatientSelect) Float64s ¶
func (ps *PatientSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*PatientSelect) Float64sX ¶
func (ps *PatientSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*PatientSelect) Ints ¶
func (ps *PatientSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*PatientSelect) IntsX ¶
func (ps *PatientSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*PatientSelect) Scan ¶
func (ps *PatientSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*PatientSelect) ScanX ¶
func (ps *PatientSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type PatientUpdate ¶
type PatientUpdate struct {
// contains filtered or unexported fields
}
PatientUpdate is the builder for updating Patient entities.
func (*PatientUpdate) AddAge ¶
func (pu *PatientUpdate) AddAge(i int) *PatientUpdate
AddAge adds i to age.
func (*PatientUpdate) ClearAge ¶
func (pu *PatientUpdate) ClearAge() *PatientUpdate
ClearAge clears the value of age.
func (*PatientUpdate) ClearConditions ¶
func (pu *PatientUpdate) ClearConditions() *PatientUpdate
ClearConditions clears the value of conditions.
func (*PatientUpdate) ClearEmail ¶
func (pu *PatientUpdate) ClearEmail() *PatientUpdate
ClearEmail clears the value of email.
func (*PatientUpdate) ClearFacebookID ¶
func (pu *PatientUpdate) ClearFacebookID() *PatientUpdate
ClearFacebookID clears the value of facebookID.
func (*PatientUpdate) ClearHistory ¶
func (pu *PatientUpdate) ClearHistory() *PatientUpdate
ClearHistory clears the history edge to History.
func (*PatientUpdate) ClearPassword ¶
func (pu *PatientUpdate) ClearPassword() *PatientUpdate
ClearPassword clears the value of password.
func (*PatientUpdate) ClearSchedule ¶
func (pu *PatientUpdate) ClearSchedule() *PatientUpdate
ClearSchedule clears the schedule edge to Schedule.
func (*PatientUpdate) ClearWatsonID ¶
func (pu *PatientUpdate) ClearWatsonID() *PatientUpdate
ClearWatsonID clears the value of watsonID.
func (*PatientUpdate) Exec ¶
func (pu *PatientUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*PatientUpdate) ExecX ¶
func (pu *PatientUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PatientUpdate) Save ¶
func (pu *PatientUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*PatientUpdate) SaveX ¶
func (pu *PatientUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*PatientUpdate) SetAge ¶
func (pu *PatientUpdate) SetAge(i int) *PatientUpdate
SetAge sets the age field.
func (*PatientUpdate) SetConditions ¶
func (pu *PatientUpdate) SetConditions(s []string) *PatientUpdate
SetConditions sets the conditions field.
func (*PatientUpdate) SetEmail ¶
func (pu *PatientUpdate) SetEmail(s string) *PatientUpdate
SetEmail sets the email field.
func (*PatientUpdate) SetFacebookID ¶
func (pu *PatientUpdate) SetFacebookID(s string) *PatientUpdate
SetFacebookID sets the facebookID field.
func (*PatientUpdate) SetFirstContact ¶
func (pu *PatientUpdate) SetFirstContact(t time.Time) *PatientUpdate
SetFirstContact sets the first_contact field.
func (*PatientUpdate) SetHistory ¶
func (pu *PatientUpdate) SetHistory(h *History) *PatientUpdate
SetHistory sets the history edge to History.
func (*PatientUpdate) SetHistoryID ¶
func (pu *PatientUpdate) SetHistoryID(id uuid.UUID) *PatientUpdate
SetHistoryID sets the history edge to History by id.
func (*PatientUpdate) SetName ¶
func (pu *PatientUpdate) SetName(s string) *PatientUpdate
SetName sets the name field.
func (*PatientUpdate) SetNillableAge ¶
func (pu *PatientUpdate) SetNillableAge(i *int) *PatientUpdate
SetNillableAge sets the age field if the given value is not nil.
func (*PatientUpdate) SetNillableEmail ¶
func (pu *PatientUpdate) SetNillableEmail(s *string) *PatientUpdate
SetNillableEmail sets the email field if the given value is not nil.
func (*PatientUpdate) SetNillableFacebookID ¶
func (pu *PatientUpdate) SetNillableFacebookID(s *string) *PatientUpdate
SetNillableFacebookID sets the facebookID field if the given value is not nil.
func (*PatientUpdate) SetNillableFirstContact ¶
func (pu *PatientUpdate) SetNillableFirstContact(t *time.Time) *PatientUpdate
SetNillableFirstContact sets the first_contact field if the given value is not nil.
func (*PatientUpdate) SetNillablePassword ¶
func (pu *PatientUpdate) SetNillablePassword(s *string) *PatientUpdate
SetNillablePassword sets the password field if the given value is not nil.
func (*PatientUpdate) SetNillableWatsonID ¶
func (pu *PatientUpdate) SetNillableWatsonID(s *string) *PatientUpdate
SetNillableWatsonID sets the watsonID field if the given value is not nil.
func (*PatientUpdate) SetPassword ¶
func (pu *PatientUpdate) SetPassword(s string) *PatientUpdate
SetPassword sets the password field.
func (*PatientUpdate) SetPhone ¶
func (pu *PatientUpdate) SetPhone(s string) *PatientUpdate
SetPhone sets the phone field.
func (*PatientUpdate) SetSchedule ¶
func (pu *PatientUpdate) SetSchedule(s *Schedule) *PatientUpdate
SetSchedule sets the schedule edge to Schedule.
func (*PatientUpdate) SetScheduleID ¶
func (pu *PatientUpdate) SetScheduleID(id uuid.UUID) *PatientUpdate
SetScheduleID sets the schedule edge to Schedule by id.
func (*PatientUpdate) SetWatsonID ¶
func (pu *PatientUpdate) SetWatsonID(s string) *PatientUpdate
SetWatsonID sets the watsonID field.
func (*PatientUpdate) Where ¶
func (pu *PatientUpdate) Where(ps ...predicate.Patient) *PatientUpdate
Where adds a new predicate for the builder.
type PatientUpdateOne ¶
type PatientUpdateOne struct {
// contains filtered or unexported fields
}
PatientUpdateOne is the builder for updating a single Patient entity.
func (*PatientUpdateOne) AddAge ¶
func (puo *PatientUpdateOne) AddAge(i int) *PatientUpdateOne
AddAge adds i to age.
func (*PatientUpdateOne) ClearAge ¶
func (puo *PatientUpdateOne) ClearAge() *PatientUpdateOne
ClearAge clears the value of age.
func (*PatientUpdateOne) ClearConditions ¶
func (puo *PatientUpdateOne) ClearConditions() *PatientUpdateOne
ClearConditions clears the value of conditions.
func (*PatientUpdateOne) ClearEmail ¶
func (puo *PatientUpdateOne) ClearEmail() *PatientUpdateOne
ClearEmail clears the value of email.
func (*PatientUpdateOne) ClearFacebookID ¶
func (puo *PatientUpdateOne) ClearFacebookID() *PatientUpdateOne
ClearFacebookID clears the value of facebookID.
func (*PatientUpdateOne) ClearHistory ¶
func (puo *PatientUpdateOne) ClearHistory() *PatientUpdateOne
ClearHistory clears the history edge to History.
func (*PatientUpdateOne) ClearPassword ¶
func (puo *PatientUpdateOne) ClearPassword() *PatientUpdateOne
ClearPassword clears the value of password.
func (*PatientUpdateOne) ClearSchedule ¶
func (puo *PatientUpdateOne) ClearSchedule() *PatientUpdateOne
ClearSchedule clears the schedule edge to Schedule.
func (*PatientUpdateOne) ClearWatsonID ¶
func (puo *PatientUpdateOne) ClearWatsonID() *PatientUpdateOne
ClearWatsonID clears the value of watsonID.
func (*PatientUpdateOne) Exec ¶
func (puo *PatientUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*PatientUpdateOne) ExecX ¶
func (puo *PatientUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PatientUpdateOne) Save ¶
func (puo *PatientUpdateOne) Save(ctx context.Context) (*Patient, error)
Save executes the query and returns the updated entity.
func (*PatientUpdateOne) SaveX ¶
func (puo *PatientUpdateOne) SaveX(ctx context.Context) *Patient
SaveX is like Save, but panics if an error occurs.
func (*PatientUpdateOne) SetAge ¶
func (puo *PatientUpdateOne) SetAge(i int) *PatientUpdateOne
SetAge sets the age field.
func (*PatientUpdateOne) SetConditions ¶
func (puo *PatientUpdateOne) SetConditions(s []string) *PatientUpdateOne
SetConditions sets the conditions field.
func (*PatientUpdateOne) SetEmail ¶
func (puo *PatientUpdateOne) SetEmail(s string) *PatientUpdateOne
SetEmail sets the email field.
func (*PatientUpdateOne) SetFacebookID ¶
func (puo *PatientUpdateOne) SetFacebookID(s string) *PatientUpdateOne
SetFacebookID sets the facebookID field.
func (*PatientUpdateOne) SetFirstContact ¶
func (puo *PatientUpdateOne) SetFirstContact(t time.Time) *PatientUpdateOne
SetFirstContact sets the first_contact field.
func (*PatientUpdateOne) SetHistory ¶
func (puo *PatientUpdateOne) SetHistory(h *History) *PatientUpdateOne
SetHistory sets the history edge to History.
func (*PatientUpdateOne) SetHistoryID ¶
func (puo *PatientUpdateOne) SetHistoryID(id uuid.UUID) *PatientUpdateOne
SetHistoryID sets the history edge to History by id.
func (*PatientUpdateOne) SetName ¶
func (puo *PatientUpdateOne) SetName(s string) *PatientUpdateOne
SetName sets the name field.
func (*PatientUpdateOne) SetNillableAge ¶
func (puo *PatientUpdateOne) SetNillableAge(i *int) *PatientUpdateOne
SetNillableAge sets the age field if the given value is not nil.
func (*PatientUpdateOne) SetNillableEmail ¶
func (puo *PatientUpdateOne) SetNillableEmail(s *string) *PatientUpdateOne
SetNillableEmail sets the email field if the given value is not nil.
func (*PatientUpdateOne) SetNillableFacebookID ¶
func (puo *PatientUpdateOne) SetNillableFacebookID(s *string) *PatientUpdateOne
SetNillableFacebookID sets the facebookID field if the given value is not nil.
func (*PatientUpdateOne) SetNillableFirstContact ¶
func (puo *PatientUpdateOne) SetNillableFirstContact(t *time.Time) *PatientUpdateOne
SetNillableFirstContact sets the first_contact field if the given value is not nil.
func (*PatientUpdateOne) SetNillablePassword ¶
func (puo *PatientUpdateOne) SetNillablePassword(s *string) *PatientUpdateOne
SetNillablePassword sets the password field if the given value is not nil.
func (*PatientUpdateOne) SetNillableWatsonID ¶
func (puo *PatientUpdateOne) SetNillableWatsonID(s *string) *PatientUpdateOne
SetNillableWatsonID sets the watsonID field if the given value is not nil.
func (*PatientUpdateOne) SetPassword ¶
func (puo *PatientUpdateOne) SetPassword(s string) *PatientUpdateOne
SetPassword sets the password field.
func (*PatientUpdateOne) SetPhone ¶
func (puo *PatientUpdateOne) SetPhone(s string) *PatientUpdateOne
SetPhone sets the phone field.
func (*PatientUpdateOne) SetSchedule ¶
func (puo *PatientUpdateOne) SetSchedule(s *Schedule) *PatientUpdateOne
SetSchedule sets the schedule edge to Schedule.
func (*PatientUpdateOne) SetScheduleID ¶
func (puo *PatientUpdateOne) SetScheduleID(id uuid.UUID) *PatientUpdateOne
SetScheduleID sets the schedule edge to Schedule by id.
func (*PatientUpdateOne) SetWatsonID ¶
func (puo *PatientUpdateOne) SetWatsonID(s string) *PatientUpdateOne
SetWatsonID sets the watsonID field.
type Schedule ¶
type Schedule struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ScheduleQuery when eager-loading is set. Edges ScheduleEdges `json:"edges"` // contains filtered or unexported fields }
Schedule is the model entity for the Schedule schema.
func (*Schedule) QueryPatient ¶
func (s *Schedule) QueryPatient() *PatientQuery
QueryPatient queries the patient edge of the Schedule.
func (*Schedule) QueryTasks ¶
QueryTasks queries the tasks edge of the Schedule.
func (*Schedule) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Schedule) Update ¶
func (s *Schedule) Update() *ScheduleUpdateOne
Update returns a builder for updating this Schedule. Note that, you need to call Schedule.Unwrap() before calling this method, if this Schedule was returned from a transaction, and the transaction was committed or rolled back.
type ScheduleClient ¶
type ScheduleClient struct {
// contains filtered or unexported fields
}
ScheduleClient is a client for the Schedule schema.
func NewScheduleClient ¶
func NewScheduleClient(c config) *ScheduleClient
NewScheduleClient returns a client for the Schedule from the given config.
func (*ScheduleClient) Create ¶
func (c *ScheduleClient) Create() *ScheduleCreate
Create returns a create builder for Schedule.
func (*ScheduleClient) Delete ¶
func (c *ScheduleClient) Delete() *ScheduleDelete
Delete returns a delete builder for Schedule.
func (*ScheduleClient) DeleteOne ¶
func (c *ScheduleClient) DeleteOne(s *Schedule) *ScheduleDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ScheduleClient) DeleteOneID ¶
func (c *ScheduleClient) DeleteOneID(id uuid.UUID) *ScheduleDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ScheduleClient) Query ¶
func (c *ScheduleClient) Query() *ScheduleQuery
Create returns a query builder for Schedule.
func (*ScheduleClient) QueryPatient ¶
func (c *ScheduleClient) QueryPatient(s *Schedule) *PatientQuery
QueryPatient queries the patient edge of a Schedule.
func (*ScheduleClient) QueryTasks ¶
func (c *ScheduleClient) QueryTasks(s *Schedule) *TaskQuery
QueryTasks queries the tasks edge of a Schedule.
func (*ScheduleClient) Update ¶
func (c *ScheduleClient) Update() *ScheduleUpdate
Update returns an update builder for Schedule.
func (*ScheduleClient) UpdateOne ¶
func (c *ScheduleClient) UpdateOne(s *Schedule) *ScheduleUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ScheduleClient) UpdateOneID ¶
func (c *ScheduleClient) UpdateOneID(id uuid.UUID) *ScheduleUpdateOne
UpdateOneID returns an update builder for the given id.
type ScheduleCreate ¶
type ScheduleCreate struct {
// contains filtered or unexported fields
}
ScheduleCreate is the builder for creating a Schedule entity.
func (*ScheduleCreate) AddTaskIDs ¶
func (sc *ScheduleCreate) AddTaskIDs(ids ...uuid.UUID) *ScheduleCreate
AddTaskIDs adds the tasks edge to Task by ids.
func (*ScheduleCreate) AddTasks ¶
func (sc *ScheduleCreate) AddTasks(t ...*Task) *ScheduleCreate
AddTasks adds the tasks edges to Task.
func (*ScheduleCreate) Save ¶
func (sc *ScheduleCreate) Save(ctx context.Context) (*Schedule, error)
Save creates the Schedule in the database.
func (*ScheduleCreate) SaveX ¶
func (sc *ScheduleCreate) SaveX(ctx context.Context) *Schedule
SaveX calls Save and panics if Save returns an error.
func (*ScheduleCreate) SetID ¶
func (sc *ScheduleCreate) SetID(u uuid.UUID) *ScheduleCreate
SetID sets the id field.
func (*ScheduleCreate) SetNillablePatientID ¶
func (sc *ScheduleCreate) SetNillablePatientID(id *uuid.UUID) *ScheduleCreate
SetNillablePatientID sets the patient edge to Patient by id if the given value is not nil.
func (*ScheduleCreate) SetPatient ¶
func (sc *ScheduleCreate) SetPatient(p *Patient) *ScheduleCreate
SetPatient sets the patient edge to Patient.
func (*ScheduleCreate) SetPatientID ¶
func (sc *ScheduleCreate) SetPatientID(id uuid.UUID) *ScheduleCreate
SetPatientID sets the patient edge to Patient by id.
type ScheduleDelete ¶
type ScheduleDelete struct {
// contains filtered or unexported fields
}
ScheduleDelete is the builder for deleting a Schedule entity.
func (*ScheduleDelete) Exec ¶
func (sd *ScheduleDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ScheduleDelete) ExecX ¶
func (sd *ScheduleDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ScheduleDelete) Where ¶
func (sd *ScheduleDelete) Where(ps ...predicate.Schedule) *ScheduleDelete
Where adds a new predicate to the delete builder.
type ScheduleDeleteOne ¶
type ScheduleDeleteOne struct {
// contains filtered or unexported fields
}
ScheduleDeleteOne is the builder for deleting a single Schedule entity.
func (*ScheduleDeleteOne) Exec ¶
func (sdo *ScheduleDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ScheduleDeleteOne) ExecX ¶
func (sdo *ScheduleDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ScheduleEdges ¶
type ScheduleEdges struct { // Tasks holds the value of the tasks edge. Tasks []*Task // Patient holds the value of the patient edge. Patient *Patient // contains filtered or unexported fields }
ScheduleEdges holds the relations/edges for other nodes in the graph.
func (ScheduleEdges) PatientOrErr ¶
func (e ScheduleEdges) PatientOrErr() (*Patient, error)
PatientOrErr returns the Patient value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (ScheduleEdges) TasksOrErr ¶
func (e ScheduleEdges) TasksOrErr() ([]*Task, error)
TasksOrErr returns the Tasks value or an error if the edge was not loaded in eager-loading.
type ScheduleGroupBy ¶
type ScheduleGroupBy struct {
// contains filtered or unexported fields
}
ScheduleGroupBy is the builder for group-by Schedule entities.
func (*ScheduleGroupBy) Aggregate ¶
func (sgb *ScheduleGroupBy) Aggregate(fns ...Aggregate) *ScheduleGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ScheduleGroupBy) Bools ¶
func (sgb *ScheduleGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*ScheduleGroupBy) BoolsX ¶
func (sgb *ScheduleGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ScheduleGroupBy) Float64s ¶
func (sgb *ScheduleGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*ScheduleGroupBy) Float64sX ¶
func (sgb *ScheduleGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ScheduleGroupBy) Ints ¶
func (sgb *ScheduleGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*ScheduleGroupBy) IntsX ¶
func (sgb *ScheduleGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ScheduleGroupBy) Scan ¶
func (sgb *ScheduleGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*ScheduleGroupBy) ScanX ¶
func (sgb *ScheduleGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type ScheduleQuery ¶
type ScheduleQuery struct {
// contains filtered or unexported fields
}
ScheduleQuery is the builder for querying Schedule entities.
func (*ScheduleQuery) All ¶
func (sq *ScheduleQuery) All(ctx context.Context) ([]*Schedule, error)
All executes the query and returns a list of Schedules.
func (*ScheduleQuery) AllX ¶
func (sq *ScheduleQuery) AllX(ctx context.Context) []*Schedule
AllX is like All, but panics if an error occurs.
func (*ScheduleQuery) Clone ¶
func (sq *ScheduleQuery) Clone() *ScheduleQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ScheduleQuery) Count ¶
func (sq *ScheduleQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ScheduleQuery) CountX ¶
func (sq *ScheduleQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ScheduleQuery) Exist ¶
func (sq *ScheduleQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ScheduleQuery) ExistX ¶
func (sq *ScheduleQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ScheduleQuery) First ¶
func (sq *ScheduleQuery) First(ctx context.Context) (*Schedule, error)
First returns the first Schedule entity in the query. Returns *NotFoundError when no schedule was found.
func (*ScheduleQuery) FirstID ¶
FirstID returns the first Schedule id in the query. Returns *NotFoundError when no id was found.
func (*ScheduleQuery) FirstX ¶
func (sq *ScheduleQuery) FirstX(ctx context.Context) *Schedule
FirstX is like First, but panics if an error occurs.
func (*ScheduleQuery) FirstXID ¶
func (sq *ScheduleQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*ScheduleQuery) GroupBy ¶
func (sq *ScheduleQuery) GroupBy(field string, fields ...string) *ScheduleGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
func (*ScheduleQuery) IDsX ¶
func (sq *ScheduleQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*ScheduleQuery) Limit ¶
func (sq *ScheduleQuery) Limit(limit int) *ScheduleQuery
Limit adds a limit step to the query.
func (*ScheduleQuery) Offset ¶
func (sq *ScheduleQuery) Offset(offset int) *ScheduleQuery
Offset adds an offset step to the query.
func (*ScheduleQuery) Only ¶
func (sq *ScheduleQuery) Only(ctx context.Context) (*Schedule, error)
Only returns the only Schedule entity in the query, returns an error if not exactly one entity was returned.
func (*ScheduleQuery) OnlyID ¶
OnlyID returns the only Schedule id in the query, returns an error if not exactly one id was returned.
func (*ScheduleQuery) OnlyX ¶
func (sq *ScheduleQuery) OnlyX(ctx context.Context) *Schedule
OnlyX is like Only, but panics if an error occurs.
func (*ScheduleQuery) OnlyXID ¶
func (sq *ScheduleQuery) OnlyXID(ctx context.Context) uuid.UUID
OnlyXID is like OnlyID, but panics if an error occurs.
func (*ScheduleQuery) Order ¶
func (sq *ScheduleQuery) Order(o ...Order) *ScheduleQuery
Order adds an order step to the query.
func (*ScheduleQuery) QueryPatient ¶
func (sq *ScheduleQuery) QueryPatient() *PatientQuery
QueryPatient chains the current query on the patient edge.
func (*ScheduleQuery) QueryTasks ¶
func (sq *ScheduleQuery) QueryTasks() *TaskQuery
QueryTasks chains the current query on the tasks edge.
func (*ScheduleQuery) Select ¶
func (sq *ScheduleQuery) Select(field string, fields ...string) *ScheduleSelect
Select one or more fields from the given query.
func (*ScheduleQuery) Where ¶
func (sq *ScheduleQuery) Where(ps ...predicate.Schedule) *ScheduleQuery
Where adds a new predicate for the builder.
func (*ScheduleQuery) WithPatient ¶
func (sq *ScheduleQuery) WithPatient(opts ...func(*PatientQuery)) *ScheduleQuery
WithPatient tells the query-builder to eager-loads the nodes that are connected to
the "patient" edge. The optional arguments used to configure the query builder of the edge.
func (*ScheduleQuery) WithTasks ¶
func (sq *ScheduleQuery) WithTasks(opts ...func(*TaskQuery)) *ScheduleQuery
WithTasks tells the query-builder to eager-loads the nodes that are connected to
the "tasks" edge. The optional arguments used to configure the query builder of the edge.
type ScheduleSelect ¶
type ScheduleSelect struct {
// contains filtered or unexported fields
}
ScheduleSelect is the builder for select fields of Schedule entities.
func (*ScheduleSelect) Bools ¶
func (ss *ScheduleSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*ScheduleSelect) BoolsX ¶
func (ss *ScheduleSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ScheduleSelect) Float64s ¶
func (ss *ScheduleSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*ScheduleSelect) Float64sX ¶
func (ss *ScheduleSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ScheduleSelect) Ints ¶
func (ss *ScheduleSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*ScheduleSelect) IntsX ¶
func (ss *ScheduleSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ScheduleSelect) Scan ¶
func (ss *ScheduleSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*ScheduleSelect) ScanX ¶
func (ss *ScheduleSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type ScheduleUpdate ¶
type ScheduleUpdate struct {
// contains filtered or unexported fields
}
ScheduleUpdate is the builder for updating Schedule entities.
func (*ScheduleUpdate) AddTaskIDs ¶
func (su *ScheduleUpdate) AddTaskIDs(ids ...uuid.UUID) *ScheduleUpdate
AddTaskIDs adds the tasks edge to Task by ids.
func (*ScheduleUpdate) AddTasks ¶
func (su *ScheduleUpdate) AddTasks(t ...*Task) *ScheduleUpdate
AddTasks adds the tasks edges to Task.
func (*ScheduleUpdate) ClearPatient ¶
func (su *ScheduleUpdate) ClearPatient() *ScheduleUpdate
ClearPatient clears the patient edge to Patient.
func (*ScheduleUpdate) Exec ¶
func (su *ScheduleUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ScheduleUpdate) ExecX ¶
func (su *ScheduleUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ScheduleUpdate) RemoveTaskIDs ¶
func (su *ScheduleUpdate) RemoveTaskIDs(ids ...uuid.UUID) *ScheduleUpdate
RemoveTaskIDs removes the tasks edge to Task by ids.
func (*ScheduleUpdate) RemoveTasks ¶
func (su *ScheduleUpdate) RemoveTasks(t ...*Task) *ScheduleUpdate
RemoveTasks removes tasks edges to Task.
func (*ScheduleUpdate) Save ¶
func (su *ScheduleUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*ScheduleUpdate) SaveX ¶
func (su *ScheduleUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ScheduleUpdate) SetNillablePatientID ¶
func (su *ScheduleUpdate) SetNillablePatientID(id *uuid.UUID) *ScheduleUpdate
SetNillablePatientID sets the patient edge to Patient by id if the given value is not nil.
func (*ScheduleUpdate) SetPatient ¶
func (su *ScheduleUpdate) SetPatient(p *Patient) *ScheduleUpdate
SetPatient sets the patient edge to Patient.
func (*ScheduleUpdate) SetPatientID ¶
func (su *ScheduleUpdate) SetPatientID(id uuid.UUID) *ScheduleUpdate
SetPatientID sets the patient edge to Patient by id.
func (*ScheduleUpdate) Where ¶
func (su *ScheduleUpdate) Where(ps ...predicate.Schedule) *ScheduleUpdate
Where adds a new predicate for the builder.
type ScheduleUpdateOne ¶
type ScheduleUpdateOne struct {
// contains filtered or unexported fields
}
ScheduleUpdateOne is the builder for updating a single Schedule entity.
func (*ScheduleUpdateOne) AddTaskIDs ¶
func (suo *ScheduleUpdateOne) AddTaskIDs(ids ...uuid.UUID) *ScheduleUpdateOne
AddTaskIDs adds the tasks edge to Task by ids.
func (*ScheduleUpdateOne) AddTasks ¶
func (suo *ScheduleUpdateOne) AddTasks(t ...*Task) *ScheduleUpdateOne
AddTasks adds the tasks edges to Task.
func (*ScheduleUpdateOne) ClearPatient ¶
func (suo *ScheduleUpdateOne) ClearPatient() *ScheduleUpdateOne
ClearPatient clears the patient edge to Patient.
func (*ScheduleUpdateOne) Exec ¶
func (suo *ScheduleUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ScheduleUpdateOne) ExecX ¶
func (suo *ScheduleUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ScheduleUpdateOne) RemoveTaskIDs ¶
func (suo *ScheduleUpdateOne) RemoveTaskIDs(ids ...uuid.UUID) *ScheduleUpdateOne
RemoveTaskIDs removes the tasks edge to Task by ids.
func (*ScheduleUpdateOne) RemoveTasks ¶
func (suo *ScheduleUpdateOne) RemoveTasks(t ...*Task) *ScheduleUpdateOne
RemoveTasks removes tasks edges to Task.
func (*ScheduleUpdateOne) Save ¶
func (suo *ScheduleUpdateOne) Save(ctx context.Context) (*Schedule, error)
Save executes the query and returns the updated entity.
func (*ScheduleUpdateOne) SaveX ¶
func (suo *ScheduleUpdateOne) SaveX(ctx context.Context) *Schedule
SaveX is like Save, but panics if an error occurs.
func (*ScheduleUpdateOne) SetNillablePatientID ¶
func (suo *ScheduleUpdateOne) SetNillablePatientID(id *uuid.UUID) *ScheduleUpdateOne
SetNillablePatientID sets the patient edge to Patient by id if the given value is not nil.
func (*ScheduleUpdateOne) SetPatient ¶
func (suo *ScheduleUpdateOne) SetPatient(p *Patient) *ScheduleUpdateOne
SetPatient sets the patient edge to Patient.
func (*ScheduleUpdateOne) SetPatientID ¶
func (suo *ScheduleUpdateOne) SetPatientID(id uuid.UUID) *ScheduleUpdateOne
SetPatientID sets the patient edge to Patient by id.
type Task ¶
type Task struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Title holds the value of the "title" field. Title string `json:"title,omitempty"` // StartAt holds the value of the "startAt" field. StartAt time.Time `json:"startAt,omitempty"` // EndsAt holds the value of the "endsAt" field. EndsAt time.Time `json:"endsAt,omitempty"` // Description holds the value of the "description" field. Description []string `json:"description,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TaskQuery when eager-loading is set. Edges TaskEdges `json:"edges"` // contains filtered or unexported fields }
Task is the model entity for the Task schema.
func (*Task) QueryResponses ¶
func (t *Task) QueryResponses() *TaskResponseQuery
QueryResponses queries the responses edge of the Task.
func (*Task) QueryResponsible ¶
func (t *Task) QueryResponsible() *DoctorQuery
QueryResponsible queries the responsible edge of the Task.
func (*Task) QuerySchedule ¶
func (t *Task) QuerySchedule() *ScheduleQuery
QuerySchedule queries the schedule edge of the Task.
func (*Task) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Task) Update ¶
func (t *Task) Update() *TaskUpdateOne
Update returns a builder for updating this Task. Note that, you need to call Task.Unwrap() before calling this method, if this Task was returned from a transaction, and the transaction was committed or rolled back.
type TaskClient ¶
type TaskClient struct {
// contains filtered or unexported fields
}
TaskClient is a client for the Task schema.
func NewTaskClient ¶
func NewTaskClient(c config) *TaskClient
NewTaskClient returns a client for the Task from the given config.
func (*TaskClient) Create ¶
func (c *TaskClient) Create() *TaskCreate
Create returns a create builder for Task.
func (*TaskClient) Delete ¶
func (c *TaskClient) Delete() *TaskDelete
Delete returns a delete builder for Task.
func (*TaskClient) DeleteOne ¶
func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*TaskClient) DeleteOneID ¶
func (c *TaskClient) DeleteOneID(id uuid.UUID) *TaskDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*TaskClient) Query ¶
func (c *TaskClient) Query() *TaskQuery
Create returns a query builder for Task.
func (*TaskClient) QueryResponses ¶
func (c *TaskClient) QueryResponses(t *Task) *TaskResponseQuery
QueryResponses queries the responses edge of a Task.
func (*TaskClient) QueryResponsible ¶
func (c *TaskClient) QueryResponsible(t *Task) *DoctorQuery
QueryResponsible queries the responsible edge of a Task.
func (*TaskClient) QuerySchedule ¶
func (c *TaskClient) QuerySchedule(t *Task) *ScheduleQuery
QuerySchedule queries the schedule edge of a Task.
func (*TaskClient) Update ¶
func (c *TaskClient) Update() *TaskUpdate
Update returns an update builder for Task.
func (*TaskClient) UpdateOne ¶
func (c *TaskClient) UpdateOne(t *Task) *TaskUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TaskClient) UpdateOneID ¶
func (c *TaskClient) UpdateOneID(id uuid.UUID) *TaskUpdateOne
UpdateOneID returns an update builder for the given id.
type TaskCreate ¶
type TaskCreate struct {
// contains filtered or unexported fields
}
TaskCreate is the builder for creating a Task entity.
func (*TaskCreate) AddResponseIDs ¶
func (tc *TaskCreate) AddResponseIDs(ids ...uuid.UUID) *TaskCreate
AddResponseIDs adds the responses edge to TaskResponse by ids.
func (*TaskCreate) AddResponses ¶
func (tc *TaskCreate) AddResponses(t ...*TaskResponse) *TaskCreate
AddResponses adds the responses edges to TaskResponse.
func (*TaskCreate) AddResponsible ¶
func (tc *TaskCreate) AddResponsible(d ...*Doctor) *TaskCreate
AddResponsible adds the responsible edges to Doctor.
func (*TaskCreate) AddResponsibleIDs ¶
func (tc *TaskCreate) AddResponsibleIDs(ids ...uuid.UUID) *TaskCreate
AddResponsibleIDs adds the responsible edge to Doctor by ids.
func (*TaskCreate) Save ¶
func (tc *TaskCreate) Save(ctx context.Context) (*Task, error)
Save creates the Task in the database.
func (*TaskCreate) SaveX ¶
func (tc *TaskCreate) SaveX(ctx context.Context) *Task
SaveX calls Save and panics if Save returns an error.
func (*TaskCreate) SetDescription ¶
func (tc *TaskCreate) SetDescription(s []string) *TaskCreate
SetDescription sets the description field.
func (*TaskCreate) SetEndsAt ¶
func (tc *TaskCreate) SetEndsAt(t time.Time) *TaskCreate
SetEndsAt sets the endsAt field.
func (*TaskCreate) SetID ¶
func (tc *TaskCreate) SetID(u uuid.UUID) *TaskCreate
SetID sets the id field.
func (*TaskCreate) SetNillableEndsAt ¶
func (tc *TaskCreate) SetNillableEndsAt(t *time.Time) *TaskCreate
SetNillableEndsAt sets the endsAt field if the given value is not nil.
func (*TaskCreate) SetNillableScheduleID ¶
func (tc *TaskCreate) SetNillableScheduleID(id *uuid.UUID) *TaskCreate
SetNillableScheduleID sets the schedule edge to Schedule by id if the given value is not nil.
func (*TaskCreate) SetNillableStartAt ¶
func (tc *TaskCreate) SetNillableStartAt(t *time.Time) *TaskCreate
SetNillableStartAt sets the startAt field if the given value is not nil.
func (*TaskCreate) SetSchedule ¶
func (tc *TaskCreate) SetSchedule(s *Schedule) *TaskCreate
SetSchedule sets the schedule edge to Schedule.
func (*TaskCreate) SetScheduleID ¶
func (tc *TaskCreate) SetScheduleID(id uuid.UUID) *TaskCreate
SetScheduleID sets the schedule edge to Schedule by id.
func (*TaskCreate) SetStartAt ¶
func (tc *TaskCreate) SetStartAt(t time.Time) *TaskCreate
SetStartAt sets the startAt field.
func (*TaskCreate) SetTitle ¶
func (tc *TaskCreate) SetTitle(s string) *TaskCreate
SetTitle sets the title field.
type TaskDelete ¶
type TaskDelete struct {
// contains filtered or unexported fields
}
TaskDelete is the builder for deleting a Task entity.
func (*TaskDelete) Exec ¶
func (td *TaskDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TaskDelete) ExecX ¶
func (td *TaskDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TaskDelete) Where ¶
func (td *TaskDelete) Where(ps ...predicate.Task) *TaskDelete
Where adds a new predicate to the delete builder.
type TaskDeleteOne ¶
type TaskDeleteOne struct {
// contains filtered or unexported fields
}
TaskDeleteOne is the builder for deleting a single Task entity.
func (*TaskDeleteOne) Exec ¶
func (tdo *TaskDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TaskDeleteOne) ExecX ¶
func (tdo *TaskDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TaskEdges ¶
type TaskEdges struct { // Responsible holds the value of the responsible edge. Responsible []*Doctor // Responses holds the value of the responses edge. Responses []*TaskResponse // Schedule holds the value of the schedule edge. Schedule *Schedule // contains filtered or unexported fields }
TaskEdges holds the relations/edges for other nodes in the graph.
func (TaskEdges) ResponsesOrErr ¶
func (e TaskEdges) ResponsesOrErr() ([]*TaskResponse, error)
ResponsesOrErr returns the Responses value or an error if the edge was not loaded in eager-loading.
func (TaskEdges) ResponsibleOrErr ¶
ResponsibleOrErr returns the Responsible value or an error if the edge was not loaded in eager-loading.
func (TaskEdges) ScheduleOrErr ¶
ScheduleOrErr returns the Schedule value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type TaskGroupBy ¶
type TaskGroupBy struct {
// contains filtered or unexported fields
}
TaskGroupBy is the builder for group-by Task entities.
func (*TaskGroupBy) Aggregate ¶
func (tgb *TaskGroupBy) Aggregate(fns ...Aggregate) *TaskGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TaskGroupBy) Bools ¶
func (tgb *TaskGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*TaskGroupBy) BoolsX ¶
func (tgb *TaskGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TaskGroupBy) Float64s ¶
func (tgb *TaskGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*TaskGroupBy) Float64sX ¶
func (tgb *TaskGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TaskGroupBy) Ints ¶
func (tgb *TaskGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*TaskGroupBy) IntsX ¶
func (tgb *TaskGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TaskGroupBy) Scan ¶
func (tgb *TaskGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*TaskGroupBy) ScanX ¶
func (tgb *TaskGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type TaskQuery ¶
type TaskQuery struct {
// contains filtered or unexported fields
}
TaskQuery is the builder for querying Task entities.
func (*TaskQuery) Clone ¶
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TaskQuery) First ¶
First returns the first Task entity in the query. Returns *NotFoundError when no task was found.
func (*TaskQuery) FirstID ¶
FirstID returns the first Task id in the query. Returns *NotFoundError when no id was found.
func (*TaskQuery) GroupBy ¶
func (tq *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Title string `json:"title,omitempty"` Count int `json:"count,omitempty"` } client.Task.Query(). GroupBy(task.FieldTitle). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TaskQuery) Only ¶
Only returns the only Task entity in the query, returns an error if not exactly one entity was returned.
func (*TaskQuery) OnlyID ¶
OnlyID returns the only Task id in the query, returns an error if not exactly one id was returned.
func (*TaskQuery) QueryResponses ¶
func (tq *TaskQuery) QueryResponses() *TaskResponseQuery
QueryResponses chains the current query on the responses edge.
func (*TaskQuery) QueryResponsible ¶
func (tq *TaskQuery) QueryResponsible() *DoctorQuery
QueryResponsible chains the current query on the responsible edge.
func (*TaskQuery) QuerySchedule ¶
func (tq *TaskQuery) QuerySchedule() *ScheduleQuery
QuerySchedule chains the current query on the schedule edge.
func (*TaskQuery) Select ¶
func (tq *TaskQuery) Select(field string, fields ...string) *TaskSelect
Select one or more fields from the given query.
Example:
var v []struct { Title string `json:"title,omitempty"` } client.Task.Query(). Select(task.FieldTitle). Scan(ctx, &v)
func (*TaskQuery) WithResponses ¶
func (tq *TaskQuery) WithResponses(opts ...func(*TaskResponseQuery)) *TaskQuery
WithResponses tells the query-builder to eager-loads the nodes that are connected to
the "responses" edge. The optional arguments used to configure the query builder of the edge.
func (*TaskQuery) WithResponsible ¶
func (tq *TaskQuery) WithResponsible(opts ...func(*DoctorQuery)) *TaskQuery
WithResponsible tells the query-builder to eager-loads the nodes that are connected to
the "responsible" edge. The optional arguments used to configure the query builder of the edge.
func (*TaskQuery) WithSchedule ¶
func (tq *TaskQuery) WithSchedule(opts ...func(*ScheduleQuery)) *TaskQuery
WithSchedule tells the query-builder to eager-loads the nodes that are connected to
the "schedule" edge. The optional arguments used to configure the query builder of the edge.
type TaskResponse ¶
type TaskResponse struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // At holds the value of the "at" field. At time.Time `json:"at,omitempty"` // LastChange holds the value of the "lastChange" field. LastChange time.Time `json:"lastChange,omitempty"` // Observations holds the value of the "observations" field. Observations []string `json:"observations,omitempty"` // Meta holds the value of the "meta" field. Meta []string `json:"meta,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TaskResponseQuery when eager-loading is set. Edges TaskResponseEdges `json:"edges"` // contains filtered or unexported fields }
TaskResponse is the model entity for the TaskResponse schema.
func (*TaskResponse) QueryAuthor ¶
func (tr *TaskResponse) QueryAuthor() *DoctorQuery
QueryAuthor queries the author edge of the TaskResponse.
func (*TaskResponse) QueryTask ¶
func (tr *TaskResponse) QueryTask() *TaskQuery
QueryTask queries the task edge of the TaskResponse.
func (*TaskResponse) String ¶
func (tr *TaskResponse) String() string
String implements the fmt.Stringer.
func (*TaskResponse) Unwrap ¶
func (tr *TaskResponse) Unwrap() *TaskResponse
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*TaskResponse) Update ¶
func (tr *TaskResponse) Update() *TaskResponseUpdateOne
Update returns a builder for updating this TaskResponse. Note that, you need to call TaskResponse.Unwrap() before calling this method, if this TaskResponse was returned from a transaction, and the transaction was committed or rolled back.
type TaskResponseClient ¶
type TaskResponseClient struct {
// contains filtered or unexported fields
}
TaskResponseClient is a client for the TaskResponse schema.
func NewTaskResponseClient ¶
func NewTaskResponseClient(c config) *TaskResponseClient
NewTaskResponseClient returns a client for the TaskResponse from the given config.
func (*TaskResponseClient) Create ¶
func (c *TaskResponseClient) Create() *TaskResponseCreate
Create returns a create builder for TaskResponse.
func (*TaskResponseClient) Delete ¶
func (c *TaskResponseClient) Delete() *TaskResponseDelete
Delete returns a delete builder for TaskResponse.
func (*TaskResponseClient) DeleteOne ¶
func (c *TaskResponseClient) DeleteOne(tr *TaskResponse) *TaskResponseDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*TaskResponseClient) DeleteOneID ¶
func (c *TaskResponseClient) DeleteOneID(id uuid.UUID) *TaskResponseDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*TaskResponseClient) Get ¶
func (c *TaskResponseClient) Get(ctx context.Context, id uuid.UUID) (*TaskResponse, error)
Get returns a TaskResponse entity by its id.
func (*TaskResponseClient) GetX ¶
func (c *TaskResponseClient) GetX(ctx context.Context, id uuid.UUID) *TaskResponse
GetX is like Get, but panics if an error occurs.
func (*TaskResponseClient) Query ¶
func (c *TaskResponseClient) Query() *TaskResponseQuery
Create returns a query builder for TaskResponse.
func (*TaskResponseClient) QueryAuthor ¶
func (c *TaskResponseClient) QueryAuthor(tr *TaskResponse) *DoctorQuery
QueryAuthor queries the author edge of a TaskResponse.
func (*TaskResponseClient) QueryTask ¶
func (c *TaskResponseClient) QueryTask(tr *TaskResponse) *TaskQuery
QueryTask queries the task edge of a TaskResponse.
func (*TaskResponseClient) Update ¶
func (c *TaskResponseClient) Update() *TaskResponseUpdate
Update returns an update builder for TaskResponse.
func (*TaskResponseClient) UpdateOne ¶
func (c *TaskResponseClient) UpdateOne(tr *TaskResponse) *TaskResponseUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TaskResponseClient) UpdateOneID ¶
func (c *TaskResponseClient) UpdateOneID(id uuid.UUID) *TaskResponseUpdateOne
UpdateOneID returns an update builder for the given id.
type TaskResponseCreate ¶
type TaskResponseCreate struct {
// contains filtered or unexported fields
}
TaskResponseCreate is the builder for creating a TaskResponse entity.
func (*TaskResponseCreate) Save ¶
func (trc *TaskResponseCreate) Save(ctx context.Context) (*TaskResponse, error)
Save creates the TaskResponse in the database.
func (*TaskResponseCreate) SaveX ¶
func (trc *TaskResponseCreate) SaveX(ctx context.Context) *TaskResponse
SaveX calls Save and panics if Save returns an error.
func (*TaskResponseCreate) SetAt ¶
func (trc *TaskResponseCreate) SetAt(t time.Time) *TaskResponseCreate
SetAt sets the at field.
func (*TaskResponseCreate) SetAuthor ¶
func (trc *TaskResponseCreate) SetAuthor(d *Doctor) *TaskResponseCreate
SetAuthor sets the author edge to Doctor.
func (*TaskResponseCreate) SetAuthorID ¶
func (trc *TaskResponseCreate) SetAuthorID(id uuid.UUID) *TaskResponseCreate
SetAuthorID sets the author edge to Doctor by id.
func (*TaskResponseCreate) SetID ¶
func (trc *TaskResponseCreate) SetID(u uuid.UUID) *TaskResponseCreate
SetID sets the id field.
func (*TaskResponseCreate) SetLastChange ¶
func (trc *TaskResponseCreate) SetLastChange(t time.Time) *TaskResponseCreate
SetLastChange sets the lastChange field.
func (*TaskResponseCreate) SetMeta ¶
func (trc *TaskResponseCreate) SetMeta(s []string) *TaskResponseCreate
SetMeta sets the meta field.
func (*TaskResponseCreate) SetNillableAt ¶
func (trc *TaskResponseCreate) SetNillableAt(t *time.Time) *TaskResponseCreate
SetNillableAt sets the at field if the given value is not nil.
func (*TaskResponseCreate) SetNillableLastChange ¶
func (trc *TaskResponseCreate) SetNillableLastChange(t *time.Time) *TaskResponseCreate
SetNillableLastChange sets the lastChange field if the given value is not nil.
func (*TaskResponseCreate) SetObservations ¶
func (trc *TaskResponseCreate) SetObservations(s []string) *TaskResponseCreate
SetObservations sets the observations field.
func (*TaskResponseCreate) SetTask ¶
func (trc *TaskResponseCreate) SetTask(t *Task) *TaskResponseCreate
SetTask sets the task edge to Task.
func (*TaskResponseCreate) SetTaskID ¶
func (trc *TaskResponseCreate) SetTaskID(id uuid.UUID) *TaskResponseCreate
SetTaskID sets the task edge to Task by id.
type TaskResponseDelete ¶
type TaskResponseDelete struct {
// contains filtered or unexported fields
}
TaskResponseDelete is the builder for deleting a TaskResponse entity.
func (*TaskResponseDelete) Exec ¶
func (trd *TaskResponseDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TaskResponseDelete) ExecX ¶
func (trd *TaskResponseDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TaskResponseDelete) Where ¶
func (trd *TaskResponseDelete) Where(ps ...predicate.TaskResponse) *TaskResponseDelete
Where adds a new predicate to the delete builder.
type TaskResponseDeleteOne ¶
type TaskResponseDeleteOne struct {
// contains filtered or unexported fields
}
TaskResponseDeleteOne is the builder for deleting a single TaskResponse entity.
func (*TaskResponseDeleteOne) Exec ¶
func (trdo *TaskResponseDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TaskResponseDeleteOne) ExecX ¶
func (trdo *TaskResponseDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TaskResponseEdges ¶
type TaskResponseEdges struct { // Author holds the value of the author edge. Author *Doctor // Task holds the value of the task edge. Task *Task // contains filtered or unexported fields }
TaskResponseEdges holds the relations/edges for other nodes in the graph.
func (TaskResponseEdges) AuthorOrErr ¶
func (e TaskResponseEdges) AuthorOrErr() (*Doctor, error)
AuthorOrErr returns the Author value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (TaskResponseEdges) TaskOrErr ¶
func (e TaskResponseEdges) TaskOrErr() (*Task, error)
TaskOrErr returns the Task value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type TaskResponseGroupBy ¶
type TaskResponseGroupBy struct {
// contains filtered or unexported fields
}
TaskResponseGroupBy is the builder for group-by TaskResponse entities.
func (*TaskResponseGroupBy) Aggregate ¶
func (trgb *TaskResponseGroupBy) Aggregate(fns ...Aggregate) *TaskResponseGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TaskResponseGroupBy) Bools ¶
func (trgb *TaskResponseGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*TaskResponseGroupBy) BoolsX ¶
func (trgb *TaskResponseGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TaskResponseGroupBy) Float64s ¶
func (trgb *TaskResponseGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*TaskResponseGroupBy) Float64sX ¶
func (trgb *TaskResponseGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TaskResponseGroupBy) Ints ¶
func (trgb *TaskResponseGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*TaskResponseGroupBy) IntsX ¶
func (trgb *TaskResponseGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TaskResponseGroupBy) Scan ¶
func (trgb *TaskResponseGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*TaskResponseGroupBy) ScanX ¶
func (trgb *TaskResponseGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type TaskResponseQuery ¶
type TaskResponseQuery struct {
// contains filtered or unexported fields
}
TaskResponseQuery is the builder for querying TaskResponse entities.
func (*TaskResponseQuery) All ¶
func (trq *TaskResponseQuery) All(ctx context.Context) ([]*TaskResponse, error)
All executes the query and returns a list of TaskResponses.
func (*TaskResponseQuery) AllX ¶
func (trq *TaskResponseQuery) AllX(ctx context.Context) []*TaskResponse
AllX is like All, but panics if an error occurs.
func (*TaskResponseQuery) Clone ¶
func (trq *TaskResponseQuery) Clone() *TaskResponseQuery
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TaskResponseQuery) Count ¶
func (trq *TaskResponseQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*TaskResponseQuery) CountX ¶
func (trq *TaskResponseQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*TaskResponseQuery) Exist ¶
func (trq *TaskResponseQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*TaskResponseQuery) ExistX ¶
func (trq *TaskResponseQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*TaskResponseQuery) First ¶
func (trq *TaskResponseQuery) First(ctx context.Context) (*TaskResponse, error)
First returns the first TaskResponse entity in the query. Returns *NotFoundError when no taskresponse was found.
func (*TaskResponseQuery) FirstID ¶
FirstID returns the first TaskResponse id in the query. Returns *NotFoundError when no id was found.
func (*TaskResponseQuery) FirstX ¶
func (trq *TaskResponseQuery) FirstX(ctx context.Context) *TaskResponse
FirstX is like First, but panics if an error occurs.
func (*TaskResponseQuery) FirstXID ¶
func (trq *TaskResponseQuery) FirstXID(ctx context.Context) uuid.UUID
FirstXID is like FirstID, but panics if an error occurs.
func (*TaskResponseQuery) GroupBy ¶
func (trq *TaskResponseQuery) GroupBy(field string, fields ...string) *TaskResponseGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { At time.Time `json:"at,omitempty"` Count int `json:"count,omitempty"` } client.TaskResponse.Query(). GroupBy(taskresponse.FieldAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TaskResponseQuery) IDsX ¶
func (trq *TaskResponseQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*TaskResponseQuery) Limit ¶
func (trq *TaskResponseQuery) Limit(limit int) *TaskResponseQuery
Limit adds a limit step to the query.
func (*TaskResponseQuery) Offset ¶
func (trq *TaskResponseQuery) Offset(offset int) *TaskResponseQuery
Offset adds an offset step to the query.
func (*TaskResponseQuery) Only ¶
func (trq *TaskResponseQuery) Only(ctx context.Context) (*TaskResponse, error)
Only returns the only TaskResponse entity in the query, returns an error if not exactly one entity was returned.
func (*TaskResponseQuery) OnlyID ¶
OnlyID returns the only TaskResponse id in the query, returns an error if not exactly one id was returned.
func (*TaskResponseQuery) OnlyX ¶
func (trq *TaskResponseQuery) OnlyX(ctx context.Context) *TaskResponse
OnlyX is like Only, but panics if an error occurs.
func (*TaskResponseQuery) OnlyXID ¶
func (trq *TaskResponseQuery) OnlyXID(ctx context.Context) uuid.UUID
OnlyXID is like OnlyID, but panics if an error occurs.
func (*TaskResponseQuery) Order ¶
func (trq *TaskResponseQuery) Order(o ...Order) *TaskResponseQuery
Order adds an order step to the query.
func (*TaskResponseQuery) QueryAuthor ¶
func (trq *TaskResponseQuery) QueryAuthor() *DoctorQuery
QueryAuthor chains the current query on the author edge.
func (*TaskResponseQuery) QueryTask ¶
func (trq *TaskResponseQuery) QueryTask() *TaskQuery
QueryTask chains the current query on the task edge.
func (*TaskResponseQuery) Select ¶
func (trq *TaskResponseQuery) Select(field string, fields ...string) *TaskResponseSelect
Select one or more fields from the given query.
Example:
var v []struct { At time.Time `json:"at,omitempty"` } client.TaskResponse.Query(). Select(taskresponse.FieldAt). Scan(ctx, &v)
func (*TaskResponseQuery) Where ¶
func (trq *TaskResponseQuery) Where(ps ...predicate.TaskResponse) *TaskResponseQuery
Where adds a new predicate for the builder.
func (*TaskResponseQuery) WithAuthor ¶
func (trq *TaskResponseQuery) WithAuthor(opts ...func(*DoctorQuery)) *TaskResponseQuery
WithAuthor tells the query-builder to eager-loads the nodes that are connected to
the "author" edge. The optional arguments used to configure the query builder of the edge.
func (*TaskResponseQuery) WithTask ¶
func (trq *TaskResponseQuery) WithTask(opts ...func(*TaskQuery)) *TaskResponseQuery
WithTask tells the query-builder to eager-loads the nodes that are connected to
the "task" edge. The optional arguments used to configure the query builder of the edge.
type TaskResponseSelect ¶
type TaskResponseSelect struct {
// contains filtered or unexported fields
}
TaskResponseSelect is the builder for select fields of TaskResponse entities.
func (*TaskResponseSelect) Bools ¶
func (trs *TaskResponseSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*TaskResponseSelect) BoolsX ¶
func (trs *TaskResponseSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TaskResponseSelect) Float64s ¶
func (trs *TaskResponseSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*TaskResponseSelect) Float64sX ¶
func (trs *TaskResponseSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TaskResponseSelect) Ints ¶
func (trs *TaskResponseSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*TaskResponseSelect) IntsX ¶
func (trs *TaskResponseSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TaskResponseSelect) Scan ¶
func (trs *TaskResponseSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*TaskResponseSelect) ScanX ¶
func (trs *TaskResponseSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type TaskResponseUpdate ¶
type TaskResponseUpdate struct {
// contains filtered or unexported fields
}
TaskResponseUpdate is the builder for updating TaskResponse entities.
func (*TaskResponseUpdate) ClearAuthor ¶
func (tru *TaskResponseUpdate) ClearAuthor() *TaskResponseUpdate
ClearAuthor clears the author edge to Doctor.
func (*TaskResponseUpdate) ClearMeta ¶
func (tru *TaskResponseUpdate) ClearMeta() *TaskResponseUpdate
ClearMeta clears the value of meta.
func (*TaskResponseUpdate) ClearTask ¶
func (tru *TaskResponseUpdate) ClearTask() *TaskResponseUpdate
ClearTask clears the task edge to Task.
func (*TaskResponseUpdate) Exec ¶
func (tru *TaskResponseUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskResponseUpdate) ExecX ¶
func (tru *TaskResponseUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskResponseUpdate) Save ¶
func (tru *TaskResponseUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*TaskResponseUpdate) SaveX ¶
func (tru *TaskResponseUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TaskResponseUpdate) SetAt ¶
func (tru *TaskResponseUpdate) SetAt(t time.Time) *TaskResponseUpdate
SetAt sets the at field.
func (*TaskResponseUpdate) SetAuthor ¶
func (tru *TaskResponseUpdate) SetAuthor(d *Doctor) *TaskResponseUpdate
SetAuthor sets the author edge to Doctor.
func (*TaskResponseUpdate) SetAuthorID ¶
func (tru *TaskResponseUpdate) SetAuthorID(id uuid.UUID) *TaskResponseUpdate
SetAuthorID sets the author edge to Doctor by id.
func (*TaskResponseUpdate) SetLastChange ¶
func (tru *TaskResponseUpdate) SetLastChange(t time.Time) *TaskResponseUpdate
SetLastChange sets the lastChange field.
func (*TaskResponseUpdate) SetMeta ¶
func (tru *TaskResponseUpdate) SetMeta(s []string) *TaskResponseUpdate
SetMeta sets the meta field.
func (*TaskResponseUpdate) SetNillableAt ¶
func (tru *TaskResponseUpdate) SetNillableAt(t *time.Time) *TaskResponseUpdate
SetNillableAt sets the at field if the given value is not nil.
func (*TaskResponseUpdate) SetNillableLastChange ¶
func (tru *TaskResponseUpdate) SetNillableLastChange(t *time.Time) *TaskResponseUpdate
SetNillableLastChange sets the lastChange field if the given value is not nil.
func (*TaskResponseUpdate) SetObservations ¶
func (tru *TaskResponseUpdate) SetObservations(s []string) *TaskResponseUpdate
SetObservations sets the observations field.
func (*TaskResponseUpdate) SetTask ¶
func (tru *TaskResponseUpdate) SetTask(t *Task) *TaskResponseUpdate
SetTask sets the task edge to Task.
func (*TaskResponseUpdate) SetTaskID ¶
func (tru *TaskResponseUpdate) SetTaskID(id uuid.UUID) *TaskResponseUpdate
SetTaskID sets the task edge to Task by id.
func (*TaskResponseUpdate) Where ¶
func (tru *TaskResponseUpdate) Where(ps ...predicate.TaskResponse) *TaskResponseUpdate
Where adds a new predicate for the builder.
type TaskResponseUpdateOne ¶
type TaskResponseUpdateOne struct {
// contains filtered or unexported fields
}
TaskResponseUpdateOne is the builder for updating a single TaskResponse entity.
func (*TaskResponseUpdateOne) ClearAuthor ¶
func (truo *TaskResponseUpdateOne) ClearAuthor() *TaskResponseUpdateOne
ClearAuthor clears the author edge to Doctor.
func (*TaskResponseUpdateOne) ClearMeta ¶
func (truo *TaskResponseUpdateOne) ClearMeta() *TaskResponseUpdateOne
ClearMeta clears the value of meta.
func (*TaskResponseUpdateOne) ClearTask ¶
func (truo *TaskResponseUpdateOne) ClearTask() *TaskResponseUpdateOne
ClearTask clears the task edge to Task.
func (*TaskResponseUpdateOne) Exec ¶
func (truo *TaskResponseUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TaskResponseUpdateOne) ExecX ¶
func (truo *TaskResponseUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskResponseUpdateOne) Save ¶
func (truo *TaskResponseUpdateOne) Save(ctx context.Context) (*TaskResponse, error)
Save executes the query and returns the updated entity.
func (*TaskResponseUpdateOne) SaveX ¶
func (truo *TaskResponseUpdateOne) SaveX(ctx context.Context) *TaskResponse
SaveX is like Save, but panics if an error occurs.
func (*TaskResponseUpdateOne) SetAt ¶
func (truo *TaskResponseUpdateOne) SetAt(t time.Time) *TaskResponseUpdateOne
SetAt sets the at field.
func (*TaskResponseUpdateOne) SetAuthor ¶
func (truo *TaskResponseUpdateOne) SetAuthor(d *Doctor) *TaskResponseUpdateOne
SetAuthor sets the author edge to Doctor.
func (*TaskResponseUpdateOne) SetAuthorID ¶
func (truo *TaskResponseUpdateOne) SetAuthorID(id uuid.UUID) *TaskResponseUpdateOne
SetAuthorID sets the author edge to Doctor by id.
func (*TaskResponseUpdateOne) SetLastChange ¶
func (truo *TaskResponseUpdateOne) SetLastChange(t time.Time) *TaskResponseUpdateOne
SetLastChange sets the lastChange field.
func (*TaskResponseUpdateOne) SetMeta ¶
func (truo *TaskResponseUpdateOne) SetMeta(s []string) *TaskResponseUpdateOne
SetMeta sets the meta field.
func (*TaskResponseUpdateOne) SetNillableAt ¶
func (truo *TaskResponseUpdateOne) SetNillableAt(t *time.Time) *TaskResponseUpdateOne
SetNillableAt sets the at field if the given value is not nil.
func (*TaskResponseUpdateOne) SetNillableLastChange ¶
func (truo *TaskResponseUpdateOne) SetNillableLastChange(t *time.Time) *TaskResponseUpdateOne
SetNillableLastChange sets the lastChange field if the given value is not nil.
func (*TaskResponseUpdateOne) SetObservations ¶
func (truo *TaskResponseUpdateOne) SetObservations(s []string) *TaskResponseUpdateOne
SetObservations sets the observations field.
func (*TaskResponseUpdateOne) SetTask ¶
func (truo *TaskResponseUpdateOne) SetTask(t *Task) *TaskResponseUpdateOne
SetTask sets the task edge to Task.
func (*TaskResponseUpdateOne) SetTaskID ¶
func (truo *TaskResponseUpdateOne) SetTaskID(id uuid.UUID) *TaskResponseUpdateOne
SetTaskID sets the task edge to Task by id.
type TaskResponses ¶
type TaskResponses []*TaskResponse
TaskResponses is a parsable slice of TaskResponse.
type TaskSelect ¶
type TaskSelect struct {
// contains filtered or unexported fields
}
TaskSelect is the builder for select fields of Task entities.
func (*TaskSelect) Bools ¶
func (ts *TaskSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*TaskSelect) BoolsX ¶
func (ts *TaskSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TaskSelect) Float64s ¶
func (ts *TaskSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*TaskSelect) Float64sX ¶
func (ts *TaskSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TaskSelect) Ints ¶
func (ts *TaskSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*TaskSelect) IntsX ¶
func (ts *TaskSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TaskSelect) Scan ¶
func (ts *TaskSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*TaskSelect) ScanX ¶
func (ts *TaskSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type TaskUpdate ¶
type TaskUpdate struct {
// contains filtered or unexported fields
}
TaskUpdate is the builder for updating Task entities.
func (*TaskUpdate) AddResponseIDs ¶
func (tu *TaskUpdate) AddResponseIDs(ids ...uuid.UUID) *TaskUpdate
AddResponseIDs adds the responses edge to TaskResponse by ids.
func (*TaskUpdate) AddResponses ¶
func (tu *TaskUpdate) AddResponses(t ...*TaskResponse) *TaskUpdate
AddResponses adds the responses edges to TaskResponse.
func (*TaskUpdate) AddResponsible ¶
func (tu *TaskUpdate) AddResponsible(d ...*Doctor) *TaskUpdate
AddResponsible adds the responsible edges to Doctor.
func (*TaskUpdate) AddResponsibleIDs ¶
func (tu *TaskUpdate) AddResponsibleIDs(ids ...uuid.UUID) *TaskUpdate
AddResponsibleIDs adds the responsible edge to Doctor by ids.
func (*TaskUpdate) ClearDescription ¶
func (tu *TaskUpdate) ClearDescription() *TaskUpdate
ClearDescription clears the value of description.
func (*TaskUpdate) ClearSchedule ¶
func (tu *TaskUpdate) ClearSchedule() *TaskUpdate
ClearSchedule clears the schedule edge to Schedule.
func (*TaskUpdate) Exec ¶
func (tu *TaskUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskUpdate) ExecX ¶
func (tu *TaskUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpdate) RemoveResponseIDs ¶
func (tu *TaskUpdate) RemoveResponseIDs(ids ...uuid.UUID) *TaskUpdate
RemoveResponseIDs removes the responses edge to TaskResponse by ids.
func (*TaskUpdate) RemoveResponses ¶
func (tu *TaskUpdate) RemoveResponses(t ...*TaskResponse) *TaskUpdate
RemoveResponses removes responses edges to TaskResponse.
func (*TaskUpdate) RemoveResponsible ¶
func (tu *TaskUpdate) RemoveResponsible(d ...*Doctor) *TaskUpdate
RemoveResponsible removes responsible edges to Doctor.
func (*TaskUpdate) RemoveResponsibleIDs ¶
func (tu *TaskUpdate) RemoveResponsibleIDs(ids ...uuid.UUID) *TaskUpdate
RemoveResponsibleIDs removes the responsible edge to Doctor by ids.
func (*TaskUpdate) Save ¶
func (tu *TaskUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*TaskUpdate) SaveX ¶
func (tu *TaskUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TaskUpdate) SetDescription ¶
func (tu *TaskUpdate) SetDescription(s []string) *TaskUpdate
SetDescription sets the description field.
func (*TaskUpdate) SetEndsAt ¶
func (tu *TaskUpdate) SetEndsAt(t time.Time) *TaskUpdate
SetEndsAt sets the endsAt field.
func (*TaskUpdate) SetNillableEndsAt ¶
func (tu *TaskUpdate) SetNillableEndsAt(t *time.Time) *TaskUpdate
SetNillableEndsAt sets the endsAt field if the given value is not nil.
func (*TaskUpdate) SetNillableScheduleID ¶
func (tu *TaskUpdate) SetNillableScheduleID(id *uuid.UUID) *TaskUpdate
SetNillableScheduleID sets the schedule edge to Schedule by id if the given value is not nil.
func (*TaskUpdate) SetNillableStartAt ¶
func (tu *TaskUpdate) SetNillableStartAt(t *time.Time) *TaskUpdate
SetNillableStartAt sets the startAt field if the given value is not nil.
func (*TaskUpdate) SetSchedule ¶
func (tu *TaskUpdate) SetSchedule(s *Schedule) *TaskUpdate
SetSchedule sets the schedule edge to Schedule.
func (*TaskUpdate) SetScheduleID ¶
func (tu *TaskUpdate) SetScheduleID(id uuid.UUID) *TaskUpdate
SetScheduleID sets the schedule edge to Schedule by id.
func (*TaskUpdate) SetStartAt ¶
func (tu *TaskUpdate) SetStartAt(t time.Time) *TaskUpdate
SetStartAt sets the startAt field.
func (*TaskUpdate) Where ¶
func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate
Where adds a new predicate for the builder.
type TaskUpdateOne ¶
type TaskUpdateOne struct {
// contains filtered or unexported fields
}
TaskUpdateOne is the builder for updating a single Task entity.
func (*TaskUpdateOne) AddResponseIDs ¶
func (tuo *TaskUpdateOne) AddResponseIDs(ids ...uuid.UUID) *TaskUpdateOne
AddResponseIDs adds the responses edge to TaskResponse by ids.
func (*TaskUpdateOne) AddResponses ¶
func (tuo *TaskUpdateOne) AddResponses(t ...*TaskResponse) *TaskUpdateOne
AddResponses adds the responses edges to TaskResponse.
func (*TaskUpdateOne) AddResponsible ¶
func (tuo *TaskUpdateOne) AddResponsible(d ...*Doctor) *TaskUpdateOne
AddResponsible adds the responsible edges to Doctor.
func (*TaskUpdateOne) AddResponsibleIDs ¶
func (tuo *TaskUpdateOne) AddResponsibleIDs(ids ...uuid.UUID) *TaskUpdateOne
AddResponsibleIDs adds the responsible edge to Doctor by ids.
func (*TaskUpdateOne) ClearDescription ¶
func (tuo *TaskUpdateOne) ClearDescription() *TaskUpdateOne
ClearDescription clears the value of description.
func (*TaskUpdateOne) ClearSchedule ¶
func (tuo *TaskUpdateOne) ClearSchedule() *TaskUpdateOne
ClearSchedule clears the schedule edge to Schedule.
func (*TaskUpdateOne) Exec ¶
func (tuo *TaskUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TaskUpdateOne) ExecX ¶
func (tuo *TaskUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpdateOne) RemoveResponseIDs ¶
func (tuo *TaskUpdateOne) RemoveResponseIDs(ids ...uuid.UUID) *TaskUpdateOne
RemoveResponseIDs removes the responses edge to TaskResponse by ids.
func (*TaskUpdateOne) RemoveResponses ¶
func (tuo *TaskUpdateOne) RemoveResponses(t ...*TaskResponse) *TaskUpdateOne
RemoveResponses removes responses edges to TaskResponse.
func (*TaskUpdateOne) RemoveResponsible ¶
func (tuo *TaskUpdateOne) RemoveResponsible(d ...*Doctor) *TaskUpdateOne
RemoveResponsible removes responsible edges to Doctor.
func (*TaskUpdateOne) RemoveResponsibleIDs ¶
func (tuo *TaskUpdateOne) RemoveResponsibleIDs(ids ...uuid.UUID) *TaskUpdateOne
RemoveResponsibleIDs removes the responsible edge to Doctor by ids.
func (*TaskUpdateOne) Save ¶
func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error)
Save executes the query and returns the updated entity.
func (*TaskUpdateOne) SaveX ¶
func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task
SaveX is like Save, but panics if an error occurs.
func (*TaskUpdateOne) SetDescription ¶
func (tuo *TaskUpdateOne) SetDescription(s []string) *TaskUpdateOne
SetDescription sets the description field.
func (*TaskUpdateOne) SetEndsAt ¶
func (tuo *TaskUpdateOne) SetEndsAt(t time.Time) *TaskUpdateOne
SetEndsAt sets the endsAt field.
func (*TaskUpdateOne) SetNillableEndsAt ¶
func (tuo *TaskUpdateOne) SetNillableEndsAt(t *time.Time) *TaskUpdateOne
SetNillableEndsAt sets the endsAt field if the given value is not nil.
func (*TaskUpdateOne) SetNillableScheduleID ¶
func (tuo *TaskUpdateOne) SetNillableScheduleID(id *uuid.UUID) *TaskUpdateOne
SetNillableScheduleID sets the schedule edge to Schedule by id if the given value is not nil.
func (*TaskUpdateOne) SetNillableStartAt ¶
func (tuo *TaskUpdateOne) SetNillableStartAt(t *time.Time) *TaskUpdateOne
SetNillableStartAt sets the startAt field if the given value is not nil.
func (*TaskUpdateOne) SetSchedule ¶
func (tuo *TaskUpdateOne) SetSchedule(s *Schedule) *TaskUpdateOne
SetSchedule sets the schedule edge to Schedule.
func (*TaskUpdateOne) SetScheduleID ¶
func (tuo *TaskUpdateOne) SetScheduleID(id uuid.UUID) *TaskUpdateOne
SetScheduleID sets the schedule edge to Schedule by id.
func (*TaskUpdateOne) SetStartAt ¶
func (tuo *TaskUpdateOne) SetStartAt(t time.Time) *TaskUpdateOne
SetStartAt sets the startAt field.
type Test ¶
type Test struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Notes holds the value of the "notes" field. Notes []string `json:"notes,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TestQuery when eager-loading is set. Edges TestEdges `json:"edges"` // contains filtered or unexported fields }
Test is the model entity for the Test schema.
func (*Test) QueryClinical ¶
func (t *Test) QueryClinical() *ClinicalResultsQuery
QueryClinical queries the clinical edge of the Test.
func (*Test) QueryEpidemiologic ¶
func (t *Test) QueryEpidemiologic() *EpidemiologicResultsQuery
QueryEpidemiologic queries the epidemiologic edge of the Test.
func (*Test) QueryHistory ¶
func (t *Test) QueryHistory() *HistoryQuery
QueryHistory queries the history edge of the Test.
func (*Test) Unwrap ¶
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
func (*Test) Update ¶
func (t *Test) Update() *TestUpdateOne
Update returns a builder for updating this Test. Note that, you need to call Test.Unwrap() before calling this method, if this Test was returned from a transaction, and the transaction was committed or rolled back.
type TestClient ¶
type TestClient struct {
// contains filtered or unexported fields
}
TestClient is a client for the Test schema.
func NewTestClient ¶
func NewTestClient(c config) *TestClient
NewTestClient returns a client for the Test from the given config.
func (*TestClient) Create ¶
func (c *TestClient) Create() *TestCreate
Create returns a create builder for Test.
func (*TestClient) Delete ¶
func (c *TestClient) Delete() *TestDelete
Delete returns a delete builder for Test.
func (*TestClient) DeleteOne ¶
func (c *TestClient) DeleteOne(t *Test) *TestDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*TestClient) DeleteOneID ¶
func (c *TestClient) DeleteOneID(id uuid.UUID) *TestDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*TestClient) Query ¶
func (c *TestClient) Query() *TestQuery
Create returns a query builder for Test.
func (*TestClient) QueryClinical ¶
func (c *TestClient) QueryClinical(t *Test) *ClinicalResultsQuery
QueryClinical queries the clinical edge of a Test.
func (*TestClient) QueryEpidemiologic ¶
func (c *TestClient) QueryEpidemiologic(t *Test) *EpidemiologicResultsQuery
QueryEpidemiologic queries the epidemiologic edge of a Test.
func (*TestClient) QueryHistory ¶
func (c *TestClient) QueryHistory(t *Test) *HistoryQuery
QueryHistory queries the history edge of a Test.
func (*TestClient) Update ¶
func (c *TestClient) Update() *TestUpdate
Update returns an update builder for Test.
func (*TestClient) UpdateOne ¶
func (c *TestClient) UpdateOne(t *Test) *TestUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TestClient) UpdateOneID ¶
func (c *TestClient) UpdateOneID(id uuid.UUID) *TestUpdateOne
UpdateOneID returns an update builder for the given id.
type TestCreate ¶
type TestCreate struct {
// contains filtered or unexported fields
}
TestCreate is the builder for creating a Test entity.
func (*TestCreate) AddClinical ¶
func (tc *TestCreate) AddClinical(c ...*ClinicalResults) *TestCreate
AddClinical adds the clinical edges to ClinicalResults.
func (*TestCreate) AddClinicalIDs ¶
func (tc *TestCreate) AddClinicalIDs(ids ...uuid.UUID) *TestCreate
AddClinicalIDs adds the clinical edge to ClinicalResults by ids.
func (*TestCreate) AddEpidemiologic ¶
func (tc *TestCreate) AddEpidemiologic(e ...*EpidemiologicResults) *TestCreate
AddEpidemiologic adds the epidemiologic edges to EpidemiologicResults.
func (*TestCreate) AddEpidemiologicIDs ¶
func (tc *TestCreate) AddEpidemiologicIDs(ids ...uuid.UUID) *TestCreate
AddEpidemiologicIDs adds the epidemiologic edge to EpidemiologicResults by ids.
func (*TestCreate) Save ¶
func (tc *TestCreate) Save(ctx context.Context) (*Test, error)
Save creates the Test in the database.
func (*TestCreate) SaveX ¶
func (tc *TestCreate) SaveX(ctx context.Context) *Test
SaveX calls Save and panics if Save returns an error.
func (*TestCreate) SetHistory ¶
func (tc *TestCreate) SetHistory(h *History) *TestCreate
SetHistory sets the history edge to History.
func (*TestCreate) SetHistoryID ¶
func (tc *TestCreate) SetHistoryID(id uuid.UUID) *TestCreate
SetHistoryID sets the history edge to History by id.
func (*TestCreate) SetID ¶
func (tc *TestCreate) SetID(u uuid.UUID) *TestCreate
SetID sets the id field.
func (*TestCreate) SetNillableHistoryID ¶
func (tc *TestCreate) SetNillableHistoryID(id *uuid.UUID) *TestCreate
SetNillableHistoryID sets the history edge to History by id if the given value is not nil.
func (*TestCreate) SetNotes ¶
func (tc *TestCreate) SetNotes(s []string) *TestCreate
SetNotes sets the notes field.
type TestDelete ¶
type TestDelete struct {
// contains filtered or unexported fields
}
TestDelete is the builder for deleting a Test entity.
func (*TestDelete) Exec ¶
func (td *TestDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TestDelete) ExecX ¶
func (td *TestDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TestDelete) Where ¶
func (td *TestDelete) Where(ps ...predicate.Test) *TestDelete
Where adds a new predicate to the delete builder.
type TestDeleteOne ¶
type TestDeleteOne struct {
// contains filtered or unexported fields
}
TestDeleteOne is the builder for deleting a single Test entity.
func (*TestDeleteOne) Exec ¶
func (tdo *TestDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TestDeleteOne) ExecX ¶
func (tdo *TestDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TestEdges ¶
type TestEdges struct { // History holds the value of the history edge. History *History // Clinical holds the value of the clinical edge. Clinical []*ClinicalResults // Epidemiologic holds the value of the epidemiologic edge. Epidemiologic []*EpidemiologicResults // contains filtered or unexported fields }
TestEdges holds the relations/edges for other nodes in the graph.
func (TestEdges) ClinicalOrErr ¶
func (e TestEdges) ClinicalOrErr() ([]*ClinicalResults, error)
ClinicalOrErr returns the Clinical value or an error if the edge was not loaded in eager-loading.
func (TestEdges) EpidemiologicOrErr ¶
func (e TestEdges) EpidemiologicOrErr() ([]*EpidemiologicResults, error)
EpidemiologicOrErr returns the Epidemiologic value or an error if the edge was not loaded in eager-loading.
func (TestEdges) HistoryOrErr ¶
HistoryOrErr returns the History value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type TestGroupBy ¶
type TestGroupBy struct {
// contains filtered or unexported fields
}
TestGroupBy is the builder for group-by Test entities.
func (*TestGroupBy) Aggregate ¶
func (tgb *TestGroupBy) Aggregate(fns ...Aggregate) *TestGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TestGroupBy) Bools ¶
func (tgb *TestGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when querying group-by with one field.
func (*TestGroupBy) BoolsX ¶
func (tgb *TestGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TestGroupBy) Float64s ¶
func (tgb *TestGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when querying group-by with one field.
func (*TestGroupBy) Float64sX ¶
func (tgb *TestGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TestGroupBy) Ints ¶
func (tgb *TestGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when querying group-by with one field.
func (*TestGroupBy) IntsX ¶
func (tgb *TestGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TestGroupBy) Scan ¶
func (tgb *TestGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scan the result into the given value.
func (*TestGroupBy) ScanX ¶
func (tgb *TestGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type TestQuery ¶
type TestQuery struct {
// contains filtered or unexported fields
}
TestQuery is the builder for querying Test entities.
func (*TestQuery) Clone ¶
Clone returns a duplicate of the query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TestQuery) First ¶
First returns the first Test entity in the query. Returns *NotFoundError when no test was found.
func (*TestQuery) FirstID ¶
FirstID returns the first Test id in the query. Returns *NotFoundError when no id was found.
func (*TestQuery) GroupBy ¶
func (tq *TestQuery) GroupBy(field string, fields ...string) *TestGroupBy
GroupBy used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Notes []string `json:"notes,omitempty"` Count int `json:"count,omitempty"` } client.Test.Query(). GroupBy(test.FieldNotes). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TestQuery) Only ¶
Only returns the only Test entity in the query, returns an error if not exactly one entity was returned.
func (*TestQuery) OnlyID ¶
OnlyID returns the only Test id in the query, returns an error if not exactly one id was returned.
func (*TestQuery) QueryClinical ¶
func (tq *TestQuery) QueryClinical() *ClinicalResultsQuery
QueryClinical chains the current query on the clinical edge.
func (*TestQuery) QueryEpidemiologic ¶
func (tq *TestQuery) QueryEpidemiologic() *EpidemiologicResultsQuery
QueryEpidemiologic chains the current query on the epidemiologic edge.
func (*TestQuery) QueryHistory ¶
func (tq *TestQuery) QueryHistory() *HistoryQuery
QueryHistory chains the current query on the history edge.
func (*TestQuery) Select ¶
func (tq *TestQuery) Select(field string, fields ...string) *TestSelect
Select one or more fields from the given query.
Example:
var v []struct { Notes []string `json:"notes,omitempty"` } client.Test.Query(). Select(test.FieldNotes). Scan(ctx, &v)
func (*TestQuery) WithClinical ¶
func (tq *TestQuery) WithClinical(opts ...func(*ClinicalResultsQuery)) *TestQuery
WithClinical tells the query-builder to eager-loads the nodes that are connected to
the "clinical" edge. The optional arguments used to configure the query builder of the edge.
func (*TestQuery) WithEpidemiologic ¶
func (tq *TestQuery) WithEpidemiologic(opts ...func(*EpidemiologicResultsQuery)) *TestQuery
WithEpidemiologic tells the query-builder to eager-loads the nodes that are connected to
the "epidemiologic" edge. The optional arguments used to configure the query builder of the edge.
func (*TestQuery) WithHistory ¶
func (tq *TestQuery) WithHistory(opts ...func(*HistoryQuery)) *TestQuery
WithHistory tells the query-builder to eager-loads the nodes that are connected to
the "history" edge. The optional arguments used to configure the query builder of the edge.
type TestSelect ¶
type TestSelect struct {
// contains filtered or unexported fields
}
TestSelect is the builder for select fields of Test entities.
func (*TestSelect) Bools ¶
func (ts *TestSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from selector. It is only allowed when selecting one field.
func (*TestSelect) BoolsX ¶
func (ts *TestSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*TestSelect) Float64s ¶
func (ts *TestSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from selector. It is only allowed when selecting one field.
func (*TestSelect) Float64sX ¶
func (ts *TestSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*TestSelect) Ints ¶
func (ts *TestSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from selector. It is only allowed when selecting one field.
func (*TestSelect) IntsX ¶
func (ts *TestSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*TestSelect) Scan ¶
func (ts *TestSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scan the result into the given value.
func (*TestSelect) ScanX ¶
func (ts *TestSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
type TestUpdate ¶
type TestUpdate struct {
// contains filtered or unexported fields
}
TestUpdate is the builder for updating Test entities.
func (*TestUpdate) AddClinical ¶
func (tu *TestUpdate) AddClinical(c ...*ClinicalResults) *TestUpdate
AddClinical adds the clinical edges to ClinicalResults.
func (*TestUpdate) AddClinicalIDs ¶
func (tu *TestUpdate) AddClinicalIDs(ids ...uuid.UUID) *TestUpdate
AddClinicalIDs adds the clinical edge to ClinicalResults by ids.
func (*TestUpdate) AddEpidemiologic ¶
func (tu *TestUpdate) AddEpidemiologic(e ...*EpidemiologicResults) *TestUpdate
AddEpidemiologic adds the epidemiologic edges to EpidemiologicResults.
func (*TestUpdate) AddEpidemiologicIDs ¶
func (tu *TestUpdate) AddEpidemiologicIDs(ids ...uuid.UUID) *TestUpdate
AddEpidemiologicIDs adds the epidemiologic edge to EpidemiologicResults by ids.
func (*TestUpdate) ClearHistory ¶
func (tu *TestUpdate) ClearHistory() *TestUpdate
ClearHistory clears the history edge to History.
func (*TestUpdate) ClearNotes ¶
func (tu *TestUpdate) ClearNotes() *TestUpdate
ClearNotes clears the value of notes.
func (*TestUpdate) Exec ¶
func (tu *TestUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TestUpdate) ExecX ¶
func (tu *TestUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TestUpdate) RemoveClinical ¶
func (tu *TestUpdate) RemoveClinical(c ...*ClinicalResults) *TestUpdate
RemoveClinical removes clinical edges to ClinicalResults.
func (*TestUpdate) RemoveClinicalIDs ¶
func (tu *TestUpdate) RemoveClinicalIDs(ids ...uuid.UUID) *TestUpdate
RemoveClinicalIDs removes the clinical edge to ClinicalResults by ids.
func (*TestUpdate) RemoveEpidemiologic ¶
func (tu *TestUpdate) RemoveEpidemiologic(e ...*EpidemiologicResults) *TestUpdate
RemoveEpidemiologic removes epidemiologic edges to EpidemiologicResults.
func (*TestUpdate) RemoveEpidemiologicIDs ¶
func (tu *TestUpdate) RemoveEpidemiologicIDs(ids ...uuid.UUID) *TestUpdate
RemoveEpidemiologicIDs removes the epidemiologic edge to EpidemiologicResults by ids.
func (*TestUpdate) Save ¶
func (tu *TestUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of rows/vertices matched by this operation.
func (*TestUpdate) SaveX ¶
func (tu *TestUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TestUpdate) SetHistory ¶
func (tu *TestUpdate) SetHistory(h *History) *TestUpdate
SetHistory sets the history edge to History.
func (*TestUpdate) SetHistoryID ¶
func (tu *TestUpdate) SetHistoryID(id uuid.UUID) *TestUpdate
SetHistoryID sets the history edge to History by id.
func (*TestUpdate) SetNillableHistoryID ¶
func (tu *TestUpdate) SetNillableHistoryID(id *uuid.UUID) *TestUpdate
SetNillableHistoryID sets the history edge to History by id if the given value is not nil.
func (*TestUpdate) SetNotes ¶
func (tu *TestUpdate) SetNotes(s []string) *TestUpdate
SetNotes sets the notes field.
func (*TestUpdate) Where ¶
func (tu *TestUpdate) Where(ps ...predicate.Test) *TestUpdate
Where adds a new predicate for the builder.
type TestUpdateOne ¶
type TestUpdateOne struct {
// contains filtered or unexported fields
}
TestUpdateOne is the builder for updating a single Test entity.
func (*TestUpdateOne) AddClinical ¶
func (tuo *TestUpdateOne) AddClinical(c ...*ClinicalResults) *TestUpdateOne
AddClinical adds the clinical edges to ClinicalResults.
func (*TestUpdateOne) AddClinicalIDs ¶
func (tuo *TestUpdateOne) AddClinicalIDs(ids ...uuid.UUID) *TestUpdateOne
AddClinicalIDs adds the clinical edge to ClinicalResults by ids.
func (*TestUpdateOne) AddEpidemiologic ¶
func (tuo *TestUpdateOne) AddEpidemiologic(e ...*EpidemiologicResults) *TestUpdateOne
AddEpidemiologic adds the epidemiologic edges to EpidemiologicResults.
func (*TestUpdateOne) AddEpidemiologicIDs ¶
func (tuo *TestUpdateOne) AddEpidemiologicIDs(ids ...uuid.UUID) *TestUpdateOne
AddEpidemiologicIDs adds the epidemiologic edge to EpidemiologicResults by ids.
func (*TestUpdateOne) ClearHistory ¶
func (tuo *TestUpdateOne) ClearHistory() *TestUpdateOne
ClearHistory clears the history edge to History.
func (*TestUpdateOne) ClearNotes ¶
func (tuo *TestUpdateOne) ClearNotes() *TestUpdateOne
ClearNotes clears the value of notes.
func (*TestUpdateOne) Exec ¶
func (tuo *TestUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TestUpdateOne) ExecX ¶
func (tuo *TestUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TestUpdateOne) RemoveClinical ¶
func (tuo *TestUpdateOne) RemoveClinical(c ...*ClinicalResults) *TestUpdateOne
RemoveClinical removes clinical edges to ClinicalResults.
func (*TestUpdateOne) RemoveClinicalIDs ¶
func (tuo *TestUpdateOne) RemoveClinicalIDs(ids ...uuid.UUID) *TestUpdateOne
RemoveClinicalIDs removes the clinical edge to ClinicalResults by ids.
func (*TestUpdateOne) RemoveEpidemiologic ¶
func (tuo *TestUpdateOne) RemoveEpidemiologic(e ...*EpidemiologicResults) *TestUpdateOne
RemoveEpidemiologic removes epidemiologic edges to EpidemiologicResults.
func (*TestUpdateOne) RemoveEpidemiologicIDs ¶
func (tuo *TestUpdateOne) RemoveEpidemiologicIDs(ids ...uuid.UUID) *TestUpdateOne
RemoveEpidemiologicIDs removes the epidemiologic edge to EpidemiologicResults by ids.
func (*TestUpdateOne) Save ¶
func (tuo *TestUpdateOne) Save(ctx context.Context) (*Test, error)
Save executes the query and returns the updated entity.
func (*TestUpdateOne) SaveX ¶
func (tuo *TestUpdateOne) SaveX(ctx context.Context) *Test
SaveX is like Save, but panics if an error occurs.
func (*TestUpdateOne) SetHistory ¶
func (tuo *TestUpdateOne) SetHistory(h *History) *TestUpdateOne
SetHistory sets the history edge to History.
func (*TestUpdateOne) SetHistoryID ¶
func (tuo *TestUpdateOne) SetHistoryID(id uuid.UUID) *TestUpdateOne
SetHistoryID sets the history edge to History by id.
func (*TestUpdateOne) SetNillableHistoryID ¶
func (tuo *TestUpdateOne) SetNillableHistoryID(id *uuid.UUID) *TestUpdateOne
SetNillableHistoryID sets the history edge to History by id if the given value is not nil.
func (*TestUpdateOne) SetNotes ¶
func (tuo *TestUpdateOne) SetNotes(s []string) *TestUpdateOne
SetNotes sets the notes field.
type Tx ¶
type Tx struct { // Alert is the client for interacting with the Alert builders. Alert *AlertClient // ClinicalResults is the client for interacting with the ClinicalResults builders. ClinicalResults *ClinicalResultsClient // Doctor is the client for interacting with the Doctor builders. Doctor *DoctorClient // EpidemiologicResults is the client for interacting with the EpidemiologicResults builders. EpidemiologicResults *EpidemiologicResultsClient // History is the client for interacting with the History builders. History *HistoryClient // MedicalNote is the client for interacting with the MedicalNote builders. MedicalNote *MedicalNoteClient // Patient is the client for interacting with the Patient builders. Patient *PatientClient // Schedule is the client for interacting with the Schedule builders. Schedule *ScheduleClient // Task is the client for interacting with the Task builders. Task *TaskClient // TaskResponse is the client for interacting with the TaskResponse builders. TaskResponse *TaskResponseClient // Test is the client for interacting with the Test builders. Test *TestClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
Source Files ¶
- alert.go
- alert_create.go
- alert_delete.go
- alert_query.go
- alert_update.go
- client.go
- clinicalresults.go
- clinicalresults_create.go
- clinicalresults_delete.go
- clinicalresults_query.go
- clinicalresults_update.go
- config.go
- context.go
- doctor.go
- doctor_create.go
- doctor_delete.go
- doctor_query.go
- doctor_update.go
- ent.go
- epidemiologicresults.go
- epidemiologicresults_create.go
- epidemiologicresults_delete.go
- epidemiologicresults_query.go
- epidemiologicresults_update.go
- history.go
- history_create.go
- history_delete.go
- history_query.go
- history_update.go
- medicalnote.go
- medicalnote_create.go
- medicalnote_delete.go
- medicalnote_query.go
- medicalnote_update.go
- patient.go
- patient_create.go
- patient_delete.go
- patient_query.go
- patient_update.go
- schedule.go
- schedule_create.go
- schedule_delete.go
- schedule_query.go
- schedule_update.go
- task.go
- task_create.go
- task_delete.go
- task_query.go
- task_update.go
- taskresponse.go
- taskresponse_create.go
- taskresponse_delete.go
- taskresponse_query.go
- taskresponse_update.go
- test.go
- test_create.go
- test_delete.go
- test_query.go
- test_update.go
- tx.go