text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m *BloodtypeMutation) ClearEdge(name string) error {
switch name {
}
return fmt.Errorf("unknown Bloodtype unique edge %s", name)
} | [
-0.6682661175727844,
1.1661098003387451,
0.41945332288742065,
1.0108033418655396,
0.04518154263496399,
0.47522464394569397,
-0.41018161177635193,
-0.014493665657937527,
-0.06877239793539047,
1.4512667655944824,
0.12087869644165039,
-0.015259232372045517,
-0.7465089559555054,
1.019026517868... |
func (m *BloodtypeMutation) ResetEdge(name string) error {
switch name {
case bloodtype.EdgePatient:
m.ResetPatient()
return nil
}
return fmt.Errorf("unknown Bloodtype edge %s", name)
} | [
-0.8217318654060364,
1.0225632190704346,
0.3617943227291107,
1.172931432723999,
1.0012325048446655,
-0.14113621413707733,
-0.26924169063568115,
0.4321798086166382,
-0.5334188938140869,
1.4489977359771729,
0.3107730448246002,
0.21510595083236694,
-1.4185943603515625,
0.6665456295013428,
0... |
func newCategoryMutation(c config, op Op, opts ...categoryOption) *CategoryMutation {
m := &CategoryMutation{
config: c,
op: op,
typ: TypeCategory,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.5105751752853394,
-0.26148679852485657,
0.2882889211177826,
0.8649598956108093,
-0.7082451581954956,
-0.7502620816230774,
0.5102443695068359,
0.03091519884765148,
0.5822005271911621,
0.13433243334293365,
-0.008855283260345459,
-0.7949234247207642,
-0.03975449129939079,
-0.22669789195060... |
func withCategoryID(id int) categoryOption {
return func(m *CategoryMutation) {
var (
err error
once sync.Once
value *Category
)
m.oldValue = func(ctx context.Context) (*Category, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
... | [
0.31868794560432434,
-0.48052525520324707,
0.35016369819641113,
-0.19024333357810974,
-0.15969853103160858,
0.03336719051003456,
0.12420690804719925,
-0.6944209933280945,
0.4841550886631012,
0.21419133245944977,
0.27056318521499634,
0.07664534449577332,
0.28498631715774536,
0.9979535341262... |
func withCategory(node *Category) categoryOption {
return func(m *CategoryMutation) {
m.oldValue = func(context.Context) (*Category, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.062413234263658524,
-0.07110518217086792,
0.40130680799484253,
-0.11271673440933228,
0.13504861295223236,
-0.6011057496070862,
0.8937588334083557,
-0.2441144585609436,
0.5637520551681519,
0.014143471606075764,
0.4320793151855469,
-0.16741713881492615,
1.1479498147964478,
0.2082597613334... |
func (m CategoryMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.5403506755828857,
-0.33502042293548584,
-0.009183130227029324,
0.24652183055877686,
-0.41266027092933655,
-0.14373068511486053,
0.8881033062934875,
-0.4074326753616333,
0.05907577648758888,
-0.6405808329582214,
-0.41144973039627075,
0.1651076227426529,
0.3174266517162323,
-0.55788409709... |
func (m CategoryMutation) Tx() (*Tx, error) {
if _, ok := m.driver.(*txDriver); !ok {
return nil, fmt.Errorf("ent: mutation is not running in a transaction")
}
tx := &Tx{config: m.config}
tx.init()
return tx, nil
} | [
-0.22748680412769318,
0.4637303054332733,
0.31507930159568787,
0.32780009508132935,
0.4707322418689728,
-0.47313666343688965,
-0.06433668732643127,
0.2811712920665741,
0.2823490500450134,
0.03914754465222359,
-0.21226003766059875,
-0.6783233284950256,
-0.14904095232486725,
-0.5159615278244... |
func (m *CategoryMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.9005409479141235,
-0.18813225626945496,
0.4555642306804657,
0.584601104259491,
0.3205399215221405,
-0.13159428536891937,
0.36021971702575684,
0.2022334635257721,
0.8587505221366882,
0.07868903130292892,
-0.3015969395637512,
-1.1442360877990723,
-0.4371154308319092,
0.8493205904960632,
... |
func (m *CategoryMutation) SetCategoryName(s string) {
m._CategoryName = &s
} | [
-1.126574158668518,
0.5041394829750061,
0.2036033421754837,
0.852263867855072,
-0.853458821773529,
-0.6059272289276123,
1.0766956806182861,
0.7818057537078857,
-0.10152240842580795,
-0.577941358089447,
-0.6779308915138245,
-1.0968670845031738,
0.5704849362373352,
0.7919372916221619,
-0.3... |
func (m *CategoryMutation) CategoryName() (r string, exists bool) {
v := m._CategoryName
if v == nil {
return
}
return *v, true
} | [
-1.7326658964157104,
0.7607762813568115,
0.5171007513999939,
0.4169985055923462,
-0.7035174369812012,
-0.6637360453605652,
0.5165510773658752,
0.21330155432224274,
0.03640402480959892,
-0.03527046740055084,
-0.04076770320534706,
-1.0802000761032104,
0.10634271055459976,
-0.0220524799078702... |
func (m *CategoryMutation) OldCategoryName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldCategoryName is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldCategoryName requires an ID field in the mutation")
... | [
-1.1387683153152466,
0.21334224939346313,
0.3379194140434265,
0.3600024878978729,
-0.5024856925010681,
-0.6613611578941345,
0.8388296365737915,
-0.4392388164997101,
0.7413199543952942,
0.0504261739552021,
0.03761693835258484,
-0.7586161494255066,
0.09520284086465836,
0.9864407181739807,
... |
func (m *CategoryMutation) ResetCategoryName() {
m._CategoryName = nil
} | [
-0.962551474571228,
0.34794002771377563,
0.13034529983997345,
1.0087944269180298,
-0.3185422718524933,
-1.2318341732025146,
1.3848220109939575,
0.23630231618881226,
0.07182298600673676,
-0.5185121297836304,
-0.21973873674869537,
-0.23217079043388367,
-0.10248960554599762,
0.159943252801895... |
func (m *CategoryMutation) AddPatientIDs(ids ...int) {
if m.patient == nil {
m.patient = make(map[int]struct{})
}
for i := range ids {
m.patient[ids[i]] = struct{}{}
}
} | [
-1.6013845205307007,
-0.025655416771769524,
0.15727564692497253,
-0.49055084586143494,
-0.19334742426872253,
-0.04388505220413208,
-0.7054622769355774,
0.40867456793785095,
-0.2846721112728119,
0.09132599830627441,
0.10459624975919724,
-0.38740774989128113,
-0.2983650863170624,
0.062767483... |
func (m *CategoryMutation) RemovePatientIDs(ids ...int) {
if m.removedpatient == nil {
m.removedpatient = make(map[int]struct{})
}
for i := range ids {
m.removedpatient[ids[i]] = struct{}{}
}
} | [
-1.5435152053833008,
-0.2536311447620392,
0.09359661489725113,
-0.380331426858902,
-0.920601487159729,
-0.3207763731479645,
-0.2062583863735199,
0.8495612740516663,
-0.3051627278327942,
0.3374922275543213,
-0.45961838960647583,
-0.4065508246421814,
-0.8895185589790344,
0.09219657629728317,... |
func (m *CategoryMutation) RemovedPatientIDs() (ids []int) {
for id := range m.removedpatient {
ids = append(ids, id)
}
return
} | [
-0.5958442091941833,
-0.7294961810112,
0.15715700387954712,
-0.28731775283813477,
-0.7657544612884521,
-0.2590547204017639,
-0.27186551690101624,
0.5964272022247314,
0.4485788345336914,
0.059621382504701614,
-0.5473583936691284,
0.9176762104034424,
-0.7312045693397522,
0.553768515586853,
... |
func (m *CategoryMutation) PatientIDs() (ids []int) {
for id := range m.patient {
ids = append(ids, id)
}
return
} | [
-1.0651981830596924,
-0.513694703578949,
0.020165370777249336,
0.14707864820957184,
-0.026995530351996422,
-0.21949855983257294,
-0.3484707772731781,
0.3631227910518646,
0.16337592899799347,
0.4295884072780609,
0.2565425932407379,
0.8193501234054565,
-0.3122384548187256,
0.0285612028092145... |
func (m *CategoryMutation) ResetPatient() {
m.patient = nil
m.removedpatient = nil
} | [
-0.5793836116790771,
0.3583436906337738,
0.1733725666999817,
0.12689948081970215,
0.2945137023925781,
-0.2793113589286804,
0.36402595043182373,
0.3386944532394409,
-0.4522508978843689,
-0.7574156522750854,
0.41120946407318115,
0.3369491696357727,
-0.389184832572937,
-0.669192910194397,
0... |
func (m *CategoryMutation) Op() Op {
return m.op
} | [
-1.2300900220870972,
0.22477436065673828,
0.024803651496767998,
0.9150217771530151,
-0.19039538502693176,
0.43309086561203003,
0.8636512756347656,
0.28167951107025146,
0.19048632681369781,
0.23462903499603271,
0.3356209099292755,
-1.1548317670822144,
0.5486168265342712,
-0.7629647850990295... |
func (m *CategoryMutation) Type() string {
return m.typ
} | [
-0.6448278427124023,
-0.3838008642196655,
-0.179707333445549,
0.681018054485321,
0.5024277567863464,
-0.05048620328307152,
0.8261514902114868,
-1.0855507850646973,
0.5206403136253357,
0.0005287975072860718,
0.5126965641975403,
-0.633611798286438,
0.14205686748027802,
0.4717350900173187,
... |
func (m *CategoryMutation) Fields() []string {
fields := make([]string, 0, 1)
if m._CategoryName != nil {
fields = append(fields, category.FieldCategoryName)
}
return fields
} | [
-1.3095288276672363,
0.19920144975185394,
-0.02871685102581978,
-0.44037413597106934,
0.4022740423679352,
-0.17410805821418762,
-0.3828761875629425,
-0.18997015058994293,
0.5275213718414307,
-0.21816256642341614,
-0.3393189609050751,
-0.698616623878479,
-0.14856091141700745,
0.439954221248... |
func (m *CategoryMutation) Field(name string) (ent.Value, bool) {
switch name {
case category.FieldCategoryName:
return m.CategoryName()
}
return nil, false
} | [
-1.517019271850586,
0.34304293990135193,
0.49587035179138184,
-0.047702208161354065,
-0.3950602114200592,
0.13020721077919006,
-0.8161056041717529,
-0.3357299864292145,
0.2432418018579483,
-0.23440711200237274,
-0.22103364765644073,
-0.9190077781677246,
0.3335074782371521,
0.78890979290008... |
func (m *CategoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case category.FieldCategoryName:
return m.OldCategoryName(ctx)
}
return nil, fmt.Errorf("unknown Category field %s", name)
} | [
-0.5514822602272034,
0.4119597375392914,
0.27895787358283997,
-0.4247635304927826,
0.2074318379163742,
0.14652931690216064,
-0.0657493844628334,
-0.6478090286254883,
0.24750779569149017,
-0.29549524188041687,
-0.1003308966755867,
-0.3041478991508484,
0.23449137806892395,
0.3359030783176422... |
func (m *CategoryMutation) SetField(name string, value ent.Value) error {
switch name {
case category.FieldCategoryName:
v, ok := value.(string)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetCategoryName(v)
return nil
}
return fmt.Errorf("unknown Category field %s", ... | [
-1.2129426002502441,
0.6420767903327942,
0.3287888467311859,
0.06214090809226036,
-0.4595279395580292,
0.5708683133125305,
-0.501194953918457,
-0.1589478701353073,
-0.15002408623695374,
-0.1844983696937561,
-0.200136199593544,
-0.6017365455627441,
0.35890793800354004,
1.0046802759170532,
... |
func (m *CategoryMutation) AddedFields() []string {
return nil
} | [
-0.43246039748191833,
0.426935613155365,
0.5117476582527161,
-0.05647379159927368,
0.3061213195323944,
0.6497910022735596,
0.3009571433067322,
-0.1182003915309906,
0.8540066480636597,
-1.1249572038650513,
-0.2937280535697937,
-0.6658009886741638,
-0.9725618362426758,
0.3123379051685333,
... |
func (m *CategoryMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.5495723485946655,
0.5721753835678101,
0.7321802377700806,
-0.23896896839141846,
-0.20837567746639252,
0.9422566294670105,
-0.3329640030860901,
-0.08858487010002136,
0.34620019793510437,
-0.654647707939148,
-0.7140768766403198,
-1.4712507724761963,
-1.2188947200775146,
0.3773361146450043... |
func (m *CategoryMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Category numeric field %s", name)
} | [
-1.0278496742248535,
0.653348445892334,
0.5691852569580078,
0.17686299979686737,
-0.04623394086956978,
1.0651695728302002,
-0.8425231575965881,
-0.41369590163230896,
-0.4879363775253296,
-0.29069629311561584,
0.167676642537117,
-1.3542227745056152,
0.32744744420051575,
0.5284027457237244,
... |
func (m *CategoryMutation) ClearedFields() []string {
return nil
} | [
-0.38716381788253784,
0.8630485534667969,
0.47139033675193787,
0.0057326327078044415,
-0.36616215109825134,
0.4756917655467987,
0.23298010230064392,
-0.5108098983764648,
0.7245814800262451,
0.49194562435150146,
-0.14937621355056763,
-0.529272198677063,
-0.6198106408119202,
-0.5776306390762... |
func (m *CategoryMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.7622067332267761,
0.34713369607925415,
0.7419409155845642,
-0.1294574737548828,
-0.22855818271636963,
0.15829285979270935,
-0.834972083568573,
-0.07295060157775879,
-0.22054670751094818,
-0.3147755265235901,
-0.9024713039398193,
-0.7731422185897827,
0.6692402362823486,
-0.21976384520530... |
func (m *CategoryMutation) ClearField(name string) error {
return fmt.Errorf("unknown Category nullable field %s", name)
} | [
-0.3334181606769562,
0.9093503355979919,
0.4986438453197479,
-0.23455241322517395,
-0.48757651448249817,
0.4329296946525574,
-0.5656699538230896,
-0.4845064580440521,
0.02675708569586277,
0.8058807849884033,
-0.2688151001930237,
-0.932416558265686,
0.2320256233215332,
0.2880833148956299,
... |
func (m *CategoryMutation) ResetField(name string) error {
switch name {
case category.FieldCategoryName:
m.ResetCategoryName()
return nil
}
return fmt.Errorf("unknown Category field %s", name)
} | [
-0.845154881477356,
1.1055924892425537,
0.25529229640960693,
0.2658296227455139,
0.36736735701560974,
-0.09573826193809509,
0.269537091255188,
-0.15186721086502075,
0.02253962680697441,
0.08133324235677719,
-0.2104419469833374,
-0.5018322467803955,
-0.14310583472251892,
0.093775674700737,
... |
func (m *CategoryMutation) AddedEdges() []string {
edges := make([]string, 0, 1)
if m.patient != nil {
edges = append(edges, category.EdgePatient)
}
return edges
} | [
-0.5415002703666687,
-0.33137160539627075,
0.2633838355541229,
0.15725654363632202,
0.21379438042640686,
0.22881294786930084,
-1.155722975730896,
0.07815729081630707,
1.0404473543167114,
0.10241815447807312,
1.0510350465774536,
0.11111888289451599,
-0.40191319584846497,
0.6644638776779175,... |
func (m *CategoryMutation) AddedIDs(name string) []ent.Value {
switch name {
case category.EdgePatient:
ids := make([]ent.Value, 0, len(m.patient))
for id := range m.patient {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-0.8670312762260437,
-0.328928679227829,
0.3159717619419098,
-0.7634925246238708,
0.11226372420787811,
0.2866229712963104,
-0.9592893123626709,
-0.082867830991745,
0.45196446776390076,
0.02488316409289837,
0.6545778512954712,
0.21006880700588226,
-0.17684850096702576,
0.6025804281234741,
... |
func (m *CategoryMutation) RemovedEdges() []string {
edges := make([]string, 0, 1)
if m.removedpatient != nil {
edges = append(edges, category.EdgePatient)
}
return edges
} | [
-0.36591657996177673,
-0.20891287922859192,
0.4377402663230896,
0.20484204590320587,
-0.10657094419002533,
-0.26021116971969604,
-0.5546628832817078,
0.4912306070327759,
0.875654399394989,
0.3120900094509125,
0.2072269320487976,
0.0001247964391950518,
-0.7822813391685486,
0.403993099927902... |
func (m *CategoryMutation) RemovedIDs(name string) []ent.Value {
switch name {
case category.EdgePatient:
ids := make([]ent.Value, 0, len(m.removedpatient))
for id := range m.removedpatient {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-0.673612654209137,
-0.35697421431541443,
0.4570331573486328,
-0.6849228739738464,
0.03692403808236122,
-0.1313328593969345,
-0.7681152820587158,
0.4401536285877228,
0.3053784966468811,
0.42035967111587524,
-0.2963745892047882,
0.06272957473993301,
-0.5205826163291931,
0.3457196056842804,
... |
func (m *CategoryMutation) ClearedEdges() []string {
edges := make([]string, 0, 1)
return edges
} | [
-0.9847331643104553,
-0.14135225117206573,
0.3958747982978821,
0.4514463245868683,
-0.5970722436904907,
-0.04627596214413643,
-0.8016629815101624,
-0.6805834174156189,
0.6704486608505249,
1.55290687084198,
0.37747490406036377,
0.475503534078598,
-0.4720957577228546,
-0.26809313893318176,
... |
func (m *CategoryMutation) EdgeCleared(name string) bool {
switch name {
}
return false
} | [
-1.3289964199066162,
-0.03244148939847946,
0.5814704895019531,
-0.23957911133766174,
-0.587733805179596,
0.30984336137771606,
-0.8175551891326904,
-0.484131783246994,
-0.1683003455400467,
0.35450348258018494,
-0.048532284796237946,
-0.9032939672470093,
-0.28232863545417786,
0.1588437855243... |
func (m *CategoryMutation) ClearEdge(name string) error {
switch name {
}
return fmt.Errorf("unknown Category unique edge %s", name)
} | [
-1.2544034719467163,
1.1711230278015137,
0.38337382674217224,
0.7066794633865356,
-0.3587578237056732,
-0.035229023545980453,
-0.2922859191894531,
0.23917284607887268,
-0.03088284097611904,
0.9308399558067322,
0.13476970791816711,
-0.4892543852329254,
0.21041660010814667,
0.744325876235961... |
func (m *CategoryMutation) ResetEdge(name string) error {
switch name {
case category.EdgePatient:
m.ResetPatient()
return nil
}
return fmt.Errorf("unknown Category edge %s", name)
} | [
-1.2773668766021729,
0.8837398886680603,
0.22980935871601105,
0.9334288835525513,
0.5878573656082153,
-0.512945830821991,
0.06425615400075912,
0.7134914994239807,
-0.47713997960090637,
0.768610954284668,
0.5255153775215149,
-0.16169089078903198,
-0.4481123387813568,
0.23872257769107819,
... |
func newDepartmentMutation(c config, op Op, opts ...departmentOption) *DepartmentMutation {
m := &DepartmentMutation{
config: c,
op: op,
typ: TypeDepartment,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.2856652736663818,
-0.03756650537252426,
0.2235032469034195,
0.8358511328697205,
-0.6685429811477661,
-0.46198537945747375,
0.8946634531021118,
-0.1601724922657013,
1.0055464506149292,
0.2960658669471741,
-0.8447761535644531,
-0.2512221336364746,
-0.16897259652614594,
-0.1767215281724929... |
func withDepartmentID(id int) departmentOption {
return func(m *DepartmentMutation) {
var (
err error
once sync.Once
value *Department
)
m.oldValue = func(ctx context.Context) (*Department, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not al... | [
0.12682560086250305,
-0.4758014678955078,
0.4106152355670929,
0.04221104457974434,
-0.1708420068025589,
0.3796738386154175,
0.3387957513332367,
-0.5674974918365479,
1.054998517036438,
0.7847608923912048,
0.21596947312355042,
0.6279712319374084,
0.5772860646247864,
0.9108604192733765,
-0.... |
func withDepartment(node *Department) departmentOption {
return func(m *DepartmentMutation) {
m.oldValue = func(context.Context) (*Department, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.19195276498794556,
-0.22668202221393585,
0.33275455236434937,
-0.24619068205356598,
0.3992302715778351,
-0.22968140244483948,
0.7939943075180054,
-0.6363291144371033,
1.1194478273391724,
-0.25694146752357483,
-0.02517005242407322,
0.5331674218177795,
1.259543776512146,
0.258397012948989... |
func (m DepartmentMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.6219409108161926,
-0.29268109798431396,
0.058233849704265594,
-0.03722888603806496,
-0.46571701765060425,
0.3472067415714264,
0.8271412253379822,
-0.22448626160621643,
0.5633716583251953,
-0.641422688961029,
-0.4035935699939728,
0.5566015839576721,
0.1632498949766159,
-0.718687653541564... |
func (m DepartmentMutation) Tx() (*Tx, error) {
if _, ok := m.driver.(*txDriver); !ok {
return nil, fmt.Errorf("ent: mutation is not running in a transaction")
}
tx := &Tx{config: m.config}
tx.init()
return tx, nil
} | [
-0.3284979462623596,
0.3999735713005066,
0.35834771394729614,
0.2124485969543457,
0.33047938346862793,
-0.0184702817350626,
-0.11288882791996002,
0.4540126621723175,
0.8588375449180603,
-0.03146999701857567,
-0.16665898263454437,
-0.1161847859621048,
-0.22814232110977173,
-0.50657188892364... |
func (m *DepartmentMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-1.0881365537643433,
-0.13257291913032532,
0.5722634196281433,
0.3790915906429291,
0.1807568073272705,
0.31506362557411194,
0.17478999495506287,
0.34708577394485474,
1.3307770490646362,
0.26790082454681396,
-0.24925720691680908,
-0.5129033923149109,
-0.572079598903656,
0.7147742509841919,
... |
func (m *DepartmentMutation) SetDepartmentName(s string) {
m._DepartmentName = &s
} | [
-1.0348821878433228,
0.37826189398765564,
0.08025411516427994,
0.29198428988456726,
-1.0069297552108765,
-0.47482848167419434,
1.251503825187683,
0.738618016242981,
0.33167287707328796,
-0.4123919606208801,
-0.467801034450531,
-0.4190582036972046,
0.8620936870574951,
0.7456733584403992,
... |
func (m *DepartmentMutation) DepartmentName() (r string, exists bool) {
v := m._DepartmentName
if v == nil {
return
}
return *v, true
} | [
-1.7756540775299072,
0.6603016257286072,
0.4555383622646332,
0.21421916782855988,
-0.6072778105735779,
-0.44914641976356506,
0.5875200033187866,
0.11794734746217728,
0.5373880863189697,
0.3431287407875061,
-0.1455182135105133,
-0.6256675124168396,
-0.03190552815794945,
0.028125185519456863... |
func (m *DepartmentMutation) OldDepartmentName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldDepartmentName is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldDepartmentName requires an ID field in the muta... | [
-1.3981143236160278,
0.07561562955379486,
0.35946184396743774,
0.01776312105357647,
-0.9397069811820984,
-0.42654886841773987,
0.8760277032852173,
-0.26616135239601135,
0.8605614304542542,
0.18212847411632538,
0.16005855798721313,
-0.07889792323112488,
0.35251134634017944,
1.17244458198547... |
func (m *DepartmentMutation) ResetDepartmentName() {
m._DepartmentName = nil
} | [
-1.1388189792633057,
0.4537537693977356,
0.03706544637680054,
0.7052114605903625,
-0.7905964851379395,
-0.8751415610313416,
1.1294355392456055,
0.17028389871120453,
0.020845362916588783,
-0.19382129609584808,
0.020008105784654617,
0.3598724603652954,
-0.08392675966024399,
-0.07215601205825... |
func (m *DepartmentMutation) AddEmployeeIDs(ids ...int) {
if m.employee == nil {
m.employee = make(map[int]struct{})
}
for i := range ids {
m.employee[ids[i]] = struct{}{}
}
} | [
-2.053499698638916,
-0.17292466759681702,
0.19312766194343567,
-0.5950003862380981,
0.20885813236236572,
0.45370209217071533,
-0.5742450952529907,
0.8892930150032043,
-0.14571215212345123,
0.4529366195201874,
-0.549196183681488,
-0.3310000002384186,
-0.7212714552879333,
0.7606043815612793,... |
func (m *DepartmentMutation) RemoveEmployeeIDs(ids ...int) {
if m.removedemployee == nil {
m.removedemployee = make(map[int]struct{})
}
for i := range ids {
m.removedemployee[ids[i]] = struct{}{}
}
} | [
-1.8383398056030273,
-0.6231898069381714,
0.12042807042598724,
-0.6611259579658508,
-0.6677084565162659,
0.16503608226776123,
0.050644468516111374,
1.198525309562683,
-0.2511816918849945,
0.7426624298095703,
-1.4258455038070679,
-0.3787838816642761,
-1.1261169910430908,
0.6864685416221619,... |
func (m *DepartmentMutation) RemovedEmployeeIDs() (ids []int) {
for id := range m.removedemployee {
ids = append(ids, id)
}
return
} | [
-1.1457728147506714,
-1.0316636562347412,
0.14765609800815582,
-0.13229767978191376,
-0.19656100869178772,
0.3125380873680115,
0.25479763746261597,
1.0936033725738525,
0.3408251404762268,
0.13859999179840088,
-1.352397084236145,
0.775215744972229,
-1.114159107208252,
1.2807767391204834,
... |
func (m *DepartmentMutation) EmployeeIDs() (ids []int) {
for id := range m.employee {
ids = append(ids, id)
}
return
} | [
-1.6730159521102905,
-0.501343309879303,
0.019023630768060684,
-0.16631846129894257,
-0.026877252385020256,
0.5492162108421326,
-0.7127667665481567,
0.6729812026023865,
0.41892924904823303,
0.6526799201965332,
-0.25129032135009766,
1.1615345478057861,
-0.7004191279411316,
0.784217000007629... |
func (m *DepartmentMutation) ResetEmployee() {
m.employee = nil
m.removedemployee = nil
} | [
-0.3102717101573944,
-0.04282756522297859,
0.22376586496829987,
0.24915456771850586,
0.1656215637922287,
0.03019034117460251,
0.6328811049461365,
0.9262210130691528,
-0.8818246126174927,
-0.26168861985206604,
-0.363872230052948,
0.027980085462331772,
-0.8641673922538757,
-0.005368741229176... |
func (m *DepartmentMutation) Op() Op {
return m.op
} | [
-1.4456576108932495,
0.24401110410690308,
0.10351011902093887,
0.605996310710907,
-0.3194763958454132,
0.8669019937515259,
0.7946058511734009,
0.353755921125412,
0.7662162184715271,
0.21095767617225647,
0.32128214836120605,
-0.5157774686813354,
0.3578030467033386,
-0.7985185384750366,
-0... |
func (m *DepartmentMutation) Type() string {
return m.typ
} | [
-0.8258197903633118,
-0.3661680817604065,
0.011628535576164722,
0.4479146897792816,
0.4344315230846405,
0.5858886241912842,
0.7551421523094177,
-0.9942812323570251,
1.244511365890503,
-0.07867809385061264,
0.4367450773715973,
0.08484015613794327,
-0.055740512907505035,
0.406228631734848,
... |
func (m *DepartmentMutation) Fields() []string {
fields := make([]string, 0, 1)
if m._DepartmentName != nil {
fields = append(fields, department.FieldDepartmentName)
}
return fields
} | [
-1.5168105363845825,
0.2727210223674774,
0.08327433466911316,
-0.6500531435012817,
0.408577561378479,
0.14334645867347717,
-0.4436981976032257,
-0.13805370032787323,
1.2867475748062134,
-0.37757939100265503,
-0.3227013051509857,
-0.3375971019268036,
-0.03766048699617386,
0.3760555386543274... |
func (m *DepartmentMutation) Field(name string) (ent.Value, bool) {
switch name {
case department.FieldDepartmentName:
return m.DepartmentName()
}
return nil, false
} | [
-1.6376457214355469,
0.32933685183525085,
0.5129009485244751,
-0.4480743408203125,
-0.3724800646305084,
0.5839865803718567,
-0.9270739555358887,
-0.17676135897636414,
0.8105802536010742,
-0.12991811335086823,
-0.18121977150440216,
-0.5516819357872009,
0.23275263607501984,
0.605295538902282... |
func (m *DepartmentMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case department.FieldDepartmentName:
return m.OldDepartmentName(ctx)
}
return nil, fmt.Errorf("unknown Department field %s", name)
} | [
-0.6913921236991882,
0.48995140194892883,
0.3545321822166443,
-0.8607300519943237,
0.1812507063150406,
0.45977783203125,
-0.05665535107254982,
-0.5332030057907104,
0.8672744631767273,
-0.2580435276031494,
-0.0002998976269736886,
-0.02175726369023323,
0.01668633334338665,
0.2934647500514984... |
func (m *DepartmentMutation) SetField(name string, value ent.Value) error {
switch name {
case department.FieldDepartmentName:
v, ok := value.(string)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetDepartmentName(v)
return nil
}
return fmt.Errorf("unknown Department f... | [
-1.3175498247146606,
0.6247782111167908,
0.3533591628074646,
-0.3374722898006439,
-0.3980390131473541,
0.9304035305976868,
-0.6132979393005371,
-0.14478029310703278,
0.41897761821746826,
-0.12526258826255798,
-0.12068679183721542,
-0.32067248225212097,
0.17679020762443542,
0.94021230936050... |
func (m *DepartmentMutation) AddedFields() []string {
return nil
} | [
-0.48988261818885803,
0.5571628212928772,
0.44845035672187805,
-0.16689863801002502,
0.20075848698616028,
0.952231764793396,
0.2623021900653839,
-0.017272261902689934,
1.326664686203003,
-1.2071235179901123,
-0.3476285934448242,
-0.15437786281108856,
-1.1404097080230713,
0.3547765016555786... |
func (m *DepartmentMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.6098077297210693,
0.6401622891426086,
0.7014288902282715,
-0.4018380641937256,
-0.3253649175167084,
1.2632050514221191,
-0.3579440116882324,
0.16490435600280762,
0.8366706371307373,
-0.6469048857688904,
-0.7058966755867004,
-1.051876425743103,
-1.3976951837539673,
0.22051069140434265,
... |
func (m *DepartmentMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Department numeric field %s", name)
} | [
-1.1370582580566406,
0.7199361324310303,
0.5883165597915649,
-0.05252206325531006,
-0.11221195757389069,
1.423927903175354,
-0.9541143774986267,
-0.3293101489543915,
0.07733883708715439,
-0.3646119236946106,
0.06299871951341629,
-0.9547873735427856,
0.13017353415489197,
0.4859592318534851,... |
func (m *DepartmentMutation) ClearedFields() []string {
return nil
} | [
-0.4387167990207672,
0.9444429278373718,
0.4175625741481781,
-0.1108211949467659,
-0.40174221992492676,
0.7970627546310425,
0.17595790326595306,
-0.3624521493911743,
1.147074818611145,
0.3140557110309601,
-0.17981070280075073,
-0.07311695069074631,
-0.8097938299179077,
-0.4517652988433838,... |
func (m *DepartmentMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.8498238921165466,
0.3230101764202118,
0.7299271821975708,
-0.3489742577075958,
-0.252036988735199,
0.4374655783176422,
-0.8501983880996704,
0.12336314469575882,
0.06811383366584778,
-0.2542477548122406,
-0.8531134724617004,
-0.43717244267463684,
0.3769625723361969,
-0.2840196490287781,
... |
func (m *DepartmentMutation) ClearField(name string) error {
return fmt.Errorf("unknown Department nullable field %s", name)
} | [
-0.45147088170051575,
0.9609702229499817,
0.4945022165775299,
-0.40788647532463074,
-0.5110812783241272,
0.7743625044822693,
-0.6165912747383118,
-0.40264713764190674,
0.6383193731307983,
0.7261332273483276,
-0.2425747960805893,
-0.5876902937889099,
0.06961474567651749,
0.21819791197776794... |
func (m *DepartmentMutation) ResetField(name string) error {
switch name {
case department.FieldDepartmentName:
m.ResetDepartmentName()
return nil
}
return fmt.Errorf("unknown Department field %s", name)
} | [
-1.0410693883895874,
1.095117449760437,
0.2937634289264679,
-0.12683849036693573,
0.2948344647884369,
0.2543848752975464,
0.12484589964151382,
-0.13695834577083588,
0.5606452226638794,
0.16221769154071808,
-0.14852355420589447,
-0.23067675530910492,
-0.4039938151836395,
-0.0297169666737318... |
func (m *DepartmentMutation) AddedEdges() []string {
edges := make([]string, 0, 1)
if m.employee != nil {
edges = append(edges, department.EdgeEmployee)
}
return edges
} | [
-0.7225297093391418,
-0.05259733647108078,
0.2338183969259262,
0.3222549259662628,
0.18233132362365723,
0.4554060399532318,
-1.098339319229126,
0.09609237313270569,
1.3404346704483032,
0.19719679653644562,
0.600982129573822,
0.562250554561615,
-1.0795791149139404,
0.724104642868042,
-0.6... |
func (m *DepartmentMutation) AddedIDs(name string) []ent.Value {
switch name {
case department.EdgeEmployee:
ids := make([]ent.Value, 0, len(m.employee))
for id := range m.employee {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-1.1474100351333618,
-0.1424284130334854,
0.26548853516578674,
-0.6986321210861206,
0.051078591495752335,
0.6976975798606873,
-0.8577167391777039,
0.1265430599451065,
0.6941206455230713,
0.16341878473758698,
0.34698939323425293,
0.6931673288345337,
-0.784159779548645,
0.6437880992889404,
... |
func (m *DepartmentMutation) RemovedEdges() []string {
edges := make([]string, 0, 1)
if m.removedemployee != nil {
edges = append(edges, department.EdgeEmployee)
}
return edges
} | [
-0.49491259455680847,
-0.07782930135726929,
0.4486135244369507,
0.3418111801147461,
-0.16098777949810028,
0.000526311865542084,
-0.3394509255886078,
0.6534461975097656,
1.0841108560562134,
0.2949742376804352,
-0.2555602192878723,
0.3081243932247162,
-1.2776570320129395,
0.48336321115493774... |
func (m *DepartmentMutation) RemovedIDs(name string) []ent.Value {
switch name {
case department.EdgeEmployee:
ids := make([]ent.Value, 0, len(m.removedemployee))
for id := range m.removedemployee {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-0.8098233938217163,
-0.3845820724964142,
0.4009815454483032,
-0.6045545339584351,
-0.041443098336458206,
0.20439299941062927,
-0.564609169960022,
0.6305264234542847,
0.5520914793014526,
0.32944899797439575,
-0.6339089274406433,
0.5449878573417664,
-1.0681145191192627,
0.4292312562465668,
... |
func (m *DepartmentMutation) ClearedEdges() []string {
edges := make([]string, 0, 1)
return edges
} | [
-1.0696907043457031,
-0.0063496967777609825,
0.4014458954334259,
0.43027323484420776,
-0.6419759392738342,
0.29379257559776306,
-0.8794752359390259,
-0.5888099670410156,
1.0386301279067993,
1.4270365238189697,
0.3708299696445465,
0.9190123081207275,
-0.732775866985321,
-0.25225067138671875... |
func (m *DepartmentMutation) EdgeCleared(name string) bool {
switch name {
}
return false
} | [
-1.2950592041015625,
0.0621001273393631,
0.573107898235321,
-0.4817223846912384,
-0.6778690814971924,
0.7321857810020447,
-0.7884061932563782,
-0.29246026277542114,
0.25787806510925293,
0.287628173828125,
0.06901389360427856,
-0.3363150656223297,
-0.6368056535720825,
0.16536207497119904,
... |
func (m *DepartmentMutation) ClearEdge(name string) error {
switch name {
}
return fmt.Errorf("unknown Department unique edge %s", name)
} | [
-1.2287269830703735,
1.2339037656784058,
0.38604769110679626,
0.41231033205986023,
-0.5067649483680725,
0.38280344009399414,
-0.3695824146270752,
0.41003724932670593,
0.5061036944389343,
0.7708703279495239,
0.19049470126628876,
0.1339540183544159,
-0.13825154304504395,
0.6326504945755005,
... |
func (m *DepartmentMutation) ResetEdge(name string) error {
switch name {
case department.EdgeEmployee:
m.ResetEmployee()
return nil
}
return fmt.Errorf("unknown Department edge %s", name)
} | [
-1.3076211214065552,
0.8590118288993835,
0.31777650117874146,
0.8361998796463013,
0.2930791974067688,
-0.09591896086931229,
0.058743931353092194,
0.7305946946144104,
0.017878973856568336,
0.6924608945846558,
0.2121589481830597,
0.3178613781929016,
-0.9215925931930542,
0.11979499459266663,
... |
func newDiagnosisMutation(c config, op Op, opts ...diagnosisOption) *DiagnosisMutation {
m := &DiagnosisMutation{
config: c,
op: op,
typ: TypeDiagnosis,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.6703166961669922,
-0.2266775667667389,
0.4389837086200714,
0.8370948433876038,
-0.5576912760734558,
-0.6260400414466858,
0.7720518708229065,
0.23801960051059723,
1.0603357553482056,
0.28388354182243347,
-0.7436963319778442,
-0.7403002381324768,
0.12100593000650406,
-0.5887991786003113,
... |
func withDiagnosisID(id int) diagnosisOption {
return func(m *DiagnosisMutation) {
var (
err error
once sync.Once
value *Diagnosis
)
m.oldValue = func(ctx context.Context) (*Diagnosis, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed... | [
-0.19098591804504395,
-0.7764336466789246,
0.4632636606693268,
0.06361991167068481,
-0.5915125012397766,
0.2249242216348648,
-0.060320138931274414,
-0.12273460626602173,
1.035460114479065,
0.6795557737350464,
-0.027272649109363556,
-0.2418133020401001,
1.0201630592346191,
0.427341222763061... |
func withDiagnosis(node *Diagnosis) diagnosisOption {
return func(m *DiagnosisMutation) {
m.oldValue = func(context.Context) (*Diagnosis, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.5154328346252441,
-0.5534287095069885,
0.39494919776916504,
0.052667286247015,
0.15169620513916016,
-0.5212059020996094,
0.35988885164260864,
0.22644835710525513,
0.8031279444694519,
0.40502527356147766,
-0.11981868743896484,
-0.38994964957237244,
1.7074629068374634,
-0.2070413678884506... |
func (m DiagnosisMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.2787853181362152,
-0.43028923869132996,
0.04051826149225235,
0.2858472168445587,
-0.32713353633880615,
0.12941555678844452,
0.9312528967857361,
0.30951181054115295,
0.5986760258674622,
-0.6478665471076965,
-0.38311395049095154,
0.294674813747406,
0.2609391510486603,
-0.8062255382537842,... |
func (m DiagnosisMutation) Tx() (*Tx, error) {
if _, ok := m.driver.(*txDriver); !ok {
return nil, fmt.Errorf("ent: mutation is not running in a transaction")
}
tx := &Tx{config: m.config}
tx.init()
return tx, nil
} | [
-0.0911264419555664,
0.33456191420555115,
0.40522292256355286,
0.4644692838191986,
0.3130768835544586,
-0.1259462982416153,
0.04561382532119751,
0.8169569373130798,
0.7662773132324219,
-0.12187174707651138,
0.1062295064330101,
-0.5314168334007263,
-0.1330564171075821,
-0.8305408358573914,
... |
func (m *DiagnosisMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.6553725004196167,
-0.19618527591228485,
0.688190758228302,
0.3316151201725006,
0.3590380847454071,
-0.10505055636167526,
0.25985240936279297,
0.6993705630302429,
1.2339824438095093,
0.16198982298374176,
-0.18564768135547638,
-0.8875905871391296,
-0.44245192408561707,
0.43372154235839844... |
func (m *DiagnosisMutation) SetDiagnosticMessages(s string) {
m._DiagnosticMessages = &s
} | [
-0.3414233326911926,
0.4530715048313141,
0.2155265510082245,
0.6488027572631836,
0.1297411471605301,
0.21857278048992157,
0.19013658165931702,
-0.5264397859573364,
0.1901850551366806,
-0.6362137794494629,
-0.2243136167526245,
-0.5684727430343628,
0.12121421098709106,
-0.03861915320158005,
... |
func (m *DiagnosisMutation) DiagnosticMessages() (r string, exists bool) {
v := m._DiagnosticMessages
if v == nil {
return
}
return *v, true
} | [
-0.9946955442428589,
0.5725350379943848,
0.45322179794311523,
0.759544849395752,
0.5867350697517395,
-0.28879037499427795,
0.20740275084972382,
-0.45000067353248596,
0.5204290747642517,
0.14574788510799408,
-0.027557313442230225,
-1.4346522092819214,
-0.5867077112197876,
-0.343429088592529... |
func (m *DiagnosisMutation) OldDiagnosticMessages(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldDiagnosticMessages is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldDiagnosticMessages requires an ID field ... | [
-0.9990784525871277,
0.28318217396736145,
0.4439663290977478,
0.568719208240509,
0.216062530875206,
-0.17486053705215454,
0.3863963782787323,
-0.833042323589325,
0.5306344032287598,
0.0911441370844841,
0.193174809217453,
-0.40015244483947754,
0.138165682554245,
0.500351071357727,
-0.3879... |
func (m *DiagnosisMutation) ResetDiagnosticMessages() {
m._DiagnosticMessages = nil
} | [
-0.5843333601951599,
0.6255872845649719,
0.24751731753349304,
1.0875059366226196,
0.5272423624992371,
-0.1623114049434662,
0.3745034635066986,
-0.9963867664337158,
-0.3722113072872162,
-0.3108924329280853,
-0.06982927769422531,
0.4017666280269623,
-0.2724686563014984,
-0.21806445717811584,... |
func (m *DiagnosisMutation) SetSurveillancePeriod(s string) {
m._SurveillancePeriod = &s
} | [
1.4097747802734375,
-0.0957510769367218,
0.13436348736286163,
0.5551896691322327,
-0.43373870849609375,
0.8296396136283875,
0.874807596206665,
0.13252408802509308,
0.9053295254707336,
0.38947340846061707,
-0.7115956544876099,
-0.06491412222385406,
-0.12085605412721634,
0.020934149622917175... |
func (m *DiagnosisMutation) SurveillancePeriod() (r string, exists bool) {
v := m._SurveillancePeriod
if v == nil {
return
}
return *v, true
} | [
0.6578003764152527,
0.058744896203279495,
0.4194420576095581,
0.42937204241752625,
0.004370611626654863,
0.5991238355636597,
0.33752191066741943,
-0.2511020004749298,
1.0186771154403687,
0.46381956338882446,
-0.2845730185508728,
-0.38122206926345825,
-0.6291926503181458,
-0.224741145968437... |
func (m *DiagnosisMutation) OldSurveillancePeriod(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldSurveillancePeriod is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldSurveillancePeriod requires an ID field ... | [
0.5165224075317383,
0.25569576025009155,
0.29325273633003235,
0.0035684960894286633,
-0.45650821924209595,
0.425380676984787,
0.5520904064178467,
-0.5250810980796814,
1.073521375656128,
0.7756271362304688,
0.21062573790550232,
-0.05970398336648941,
0.2241983264684677,
0.3817374110221863,
... |
func (m *DiagnosisMutation) ResetSurveillancePeriod() {
m._SurveillancePeriod = nil
} | [
1.2253031730651855,
0.1190127357840538,
0.18836519122123718,
0.8647480607032776,
-0.15830066800117493,
0.6004900932312012,
1.0625462532043457,
-0.38142678141593933,
0.41640040278434753,
0.32745882868766785,
-0.22453096508979797,
0.47912541031837463,
-0.29173916578292847,
-0.409191906452178... |
func (m *DiagnosisMutation) SetDiagnosisDate(s string) {
m._DiagnosisDate = &s
} | [
-0.28893542289733887,
0.403647780418396,
0.13907872140407562,
0.2625366449356079,
-0.9657576084136963,
-0.047976426780223846,
0.22261780500411987,
0.919675350189209,
-0.2092161625623703,
-0.3247515559196472,
-0.3915785551071167,
-1.4759042263031006,
0.5888208746910095,
0.5423735976219177,
... |
func (m *DiagnosisMutation) DiagnosisDate() (r string, exists bool) {
v := m._DiagnosisDate
if v == nil {
return
}
return *v, true
} | [
-0.5924229621887207,
0.5048781633377075,
0.5156083703041077,
0.5498263835906982,
-0.4079706072807312,
-0.31493574380874634,
-0.4562900960445404,
0.4411533772945404,
-0.08807694166898727,
0.2400277704000473,
0.03063800185918808,
-1.690537929534912,
-0.12185817956924438,
0.07601858675479889,... |
func (m *DiagnosisMutation) OldDiagnosisDate(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldDiagnosisDate is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldDiagnosisDate requires an ID field in the mutation... | [
-0.5708823204040527,
0.15414997935295105,
0.20509730279445648,
0.24501989781856537,
-0.7674601078033447,
-0.4497970938682556,
0.07214755564928055,
0.462615966796875,
0.5357802510261536,
0.0456760972738266,
0.03274985030293465,
-0.6195061802864075,
0.10300735384225845,
0.5603158473968506,
... |
func (m *DiagnosisMutation) ResetDiagnosisDate() {
m._DiagnosisDate = nil
} | [
-0.4725348949432373,
0.6166748404502869,
0.0768524557352066,
0.6121228933334351,
-0.622776448726654,
-0.6186748147010803,
0.5586639642715454,
0.6422871947288513,
-0.6051127314567566,
-0.4934079349040985,
-0.3393954038619995,
-0.1860743761062622,
-0.013708788901567459,
-0.2391912043094635,
... |
func (m *DiagnosisMutation) AddDiseaseIDs(ids ...int) {
if m.disease == nil {
m.disease = make(map[int]struct{})
}
for i := range ids {
m.disease[ids[i]] = struct{}{}
}
} | [
-1.6311936378479004,
-0.4353524148464203,
0.3530120253562927,
-0.5031514167785645,
-0.3487139642238617,
-0.2652450501918793,
-0.7720701098442078,
0.8441718220710754,
0.637477457523346,
-0.03652947396039963,
-0.4693918824195862,
-0.08043301850557327,
0.3635927736759186,
0.1378767043352127,
... |
func (m *DiagnosisMutation) RemoveDiseaseIDs(ids ...int) {
if m.removeddisease == nil {
m.removeddisease = make(map[int]struct{})
}
for i := range ids {
m.removeddisease[ids[i]] = struct{}{}
}
} | [
-0.9044398665428162,
-0.42115867137908936,
0.39224186539649963,
-0.13625021278858185,
-0.579544723033905,
-0.7446584701538086,
0.07035696506500244,
1.4698421955108643,
0.5321489572525024,
0.45498767495155334,
-1.2772064208984375,
-0.3419182598590851,
-0.3358634412288666,
-0.122436806559562... |
func (m *DiagnosisMutation) RemovedDiseaseIDs() (ids []int) {
for id := range m.removeddisease {
ids = append(ids, id)
}
return
} | [
-0.02057766728103161,
-1.1040147542953491,
0.368822306394577,
-0.23351874947547913,
-0.8147914409637451,
-0.3483965992927551,
-0.4483083188533783,
0.9738808870315552,
1.0704214572906494,
-0.3779173791408539,
-0.8634753227233887,
0.7169649600982666,
-0.10592633485794067,
0.36738619208335876... |
func (m *DiagnosisMutation) DiseaseIDs() (ids []int) {
for id := range m.disease {
ids = append(ids, id)
}
return
} | [
-1.3385710716247559,
-0.7927303314208984,
0.02401096560060978,
-0.3414207994937897,
-0.29507067799568176,
-0.2823634147644043,
-0.7277383208274841,
0.9563996195793152,
0.8179001808166504,
0.2749135196208954,
0.33582058548927307,
0.9361737966537476,
-0.35296133160591125,
0.2634366452693939,... |
func (m *DiagnosisMutation) ResetDisease() {
m.disease = nil
m.removeddisease = nil
} | [
0.22464625537395477,
-0.10169067978858948,
0.20668968558311462,
0.5964818596839905,
0.2302010953426361,
-0.7357587814331055,
-0.4204714000225067,
0.8297852277755737,
-0.09731277078390121,
-0.7793189883232117,
-0.021732673048973083,
0.4177338778972626,
-0.3004545569419861,
0.034015834331512... |
func (m *DiagnosisMutation) SetPatientID(id int) {
m.patient = &id
} | [
-0.5598270297050476,
0.04096994921565056,
-0.04079069942235947,
0.4624013304710388,
-0.6342787146568298,
0.6782777309417725,
-0.16935434937477112,
0.8863773345947266,
0.49368977546691895,
-0.008166658692061901,
0.031415265053510666,
-0.08293431997299194,
-0.18249568343162537,
0.66611301898... |
func (m *DiagnosisMutation) ClearPatient() {
m.clearedpatient = true
} | [
-0.6039319038391113,
0.6519749760627747,
0.12789006531238556,
0.3297117352485657,
-0.8326362371444702,
0.7289417386054993,
-0.10875847190618515,
0.18872039020061493,
-0.06402185559272766,
-0.20374883711338043,
0.7290737628936768,
0.1143120601773262,
0.22298455238342285,
-0.2312525808811187... |
func (m *DiagnosisMutation) PatientCleared() bool {
return m.clearedpatient
} | [
0.1120985671877861,
-0.350420206785202,
0.19940200448036194,
0.23393574357032776,
-0.895033597946167,
0.33134710788726807,
-0.33635756373405457,
-0.08549728989601135,
0.1517494171857834,
-0.2010791003704071,
0.13336271047592163,
0.015626994892954826,
0.17997810244560242,
-0.595624566078186... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.