text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m DrugTypeMutation) 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.1649763137102127,
0.6512763500213623,
0.34779614210128784,
-0.0010000900365412235,
0.7412745356559753,
-0.6856258511543274,
-0.08298351615667343,
0.2669050395488739,
0.2924003303050995,
0.4589039981365204,
-0.21863315999507904,
-0.19668759405612946,
-0.6517906188964844,
-0.5960837006568... |
func (m *DrugTypeMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.853752076625824,
0.16480165719985962,
0.5362600088119507,
0.29104292392730713,
0.6648309826850891,
-0.4542178511619568,
0.07133878767490387,
0.19993701577186584,
0.6650146842002869,
1.0451425313949585,
-0.5447761416435242,
-0.7589874267578125,
-1.2119426727294922,
0.6047804951667786,
... |
func (m *DrugTypeMutation) SetDrugTypeName(s string) {
m._DrugTypeName = &s
} | [
-1.1071900129318237,
0.7121178507804871,
0.2588176429271698,
0.28385981917381287,
0.4764733910560608,
-1.4730224609375,
0.6738613247871399,
-0.05587324872612953,
-0.805948793888092,
0.45122581720352173,
-1.289894938468933,
-0.8395448327064514,
-0.2862676680088043,
0.006077327765524387,
-... |
func (m *DrugTypeMutation) DrugTypeName() (r string, exists bool) {
v := m._DrugTypeName
if v == nil {
return
}
return *v, true
} | [
-1.5150165557861328,
1.2266850471496582,
0.5145811438560486,
-0.048999667167663574,
0.0773044154047966,
-1.4559268951416016,
-0.2610477805137634,
0.28505241870880127,
-0.2844868302345276,
1.2664308547973633,
-0.9374030828475952,
-1.2900667190551758,
-0.7027283906936646,
-0.2426091730594635... |
func (m *DrugTypeMutation) OldDrugTypeName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldDrugTypeName is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldDrugTypeName requires an ID field in the mutation")
... | [
-1.1841577291488647,
0.21127496659755707,
0.4739173650741577,
-0.016206888481974602,
-0.04994366317987442,
-1.3352422714233398,
-0.01150011271238327,
-0.15200693905353546,
-0.5047239065170288,
0.9534352421760559,
-0.31810322403907776,
-0.5619210600852966,
-0.11539164930582047,
0.4381527602... |
func (m *DrugTypeMutation) ResetDrugTypeName() {
m._DrugTypeName = nil
} | [
-0.6794031262397766,
0.445561021566391,
0.09924236685037613,
0.5546395778656006,
0.5940111875534058,
-1.4486920833587646,
0.49261611700057983,
-0.20837517082691193,
-1.1427372694015503,
0.597527027130127,
-0.8635470271110535,
0.12658417224884033,
-0.8349363207817078,
-0.42752358317375183,
... |
func (m *DrugTypeMutation) AddDrugIDs(ids ...int) {
if m.drug == nil {
m.drug = make(map[int]struct{})
}
for i := range ids {
m.drug[ids[i]] = struct{}{}
}
} | [
-1.6581007242202759,
0.23451925814151764,
0.18841847777366638,
-0.6146364808082581,
0.94036465883255,
-0.880263090133667,
-0.8730118274688721,
0.26327869296073914,
-0.5931794047355652,
0.7738233804702759,
-0.4356715679168701,
-0.0654873326420784,
-0.754539966583252,
-0.007481361273676157,
... |
func (m *DrugTypeMutation) RemoveDrugIDs(ids ...int) {
if m.removeddrug == nil {
m.removeddrug = make(map[int]struct{})
}
for i := range ids {
m.removeddrug[ids[i]] = struct{}{}
}
} | [
-0.8051610589027405,
-0.013602853752672672,
0.17532294988632202,
-0.42170146107673645,
0.4900113344192505,
-1.4471946954727173,
-0.1560395509004593,
0.8470099568367004,
-0.5641612410545349,
0.46819424629211426,
-1.12330162525177,
-0.2967107892036438,
-1.1353989839553833,
-0.081711575388908... |
func (m *DrugTypeMutation) RemovedDrugIDs() (ids []int) {
for id := range m.removeddrug {
ids = append(ids, id)
}
return
} | [
-0.608354926109314,
-0.5530411005020142,
0.2997283339500427,
-0.44496384263038635,
0.12023303657770157,
-1.1745355129241943,
-0.15699449181556702,
0.8968585133552551,
-0.07971952110528946,
0.5109520554542542,
-0.982711136341095,
0.9369189143180847,
-0.7565872073173523,
0.3312872648239136,
... |
func (m *DrugTypeMutation) DrugIDs() (ids []int) {
for id := range m.drug {
ids = append(ids, id)
}
return
} | [
-1.1076823472976685,
-0.2420339584350586,
-0.0007516543264500797,
-0.24736155569553375,
0.7237811088562012,
-0.7601318359375,
-0.7961085438728333,
0.670783519744873,
-0.1387290507555008,
0.7511889338493347,
-0.11862771958112717,
0.9291660189628601,
-1.2062097787857056,
0.13105523586273193,... |
func (m *DrugTypeMutation) ResetDrug() {
m.drug = nil
m.removeddrug = nil
} | [
-0.0027710371650755405,
0.5648729801177979,
0.057841528207063675,
0.8748703598976135,
1.2889302968978882,
-0.1251554936170578,
0.34302186965942383,
1.196024775505066,
-0.9858546257019043,
-0.5046910047531128,
-0.13617733120918274,
0.6431401968002319,
-0.4166397452354431,
-0.183502450585365... |
func (m *DrugTypeMutation) Op() Op {
return m.op
} | [
-1.1572387218475342,
0.3946079909801483,
0.05432431027293205,
0.5991283655166626,
0.2509925961494446,
-0.013736826367676258,
0.6398598551750183,
0.5101645588874817,
0.13416217267513275,
0.970389187335968,
0.17876458168029785,
-0.5397557616233826,
-0.2738867402076721,
-0.6903901100158691,
... |
func (m *DrugTypeMutation) Type() string {
return m.typ
} | [
-0.740635335445404,
-0.44185304641723633,
0.04114806279540062,
0.3311161696910858,
0.8543292880058289,
-0.25140485167503357,
0.4945019483566284,
-0.7720620632171631,
0.3642389178276062,
0.6283189058303833,
0.3471025824546814,
-0.10842730104923248,
-0.8518324494361877,
0.21709570288658142,
... |
func (m *DrugTypeMutation) Fields() []string {
fields := make([]string, 0, 1)
if m._DrugTypeName != nil {
fields = append(fields, drugtype.FieldDrugTypeName)
}
return fields
} | [
-1.260022521018982,
0.21825134754180908,
0.12651170790195465,
-0.7506832480430603,
1.133056879043579,
-0.6301614046096802,
-0.7896409630775452,
-0.10254721343517303,
0.18124474585056305,
0.6382960677146912,
-0.5903210639953613,
-0.6430122256278992,
-0.724263072013855,
0.16143876314163208,
... |
func (m *DrugTypeMutation) Field(name string) (ent.Value, bool) {
switch name {
case drugtype.FieldDrugTypeName:
return m.DrugTypeName()
}
return nil, false
} | [
-1.4693644046783447,
0.38339927792549133,
0.5431583523750305,
-0.7288510203361511,
0.2542247176170349,
-0.3876425623893738,
-1.2224757671356201,
0.0017321818741038442,
-0.18152020871639252,
0.7762588858604431,
-0.5195807218551636,
-0.9264216423034668,
-0.40564554929733276,
0.37211832404136... |
func (m *DrugTypeMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case drugtype.FieldDrugTypeName:
return m.OldDrugTypeName(ctx)
}
return nil, fmt.Errorf("unknown DrugType field %s", name)
} | [
-0.5877824425697327,
0.5640292763710022,
0.33477991819381714,
-1.1991667747497559,
0.5851507186889648,
-0.5724214911460876,
-0.37666094303131104,
-0.27864381670951843,
-0.009889247827231884,
0.538697361946106,
-0.12823082506656647,
-0.22922004759311676,
-0.41810569167137146,
0.073715686798... |
func (m *DrugTypeMutation) SetField(name string, value ent.Value) error {
switch name {
case drugtype.FieldDrugTypeName:
v, ok := value.(string)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetDrugTypeName(v)
return nil
}
return fmt.Errorf("unknown DrugType field %s", ... | [
-1.247135043144226,
0.6542500853538513,
0.3673866391181946,
-0.5069260597229004,
0.33021464943885803,
-0.09159461408853531,
-0.8402776718139648,
-0.08677362650632858,
-0.538759708404541,
0.6598652005195618,
-0.25594231486320496,
-0.4971047043800354,
-0.35554540157318115,
0.5616838335990906... |
func (m *DrugTypeMutation) AddedFields() []string {
return nil
} | [
-0.3553316593170166,
0.6963052153587341,
0.4165942668914795,
-0.347832053899765,
0.6803585886955261,
0.2222594916820526,
0.12384308874607086,
-0.0051733055151999,
0.5731281042098999,
-0.6224104166030884,
-0.6178100109100342,
-0.41059303283691406,
-1.5996125936508179,
0.22076654434204102,
... |
func (m *DrugTypeMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.4674663543701172,
0.8002995848655701,
0.7154675722122192,
-0.6311327815055847,
0.13139714300632477,
0.6150321960449219,
-0.5146845579147339,
0.1229010671377182,
0.18131661415100098,
-0.07739590108394623,
-0.8276410698890686,
-1.172311544418335,
-1.6696442365646362,
0.11762295663356781,
... |
func (m *DrugTypeMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown DrugType numeric field %s", name)
} | [
-1.011346459388733,
0.8860254883766174,
0.5390788912773132,
-0.1898418515920639,
0.30970054864883423,
0.6906098127365112,
-1.2200428247451782,
-0.28230011463165283,
-0.532442033290863,
0.23279717564582825,
0.052680984139442444,
-1.0719318389892578,
-0.3353063464164734,
0.31692782044410706,... |
func (m *DrugTypeMutation) ClearedFields() []string {
return nil
} | [
-0.29891955852508545,
0.9538477659225464,
0.35196003317832947,
-0.21627378463745117,
-0.10350584983825684,
0.13882485032081604,
0.09078680723905563,
-0.537701427936554,
0.4022931158542633,
0.7752668261528015,
-0.40168455243110657,
-0.2706754207611084,
-1.2482445240020752,
-0.62297713756561... |
func (m *DrugTypeMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.8500123023986816,
0.416524201631546,
0.7097955346107483,
-0.5277255177497864,
-0.014266629703342915,
-0.02768874168395996,
-0.9000083208084106,
0.018297411501407623,
-0.3962877094745636,
0.19157181680202484,
-0.8804078698158264,
-0.4792883098125458,
0.11165595054626465,
-0.3446993529796... |
func (m *DrugTypeMutation) ClearField(name string) error {
return fmt.Errorf("unknown DrugType nullable field %s", name)
} | [
-0.2338680922985077,
1.0403375625610352,
0.4731311798095703,
-0.553897500038147,
-0.09372350573539734,
0.1024017259478569,
-0.7825452089309692,
-0.5465638041496277,
-0.09278250485658646,
1.2227699756622314,
-0.2789553999900818,
-0.637517511844635,
-0.4066363275051117,
0.13977943360805511,
... |
func (m *DrugTypeMutation) ResetField(name string) error {
switch name {
case drugtype.FieldDrugTypeName:
m.ResetDrugTypeName()
return nil
}
return fmt.Errorf("unknown DrugType field %s", name)
} | [
-0.7818053960800171,
1.134811520576477,
0.26057201623916626,
-0.40492141246795654,
0.8911344408988953,
-0.6480626463890076,
-0.15121930837631226,
-0.016004696488380432,
-0.3678300678730011,
0.9295147657394409,
-0.3159600794315338,
-0.3437412679195404,
-0.7941603064537048,
-0.28304067254066... |
func (m *DrugTypeMutation) AddedEdges() []string {
edges := make([]string, 0, 1)
if m.drug != nil {
edges = append(edges, drugtype.EdgeDrug)
}
return edges
} | [
-0.6416246891021729,
0.04659494757652283,
0.34891024231910706,
-0.02535632625222206,
0.9440343379974365,
-0.26114729046821594,
-1.2944846153259277,
0.167205348610878,
0.7899237275123596,
0.6673913598060608,
0.5523565411567688,
0.09531328827142715,
-0.8500491380691528,
0.8313673734664917,
... |
func (m *DrugTypeMutation) AddedIDs(name string) []ent.Value {
switch name {
case drugtype.EdgeDrug:
ids := make([]ent.Value, 0, len(m.drug))
for id := range m.drug {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-1.0439387559890747,
-0.27957257628440857,
0.33098888397216797,
-0.9854080080986023,
0.5950927138328552,
-0.14105606079101562,
-1.1616861820220947,
0.14268264174461365,
0.2654210031032562,
0.6613211035728455,
0.2042904794216156,
0.48803403973579407,
-0.7384961843490601,
0.6548967957496643,... |
func (m *DrugTypeMutation) RemovedEdges() []string {
edges := make([]string, 0, 1)
if m.removeddrug != nil {
edges = append(edges, drugtype.EdgeDrug)
}
return edges
} | [
-0.384594202041626,
-0.034959256649017334,
0.47110262513160706,
0.10484690219163895,
0.6372181177139282,
-0.880042552947998,
-0.5667955875396729,
0.7542291283607483,
0.5450616478919983,
0.8009660243988037,
-0.3077370524406433,
0.02833290584385395,
-1.1247332096099854,
0.5100142359733582,
... |
func (m *DrugTypeMutation) RemovedIDs(name string) []ent.Value {
switch name {
case drugtype.EdgeDrug:
ids := make([]ent.Value, 0, len(m.removeddrug))
for id := range m.removeddrug {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-0.8150157928466797,
-0.5047595500946045,
0.4778877794742584,
-0.8437846899032593,
0.5235681533813477,
-0.7283493876457214,
-0.7889386415481567,
0.6753384470939636,
0.19349558651447296,
0.8619918823242188,
-0.7431298494338989,
0.24060939252376556,
-0.9796403050422668,
0.30529847741127014,
... |
func (m *DrugTypeMutation) ClearedEdges() []string {
edges := make([]string, 0, 1)
return edges
} | [
-0.9305062294006348,
-0.016522910445928574,
0.4247850775718689,
0.34806445240974426,
-0.33738407492637634,
-0.13752390444278717,
-0.8806613683700562,
-0.7395420670509338,
0.5175352096557617,
1.7450339794158936,
0.37221360206604004,
0.7236738204956055,
-1.019700527191162,
-0.265419930219650... |
func (m *DrugTypeMutation) EdgeCleared(name string) bool {
switch name {
}
return false
} | [
-1.2539278268814087,
0.03937835246324539,
0.5288931727409363,
-0.5906360745429993,
-0.35444048047065735,
0.1587202548980713,
-0.9229605197906494,
-0.3755384385585785,
-0.34960660338401794,
0.8697220087051392,
-0.1170591488480568,
-0.4197896122932434,
-0.9831655025482178,
0.1936551183462143... |
func (m *DrugTypeMutation) ClearEdge(name string) error {
switch name {
}
return fmt.Errorf("unknown DrugType unique edge %s", name)
} | [
-1.1438032388687134,
1.2252873182296753,
0.33952608704566956,
0.40963754057884216,
0.024891842156648636,
-0.35535210371017456,
-0.44911494851112366,
0.34683850407600403,
-0.3768637478351593,
1.3897837400436401,
0.04223473370075226,
-0.09369447827339172,
-0.5451540350914001,
0.6379640102386... |
func (m *DrugTypeMutation) ResetEdge(name string) error {
switch name {
case drugtype.EdgeDrug:
m.ResetDrug()
return nil
}
return fmt.Errorf("unknown DrugType edge %s", name)
} | [
-1.307836651802063,
0.8932266235351562,
0.24685977399349213,
0.5036966800689697,
1.2145054340362549,
-1.1185518503189087,
-0.3488885164260864,
0.8776983022689819,
-0.8317581415176392,
1.5142858028411865,
0.1704842448234558,
-0.10474834591150284,
-1.0398857593536377,
0.10875532031059265,
... |
func newEmployeeMutation(c config, op Op, opts ...employeeOption) *EmployeeMutation {
m := &EmployeeMutation{
config: c,
op: op,
typ: TypeEmployee,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.2017971277236938,
-0.5319694876670837,
0.5558911561965942,
0.5229299664497375,
-0.770689845085144,
0.12090238928794861,
0.5524633526802063,
0.6319747567176819,
0.48697343468666077,
1.0002479553222656,
-0.9506080150604248,
-0.2439187914133072,
-0.9593521356582642,
-0.5667229890823364,
... |
func withEmployeeID(id int) employeeOption {
return func(m *EmployeeMutation) {
var (
err error
once sync.Once
value *Employee
)
m.oldValue = func(ctx context.Context) (*Employee, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
... | [
-0.22088725864887238,
-0.6270272731781006,
0.5554329752922058,
-0.580111563205719,
-0.19667983055114746,
0.4203631281852722,
-0.011843397282063961,
-0.339758038520813,
0.6705305576324463,
0.856734037399292,
-0.4061608910560608,
0.2826862037181854,
-0.022999359294772148,
0.6685886979103088,... |
func withEmployee(node *Employee) employeeOption {
return func(m *EmployeeMutation) {
m.oldValue = func(context.Context) (*Employee, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.11812275648117065,
-0.20136384665966034,
0.46662935614585876,
-0.547197699546814,
-0.08516889065504074,
0.2548966109752655,
0.4832073152065277,
-0.17079263925552368,
0.0660380870103836,
0.08748306334018707,
-0.5556771755218506,
-0.0684606209397316,
0.49652862548828125,
-0.10840417444705... |
func (m EmployeeMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.5984085202217102,
-0.42595887184143066,
0.0542430654168129,
0.021624421700835228,
-0.4390740990638733,
0.3924808204174042,
0.6797236204147339,
-0.11160821467638016,
0.2562827467918396,
-0.21044699847698212,
-0.5116709470748901,
0.4445682466030121,
-0.2543046176433563,
-0.987139582633972... |
func (m EmployeeMutation) 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.24322910606861115,
0.2521781027317047,
0.370394229888916,
0.45359906554222107,
0.1855657696723938,
0.10456225275993347,
-0.2006436288356781,
0.5266879796981812,
0.411739706993103,
0.2464292347431183,
-0.2644703686237335,
-0.22596397995948792,
-0.5148346424102783,
-0.9358664155006409,
... |
func (m *EmployeeMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.8668065071105957,
-0.17236343026161194,
0.5862860679626465,
0.4846746027469635,
0.21704009175300598,
0.3900834619998932,
0.19872978329658508,
0.5350982546806335,
0.8792524337768555,
0.6399794816970825,
-0.30822309851646423,
-0.5159810185432434,
-1.0877052545547485,
0.38278284668922424,
... |
func (m *EmployeeMutation) SetUserId(s string) {
m._UserId = &s
} | [
0.1749546378850937,
0.28141501545906067,
0.12361333519220352,
0.978441596031189,
-0.8776921033859253,
0.9765733480453491,
1.023946762084961,
1.1428312063217163,
0.11844974011182785,
-0.33398422598838806,
-0.20425179600715637,
-0.0011616074480116367,
-0.05666493624448776,
0.6081962585449219... |
func (m *EmployeeMutation) UserId() (r string, exists bool) {
v := m._UserId
if v == nil {
return
}
return *v, true
} | [
-0.7315153479576111,
0.41406288743019104,
0.456246018409729,
0.44674211740493774,
-0.4416239559650421,
0.552108883857727,
0.626562774181366,
0.2403212934732437,
0.8376145362854004,
0.6585493683815002,
-0.20220158994197845,
-0.6137906908988953,
-0.4086814522743225,
0.10318610072135925,
-0... |
func (m *EmployeeMutation) OldUserId(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldUserId is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldUserId requires an ID field in the mutation")
}
oldValue, err :... | [
-0.36830461025238037,
-0.36402657628059387,
0.4711335003376007,
0.3922828137874603,
-0.6124238967895508,
0.955781102180481,
0.7268385887145996,
0.29994747042655945,
0.5830467939376831,
0.5547040104866028,
0.7380567789077759,
0.5104876756668091,
-0.676853358745575,
0.8546031713485718,
-0.... |
func (m *EmployeeMutation) ResetUserId() {
m._UserId = nil
} | [
-0.11093789339065552,
0.06925389170646667,
0.06079035624861717,
1.1069598197937012,
-0.3953612744808197,
0.25621896982192993,
1.3760207891464233,
1.0263142585754395,
-0.22707143425941467,
-0.011373184621334076,
0.07651723176240921,
1.0933226346969604,
-0.6359047889709473,
0.177633315324783... |
func (m *EmployeeMutation) SetEmployeeName(s string) {
m._EmployeeName = &s
} | [
-1.434619665145874,
0.10081523656845093,
0.36690035462379456,
0.4317249059677124,
-0.6625555157661438,
-0.22685176134109497,
0.7053498029708862,
1.1621922254562378,
0.049179185181856155,
0.0713927298784256,
-0.9675045013427734,
-1.066529631614685,
0.16531838476657867,
0.691414475440979,
... |
func (m *EmployeeMutation) EmployeeName() (r string, exists bool) {
v := m._EmployeeName
if v == nil {
return
}
return *v, true
} | [
-1.8995543718338013,
0.4424126148223877,
0.6164663434028625,
0.3215872645378113,
-0.7848897576332092,
-0.15971314907073975,
0.08871785551309586,
0.17483648657798767,
0.13198168575763702,
0.7601466774940491,
-0.368456095457077,
-0.7090490460395813,
-0.6576938629150391,
-0.04047118499875069,... |
func (m *EmployeeMutation) OldEmployeeName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldEmployeeName is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldEmployeeName requires an ID field in the mutation")
... | [
-1.548844575881958,
-0.449282705783844,
0.7968121767044067,
0.30082228779792786,
-0.6746659874916077,
-0.0005097558605484664,
0.3227488398551941,
0.2031993269920349,
0.658454418182373,
0.6288424730300903,
-0.10296466201543808,
-0.4755988121032715,
-0.43447646498680115,
0.5027872323989868,
... |
func (m *EmployeeMutation) ResetEmployeeName() {
m._EmployeeName = nil
} | [
-1.0478875637054443,
-0.08589787036180496,
0.23946446180343628,
0.8987870216369629,
-0.390517920255661,
-0.2886463701725006,
0.2877887785434723,
0.5740568041801453,
-0.23940697312355042,
0.1259605586528778,
-0.32529670000076294,
-0.05462646484375,
-0.71480393409729,
-0.3486272692680359,
... |
func (m *EmployeeMutation) SetTel(s string) {
m._Tel = &s
} | [
-0.26059049367904663,
0.6343346834182739,
0.016870206221938133,
0.18966510891914368,
-1.118735909461975,
0.7112519145011902,
0.028663087636232376,
0.0038070492446422577,
0.3929184675216675,
-1.0966062545776367,
-0.7393056750297546,
-0.5112360715866089,
0.22660768032073975,
-0.5346448421478... |
func (m *EmployeeMutation) Tel() (r string, exists bool) {
v := m._Tel
if v == nil {
return
}
return *v, true
} | [
-0.9737587571144104,
0.5235000252723694,
0.293996125459671,
-0.06818761676549911,
-0.8778599500656128,
0.4277306795120239,
-0.36903536319732666,
-0.2223537564277649,
0.16121633350849152,
0.024857329204678535,
-0.49587929248809814,
-0.7481693029403687,
-0.291454017162323,
-1.251896739006042... |
func (m *EmployeeMutation) OldTel(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldTel is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldTel requires an ID field in the mutation")
}
oldValue, err := m.oldVa... | [
-0.68848717212677,
-0.3148563802242279,
0.5897192358970642,
-0.13718880712985992,
-0.8152921199798584,
0.549649715423584,
0.009584414772689342,
-0.9361972808837891,
0.5489387512207031,
0.5751597881317139,
0.4478766918182373,
-0.2612107992172241,
-0.0764167457818985,
0.19579491019248962,
... |
func (m *EmployeeMutation) ResetTel() {
m._Tel = nil
} | [
-0.44444704055786133,
0.5074526071548462,
0.06984054297208786,
0.44320645928382874,
-0.507930338382721,
0.49246424436569214,
0.2193998098373413,
-0.18839214742183685,
0.09220006316900253,
-0.6658434867858887,
-0.2843867242336273,
-0.006614601239562035,
-0.24340924620628357,
-0.427105128765... |
func (m *EmployeeMutation) SetBirthdayDate(t time.Time) {
m._BirthdayDate = &t
} | [
0.014658658765256405,
0.6658138632774353,
0.4470941126346588,
0.48315685987472534,
-0.05247484892606735,
0.22613179683685303,
0.46501287817955017,
0.9125023484230042,
-0.9570730328559875,
-0.44605353474617004,
-0.7309860587120056,
-0.18446654081344604,
-0.3052091896533966,
1.32847476005554... |
func (m *EmployeeMutation) BirthdayDate() (r time.Time, exists bool) {
v := m._BirthdayDate
if v == nil {
return
}
return *v, true
} | [
-0.16799423098564148,
1.2657157182693481,
0.5197836756706238,
0.2947580814361572,
-0.21126356720924377,
-0.008162683807313442,
-0.34749501943588257,
0.3676905035972595,
-0.5989598631858826,
0.3164275884628296,
-0.39023876190185547,
-0.44980067014694214,
-0.6632677316665649,
0.3919275104999... |
func (m *EmployeeMutation) OldBirthdayDate(ctx context.Context) (v time.Time, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldBirthdayDate is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldBirthdayDate requires an ID field in the mutation"... | [
-0.2501051425933838,
0.36458760499954224,
0.6367267966270447,
0.6242570281028748,
-0.4225023090839386,
0.04522981494665146,
0.47739821672439575,
0.32127857208251953,
-0.08306439220905304,
0.030659757554531097,
-0.4158574044704437,
-0.10603590309619904,
-0.8530730605125427,
1.25370121002197... |
func (m *EmployeeMutation) ResetBirthdayDate() {
m._BirthdayDate = nil
} | [
0.15239466726779938,
0.689516544342041,
0.3176630139350891,
0.8451669216156006,
-0.03132360428571701,
-0.1486455351114273,
0.7196640372276306,
0.8681492805480957,
-1.022372841835022,
-0.4906523823738098,
-0.37091290950775146,
0.41904428601264954,
-0.9974980354309082,
0.22108560800552368,
... |
func (m *EmployeeMutation) SetEmail(s string) {
m._Email = &s
} | [
-0.8117584586143494,
1.0436809062957764,
0.028182409703731537,
0.7056964039802551,
-0.4607931077480316,
0.33303648233413696,
0.38616278767585754,
0.9660535454750061,
-0.4966718256473541,
-0.5344502925872803,
-0.1540621519088745,
0.01980627328157425,
-0.10776916146278381,
-0.252326339483261... |
func (m *EmployeeMutation) Email() (r string, exists bool) {
v := m._Email
if v == nil {
return
}
return *v, true
} | [
-1.6923980712890625,
0.9085693955421448,
0.4534079432487488,
0.5867970585823059,
-0.3302556872367859,
-0.22332903742790222,
0.09586232155561447,
-0.0728822723031044,
-0.5287639498710632,
0.6779040098190308,
0.05808689817786217,
-0.5657198429107666,
-0.42331403493881226,
-0.6216955184936523... |
func (m *EmployeeMutation) OldEmail(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldEmail is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldEmail requires an ID field in the mutation")
}
oldValue, err := m... | [
-0.7649269700050354,
-0.13620159029960632,
0.4091210961341858,
0.28548964858055115,
-0.10131397098302841,
0.2897481620311737,
0.1522434949874878,
-0.11207762360572815,
-0.06860245764255524,
0.4257028102874756,
0.6120589971542358,
0.5277426242828369,
-0.4472692310810089,
-0.2500993609428406... |
func (m *EmployeeMutation) ResetEmail() {
m._Email = nil
} | [
-0.7663491368293762,
0.8151674270629883,
0.10503432154655457,
0.6942442059516907,
0.24974094331264496,
-0.46519604325294495,
0.676387369632721,
0.789044201374054,
-0.8692310452461243,
-0.6460553407669067,
0.28285691142082214,
0.8796952366828918,
-0.6440289616584778,
-0.984339714050293,
-... |
func (m *EmployeeMutation) SetPassword(s string) {
m._Password = &s
} | [
-0.42969802021980286,
0.6266199946403503,
0.2985517382621765,
1.1104382276535034,
0.03032960183918476,
0.014246578328311443,
0.6647457480430603,
0.7507393956184387,
0.0003423523739911616,
-0.39630377292633057,
-0.6235333681106567,
-0.43628981709480286,
-0.10866432636976242,
0.0518290065228... |
func (m *EmployeeMutation) Password() (r string, exists bool) {
v := m._Password
if v == nil {
return
}
return *v, true
} | [
-1.3597438335418701,
0.4934622347354889,
0.7443133592605591,
0.361034631729126,
0.28754922747612,
-0.5464602708816528,
0.3039665222167969,
0.05039537325501442,
0.22960449755191803,
0.3246226906776428,
-0.16127486526966095,
-0.8842911720275879,
-0.47283047437667847,
-0.40846842527389526,
... |
func (m *EmployeeMutation) OldPassword(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldPassword is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldPassword requires an ID field in the mutation")
}
oldValue,... | [
-0.6756229996681213,
-0.20614206790924072,
0.6132023930549622,
0.5872980356216431,
0.22097302973270416,
0.03926246240735054,
0.24730658531188965,
-0.01616092398762703,
0.5791111588478088,
0.5984295010566711,
0.17136971652507782,
0.26655134558677673,
-0.3690963685512543,
0.4845825433731079,... |
func (m *EmployeeMutation) ResetPassword() {
m._Password = nil
} | [
-0.38622036576271057,
0.4870503842830658,
0.25722604990005493,
1.0503493547439575,
0.9530052542686462,
-0.4728265106678009,
1.0545560121536255,
0.8519555926322937,
-0.15985767543315887,
-0.31106892228126526,
-0.2876148521900177,
0.40547609329223633,
-0.7343482971191406,
-0.1388127356767654... |
func (m *EmployeeMutation) SetDepartmentID(id int) {
m.department = &id
} | [
-0.7990919351577759,
-0.36522427201271057,
0.09827902168035507,
0.5719531178474426,
-0.4731120467185974,
0.7002408504486084,
0.4148608148097992,
0.5391651391983032,
0.8719854950904846,
0.7095012664794922,
-0.30675163865089417,
0.7194318175315857,
0.5092924237251282,
1.443586826324463,
-0... |
func (m *EmployeeMutation) ClearDepartment() {
m.cleareddepartment = true
} | [
-0.7761763334274292,
0.716528594493866,
0.15060114860534668,
0.13588370382785797,
-0.04235009104013443,
0.3799940347671509,
0.4270718991756439,
-0.8013178706169128,
0.6808921098709106,
0.003443524707108736,
0.5265415906906128,
0.6030555367469788,
0.5546284914016724,
0.3882029354572296,
-... |
func (m *EmployeeMutation) DepartmentCleared() bool {
return m.cleareddepartment
} | [
-0.6623054146766663,
0.2272271066904068,
0.47787439823150635,
0.110915407538414,
-0.3669731616973877,
0.45615866780281067,
-0.37002190947532654,
-0.50731360912323,
0.7469432950019836,
-0.7131761908531189,
-0.10128134489059448,
0.48615309596061707,
0.23108604550361633,
-0.29654166102409363,... |
func (m *EmployeeMutation) DepartmentID() (id int, exists bool) {
if m.department != nil {
return *m.department, true
}
return
} | [
-0.4135644733905792,
-0.251499205827713,
0.6000974178314209,
0.23566551506519318,
0.060006044805049896,
0.7363505363464355,
0.23153141140937805,
0.6074950098991394,
1.305273175239563,
0.9249798655509949,
0.1804923415184021,
0.09169059991836548,
-0.26926368474960327,
0.971652090549469,
-1... |
func (m *EmployeeMutation) DepartmentIDs() (ids []int) {
if id := m.department; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.1825445890426636,
-0.1839761883020401,
0.17832621932029724,
0.2751135230064392,
0.21358497440814972,
0.11525995284318924,
-0.27088165283203125,
0.3780640959739685,
1.1583818197250366,
0.4112849235534668,
-0.3037891983985901,
0.7909116744995117,
-0.2368510365486145,
0.8913227915763855,
... |
func (m *EmployeeMutation) ResetDepartment() {
m.department = nil
m.cleareddepartment = false
} | [
-0.8369318842887878,
0.37299633026123047,
0.17783285677433014,
0.4183974862098694,
0.7494627833366394,
-0.5787018537521362,
1.0612568855285645,
-0.11420809477567673,
0.4751072824001312,
-0.4874076247215271,
0.24145159125328064,
0.7744952440261841,
-0.06192488595843315,
0.21067436039447784,... |
func (m *EmployeeMutation) SetPlaceID(id int) {
m.place = &id
} | [
-0.4213394820690155,
0.13312484323978424,
0.309550017118454,
0.29314735531806946,
-0.441854327917099,
0.9043853282928467,
0.07156583666801453,
0.8307749032974243,
1.5228228569030762,
0.6191088557243347,
-0.26989108324050903,
0.1342698186635971,
-0.8244485259056091,
1.0624299049377441,
-0... |
func (m *EmployeeMutation) ClearPlace() {
m.clearedplace = true
} | [
-0.1189650297164917,
0.34707775712013245,
0.22836224734783173,
-0.3289587199687958,
-0.49615180492401123,
0.3450855016708374,
0.5569503307342529,
0.4396930932998657,
1.1578013896942139,
0.0724225714802742,
0.3091692328453064,
-0.47839927673339844,
-0.5368802547454834,
0.030566444620490074,... |
func (m *EmployeeMutation) PlaceCleared() bool {
return m.clearedplace
} | [
-0.2211640328168869,
0.2538432478904724,
0.3319999575614929,
-0.33984076976776123,
-0.33348795771598816,
0.4104616045951843,
-0.03398807346820831,
0.19204223155975342,
0.45623788237571716,
-0.10640863329172134,
0.011463727802038193,
-0.37994351983070374,
-0.8317847847938538,
-0.06622925400... |
func (m *EmployeeMutation) PlaceID() (id int, exists bool) {
if m.place != nil {
return *m.place, true
}
return
} | [
-0.18005041778087616,
0.24358029663562775,
0.585444986820221,
0.08557069301605225,
0.20726479589939117,
0.5278277397155762,
-0.07138486951589584,
0.8234276175498962,
1.3409292697906494,
1.2285728454589844,
0.28417620062828064,
-0.6193022727966309,
-1.470992088317871,
0.6114493608474731,
... |
func (m *EmployeeMutation) PlaceIDs() (ids []int) {
if id := m.place; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.910584568977356,
0.2604777216911316,
0.263036847114563,
0.041751887649297714,
0.4285126328468323,
-0.0579109787940979,
-0.29736775159835815,
0.7383151054382324,
1.1697977781295776,
0.7658427357673645,
0.12487316876649857,
0.2569368779659271,
-1.3621957302093506,
0.6249202489852905,
-0... |
func (m *EmployeeMutation) ResetPlace() {
m.place = nil
m.clearedplace = false
} | [
-0.3246857225894928,
0.42182764410972595,
0.2319924235343933,
0.0529862679541111,
0.22205497324466705,
-0.5516912341117859,
0.75254887342453,
0.8497443199157715,
0.8100149035453796,
-0.3766278624534607,
0.12305840104818344,
-0.33841899037361145,
-1.3591679334640503,
-0.10087472200393677,
... |
func (m *EmployeeMutation) SetNametitleID(id int) {
m.nametitle = &id
} | [
-0.8961132168769836,
-0.08759748190641403,
0.12536820769309998,
-0.05398603156208992,
-1.840928077697754,
0.09458423405885696,
-1.5595290660858154,
-0.34585845470428467,
0.1756323128938675,
1.4902006387710571,
-1.564868450164795,
0.007317907176911831,
-0.7728206515312195,
1.037508964538574... |
func (m *EmployeeMutation) ClearNametitle() {
m.clearednametitle = true
} | [
-0.5697259306907654,
0.3774075210094452,
0.1582200825214386,
0.06981267035007477,
-1.5924947261810303,
0.021845420822501183,
-1.1578924655914307,
-0.7026029825210571,
-0.17224034667015076,
1.35124933719635,
-1.0520083904266357,
0.007674922700971365,
-0.4873756766319275,
-0.0493768937885761... |
func (m *EmployeeMutation) NametitleCleared() bool {
return m.clearednametitle
} | [
-0.6837486624717712,
-0.046070363372564316,
0.318969190120697,
-0.07219751179218292,
-1.414265513420105,
0.4768831133842468,
-1.3490407466888428,
-1.0602461099624634,
-0.18051394820213318,
0.49091771245002747,
-0.9820668697357178,
-0.42928069829940796,
-0.8390096426010132,
-0.5644921064376... |
func (m *EmployeeMutation) NametitleID() (id int, exists bool) {
if m.nametitle != nil {
return *m.nametitle, true
}
return
} | [
-0.7225667238235474,
0.1722313016653061,
0.40062883496284485,
-0.05504094436764717,
-1.1504616737365723,
-0.2052297294139862,
-1.4558767080307007,
-0.5279731750488281,
0.4774414896965027,
1.8438825607299805,
-0.9486522674560547,
-0.45033740997314453,
-1.2860897779464722,
0.9277085065841675... |
func (m *EmployeeMutation) NametitleIDs() (ids []int) {
if id := m.nametitle; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.0870457887649536,
0.1838293820619583,
0.24266120791435242,
0.1531699150800705,
-0.9193111062049866,
-0.4276365339756012,
-1.7634915113449097,
-0.42359215021133423,
0.21515245735645294,
1.4053610563278198,
-1.3231332302093506,
0.14180627465248108,
-1.303214430809021,
0.3224811851978302,
... |
func (m *EmployeeMutation) ResetNametitle() {
m.nametitle = nil
m.clearednametitle = false
} | [
-0.2920248508453369,
0.14861318469047546,
0.07042275369167328,
0.4202233850955963,
-0.9051501154899597,
-0.8271620869636536,
-0.7398511171340942,
-0.4601282775402069,
-0.5354079008102417,
0.8826172947883606,
-1.4294893741607666,
0.08686535805463791,
-1.1161503791809082,
-0.2268265336751938... |
func (m *EmployeeMutation) AddAreaIDs(ids ...int) {
if m.area == nil {
m.area = make(map[int]struct{})
}
for i := range ids {
m.area[ids[i]] = struct{}{}
}
} | [
-1.73517644405365,
0.07007823139429092,
0.4563727080821991,
-0.863651692867279,
-0.3647409677505493,
0.356097549200058,
-0.5282993912696838,
0.07357355952262878,
0.5471134185791016,
0.4834313690662384,
0.11484545469284058,
-0.13162291049957275,
-0.43240541219711304,
0.5605427622795105,
-... |
func (m *EmployeeMutation) RemoveAreaIDs(ids ...int) {
if m.removedarea == nil {
m.removedarea = make(map[int]struct{})
}
for i := range ids {
m.removedarea[ids[i]] = struct{}{}
}
} | [
-1.6888948678970337,
-0.23434387147426605,
0.3695251941680908,
-0.9603022933006287,
-1.2073513269424438,
0.06600601971149445,
0.014301767572760582,
0.6731710433959961,
0.3478434979915619,
0.7314325571060181,
-0.46594807505607605,
-0.25052767992019653,
-0.6364158391952515,
0.324037969112396... |
func (m *EmployeeMutation) RemovedAreaIDs() (ids []int) {
for id := range m.removedarea {
ids = append(ids, id)
}
return
} | [
-0.8801724314689636,
-0.606680154800415,
0.3913496732711792,
-0.7762261629104614,
-0.8803825378417969,
0.13024449348449707,
0.13727182149887085,
0.4269280433654785,
0.8978025317192078,
0.48529112339019775,
-0.5418516397476196,
0.6020703911781311,
-0.7440196871757507,
0.8263720273971558,
... |
func (m *EmployeeMutation) AreaIDs() (ids []int) {
for id := range m.area {
ids = append(ids, id)
}
return
} | [
-1.1394627094268799,
-0.39429518580436707,
0.10335339605808258,
-0.2087920606136322,
-0.4454710781574249,
0.295639306306839,
-0.6860782504081726,
0.37769389152526855,
1.0560027360916138,
1.2048454284667969,
0.16709840297698975,
0.9014726281166077,
-0.5228004455566406,
0.5077913999557495,
... |
func (m *EmployeeMutation) ResetArea() {
m.area = nil
m.removedarea = nil
} | [
-0.5337421298027039,
-0.11547648906707764,
0.361018568277359,
0.34600138664245605,
0.6022405028343201,
-0.7962544560432434,
1.0244522094726562,
0.91213458776474,
0.1943725049495697,
-0.4153164029121399,
0.5004664063453674,
0.17675308883190155,
-0.5282227993011475,
0.9801600575447083,
0.0... |
func (m *EmployeeMutation) AddDiseaseIDs(ids ...int) {
if m.disease == nil {
m.disease = make(map[int]struct{})
}
for i := range ids {
m.disease[ids[i]] = struct{}{}
}
} | [
-1.6911934614181519,
-0.48342666029930115,
0.3973346948623657,
-0.5884987115859985,
-0.3207853138446808,
-0.1989545077085495,
-0.7548572421073914,
0.7641999125480652,
0.5879259705543518,
0.1866932064294815,
-0.4509534239768982,
0.09359128028154373,
0.17889337241649628,
0.08489813655614853,... |
func (m *EmployeeMutation) RemoveDiseaseIDs(ids ...int) {
if m.removeddisease == nil {
m.removeddisease = make(map[int]struct{})
}
for i := range ids {
m.removeddisease[ids[i]] = struct{}{}
}
} | [
-1.0704796314239502,
-0.376415878534317,
0.40188127756118774,
-0.19210612773895264,
-0.5379148125648499,
-0.6223790645599365,
0.010194122791290283,
1.4131851196289062,
0.4399051070213318,
0.5721704959869385,
-1.294772982597351,
-0.23796303570270538,
-0.5142390131950378,
-0.1791151762008667... |
func (m *EmployeeMutation) RemovedDiseaseIDs() (ids []int) {
for id := range m.removeddisease {
ids = append(ids, id)
}
return
} | [
-0.12093126773834229,
-1.0496071577072144,
0.3971030116081238,
-0.34359070658683777,
-0.7426161170005798,
-0.30252477526664734,
-0.5572055578231812,
0.8658608794212341,
0.9420587420463562,
-0.34239670634269714,
-0.8326703906059265,
0.7832092046737671,
-0.2573253810405731,
0.266400337219238... |
func (m *EmployeeMutation) DiseaseIDs() (ids []int) {
for id := range m.disease {
ids = append(ids, id)
}
return
} | [
-1.5022693872451782,
-0.7371347546577454,
0.1741703748703003,
-0.5169152617454529,
-0.24009160697460175,
-0.12808027863502502,
-0.8021339178085327,
0.7850510478019714,
0.6929263472557068,
0.6013227105140686,
0.3478105068206787,
1.2532105445861816,
-0.687550961971283,
0.07437129318714142,
... |
func (m *EmployeeMutation) ResetDisease() {
m.disease = nil
m.removeddisease = nil
} | [
0.1417410671710968,
-0.24560441076755524,
0.24530741572380066,
0.45126810669898987,
0.20834879577159882,
-0.6544564962387085,
-0.5654211044311523,
0.7420057058334351,
-0.17230872809886932,
-0.572468101978302,
-0.05174718797206879,
0.40722256898880005,
-0.4848707318305969,
-0.16141657531261... |
func (m *EmployeeMutation) AddDrugIDs(ids ...int) {
if m.drug == nil {
m.drug = make(map[int]struct{})
}
for i := range ids {
m.drug[ids[i]] = struct{}{}
}
} | [
-1.6282576322555542,
0.015251170843839645,
0.3028392195701599,
-0.9536560773849487,
0.8664152026176453,
-0.7560884952545166,
-1.0453819036483765,
0.29095661640167236,
-0.6246731281280518,
0.9271791577339172,
-0.1665649116039276,
-0.11387712508440018,
-0.7714565396308899,
-0.210656419396400... |
func (m *EmployeeMutation) RemoveDrugIDs(ids ...int) {
if m.removeddrug == nil {
m.removeddrug = make(map[int]struct{})
}
for i := range ids {
m.removeddrug[ids[i]] = struct{}{}
}
} | [
-0.8208118081092834,
-0.2636210322380066,
0.27796295285224915,
-0.6709908246994019,
0.482083261013031,
-1.2023952007293701,
-0.39510759711265564,
0.8913095593452454,
-0.6398385167121887,
0.45185089111328125,
-0.8879132866859436,
-0.42700549960136414,
-1.1170341968536377,
-0.224125668406486... |
func (m *EmployeeMutation) RemovedDrugIDs() (ids []int) {
for id := range m.removeddrug {
ids = append(ids, id)
}
return
} | [
-0.7913280725479126,
-0.7658724784851074,
0.41223475337028503,
-0.6717740297317505,
0.18760810792446136,
-1.0174229145050049,
-0.4087863564491272,
0.9655499458312988,
-0.12736092507839203,
0.45684942603111267,
-0.5567004680633545,
0.6342920660972595,
-0.7531152963638306,
0.0291326753795146... |
func (m *EmployeeMutation) DrugIDs() (ids []int) {
for id := range m.drug {
ids = append(ids, id)
}
return
} | [
-1.0519230365753174,
-0.3694852590560913,
0.17743580043315887,
-0.6658061146736145,
0.6736752390861511,
-0.5597891807556152,
-1.1830183267593384,
0.669126570224762,
-0.20948469638824463,
0.9254207611083984,
0.17638854682445526,
1.0311812162399292,
-1.2263463735580444,
-0.10148369520902634,... |
func (m *EmployeeMutation) ResetDrug() {
m.drug = nil
m.removeddrug = nil
} | [
0.10111410915851593,
0.10745056718587875,
0.26876968145370483,
0.5645549893379211,
1.2846214771270752,
0.014231245033442974,
-0.025550153106451035,
1.187172532081604,
-1.11491858959198,
-0.3390592038631439,
0.08429599553346634,
0.4897279739379883,
-0.5826038718223572,
-0.3726041913032532,
... |
func (m *EmployeeMutation) AddDiagnosiIDs(ids ...int) {
if m.diagnosis == nil {
m.diagnosis = make(map[int]struct{})
}
for i := range ids {
m.diagnosis[ids[i]] = struct{}{}
}
} | [
-1.3803983926773071,
-0.0690036341547966,
0.3636879026889801,
-0.0738651379942894,
-0.04082000255584717,
-0.06450413167476654,
-0.7717173099517822,
0.7460166811943054,
0.5023743510246277,
0.1555534452199936,
-0.7528348565101624,
-0.9393382668495178,
0.3180729150772095,
-0.0605931356549263,... |
func (m *EmployeeMutation) RemoveDiagnosiIDs(ids ...int) {
if m.removeddiagnosis == nil {
m.removeddiagnosis = make(map[int]struct{})
}
for i := range ids {
m.removeddiagnosis[ids[i]] = struct{}{}
}
} | [
-0.9481857419013977,
-0.5158912539482117,
0.30257660150527954,
0.08370614051818848,
-0.34756240248680115,
-0.31570011377334595,
0.013914834707975388,
1.4838447570800781,
0.5758834481239319,
0.194417804479599,
-1.3000667095184326,
-0.6465567350387573,
-0.2180921882390976,
-0.362949311733245... |
func (m *EmployeeMutation) RemovedDiagnosisIDs() (ids []int) {
for id := range m.removeddiagnosis {
ids = append(ids, id)
}
return
} | [
-0.5651305317878723,
-0.46206533908843994,
0.3507453203201294,
-0.11786489933729172,
-0.5360022783279419,
-0.035374339669942856,
0.2447790503501892,
0.5783447027206421,
1.325149655342102,
-0.3711983263492584,
-0.8939257860183716,
-0.14524707198143005,
-0.044949911534786224,
0.2188805490732... |
func (m *EmployeeMutation) DiagnosisIDs() (ids []int) {
for id := range m.diagnosis {
ids = append(ids, id)
}
return
} | [
-1.4036203622817993,
-0.18697158992290497,
0.21081197261810303,
0.2669897973537445,
-0.004482814110815525,
-0.034750133752822876,
-0.5753518342971802,
0.8432348966598511,
0.21845410764217377,
0.82568359375,
-0.07299904525279999,
-0.44757843017578125,
-0.07513359934091568,
0.222840994596481... |
func (m *EmployeeMutation) ResetDiagnosis() {
m.diagnosis = nil
m.removeddiagnosis = nil
} | [
-0.47142717242240906,
0.24587053060531616,
0.17956919968128204,
0.9541058540344238,
0.5373185873031616,
-0.5329516530036926,
0.4503598213195801,
0.5951390266418457,
-0.12023807317018509,
0.3165082335472107,
-0.4138380289077759,
-0.518251359462738,
0.29169023036956787,
-0.5186454057693481,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.