text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m *OrgUnitMutation) CreateByID() (id int, exists bool) {
if m.create_by != nil {
return *m.create_by, true
}
return
} | [
-0.37047868967056274,
0.2131137102842331,
0.614424467086792,
-0.11106152087450027,
0.8386933207511902,
0.11304690688848495,
0.384607195854187,
-0.07220342010259628,
-0.2989010810852051,
0.8104785680770874,
-0.6363767981529236,
-0.7664549350738525,
-0.9022077918052673,
0.45363274216651917,
... |
func (m *OrgUnitMutation) CreateByIDs() (ids []int) {
if id := m.create_by; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.8654906153678894,
0.17074492573738098,
0.3190913796424866,
-0.07078137248754501,
1.2962104082107544,
-0.4755368232727051,
0.31360524892807007,
-0.12961749732494354,
-0.31402587890625,
0.4127996861934662,
-0.5427852869033813,
-0.04135632514953613,
-0.604690670967102,
0.19340117275714874,... |
func (m *OrgUnitMutation) ResetCreateBy() {
m.create_by = nil
m.clearedcreate_by = false
} | [
-0.1803908348083496,
0.10597411543130875,
0.37952467799186707,
0.5653663873672485,
0.8835470080375671,
-0.12538975477218628,
0.7910330295562744,
-0.2936255633831024,
-0.8804550170898438,
0.32766202092170715,
-0.20294798910617828,
-0.32580500841140747,
-0.5598674416542053,
-0.07972478866577... |
func (m *OrgUnitMutation) SetUpdateByID(id int) {
m.update_by = &id
} | [
-0.12141747772693634,
-0.5613319873809814,
0.42446601390838623,
-0.032646141946315765,
-0.580794632434845,
-0.04084980487823486,
-0.07637687027454376,
0.24533875286579132,
0.19833363592624664,
0.7767237424850464,
0.024671070277690887,
-0.699666440486908,
-0.3380352556705475,
0.308489292860... |
func (m *OrgUnitMutation) ClearUpdateBy() {
m.clearedupdate_by = true
} | [
-0.4856027066707611,
-0.28515779972076416,
0.5909907817840576,
0.6726988554000854,
-0.7981937527656555,
0.7752764821052551,
0.2378901094198227,
-0.04025524482131004,
0.22375082969665527,
1.0081472396850586,
0.5143697261810303,
-0.7437016367912292,
0.2694506347179413,
-0.785606324672699,
... |
func (m *OrgUnitMutation) UpdateByCleared() bool {
return m.UpdateByUserCleared() || m.clearedupdate_by
} | [
-0.10127528011798859,
-0.11708981543779373,
0.6086721420288086,
0.3877534866333008,
-0.2720696032047272,
0.42957988381385803,
-0.05673579126596451,
-0.4337007403373718,
0.18264321982860565,
0.29921475052833557,
0.12615129351615906,
-0.07975589483976364,
-0.866933286190033,
-0.1043585091829... |
func (m *OrgUnitMutation) UpdateByID() (id int, exists bool) {
if m.update_by != nil {
return *m.update_by, true
}
return
} | [
-0.6200835108757019,
-0.17299732565879822,
0.7451868653297424,
-0.10602004826068878,
-0.03554021567106247,
-0.03990772366523743,
0.10379260033369064,
0.24785712361335754,
0.0804831013083458,
1.1937015056610107,
-0.4759952425956726,
-0.4778681993484497,
-0.9533839821815491,
-0.0792284682393... |
func (m *OrgUnitMutation) UpdateByIDs() (ids []int) {
if id := m.update_by; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.1444658041000366,
-0.4340420365333557,
0.38277629017829895,
-0.21779890358448029,
0.4012709856033325,
-0.5365710854530334,
0.16731522977352142,
0.2319212257862091,
-0.085312120616436,
0.8509624004364014,
-0.3787829875946045,
0.5243590474128723,
-0.810938835144043,
-0.406654417514801,
... |
func (m *OrgUnitMutation) ResetUpdateBy() {
m.update_by = nil
m.clearedupdate_by = false
} | [
-0.6266140341758728,
-0.6012595891952515,
0.4290350675582886,
0.8398281931877136,
0.03364044800400734,
-0.4421602487564087,
0.5302107930183411,
0.12156298756599426,
-0.4172319173812866,
0.5725876092910767,
0.02469479665160179,
-0.6629137396812439,
-0.38427990674972534,
-0.7891183495521545,... |
func (m *OrgUnitMutation) AddMemberIDs(ids ...int) {
if m.members == nil {
m.members = make(map[int]struct{})
}
for i := range ids {
m.members[ids[i]] = struct{}{}
}
} | [
-1.746835470199585,
-0.46064579486846924,
0.24110056459903717,
-0.1232055053114891,
0.6503479480743408,
0.24280264973640442,
-0.8240181803703308,
0.6853633522987366,
-0.39625638723373413,
0.21963724493980408,
-0.18006864190101624,
0.7139657735824585,
-1.3151956796646118,
0.4748156666755676... |
func (m *OrgUnitMutation) ClearMembers() {
m.clearedmembers = true
} | [
-0.22520586848258972,
0.6447476148605347,
0.12757758796215057,
-0.17224934697151184,
0.5819796919822693,
0.9639913439750671,
-0.13191580772399902,
-0.2994222939014435,
0.031740833073854446,
0.15931616723537445,
0.803609311580658,
1.2722680568695068,
-0.9078933000564575,
-0.1988013088703155... |
func (m *OrgUnitMutation) MembersCleared() bool {
return m.clearedmembers
} | [
-0.25779375433921814,
-0.24334582686424255,
0.470872163772583,
-0.44023627042770386,
0.5463945865631104,
1.15775728225708,
-0.5939583778381348,
-0.38905587792396545,
0.08153281360864639,
-0.44360971450805664,
-0.10095466673374176,
0.7200585603713989,
-1.2168830633163452,
-0.194643139839172... |
func (m *OrgUnitMutation) RemoveMemberIDs(ids ...int) {
if m.removedmembers == nil {
m.removedmembers = make(map[int]struct{})
}
for i := range ids {
delete(m.members, ids[i])
m.removedmembers[ids[i]] = struct{}{}
}
} | [
-1.4086676836013794,
-0.837612509727478,
0.1020633652806282,
-0.26546135544776917,
-0.22584909200668335,
-0.03405797481536865,
-0.30292901396751404,
1.047791600227356,
-0.4124091565608978,
0.4279680848121643,
-0.7132668495178223,
0.6548506617546082,
-1.7425916194915771,
0.23460079729557037... |
func (m *OrgUnitMutation) RemovedMembersIDs() (ids []int) {
for id := range m.removedmembers {
ids = append(ids, id)
}
return
} | [
0.19088749587535858,
-0.6370106339454651,
0.09760669618844986,
-0.5314826965332031,
0.17498119175434113,
-0.3266731798648834,
-0.4711002707481384,
0.20702441036701202,
0.5871236324310303,
-0.22355125844478607,
-0.8656903505325317,
1.3002125024795532,
-1.2231909036636353,
0.680418848991394,... |
func (m *OrgUnitMutation) MembersIDs() (ids []int) {
for id := range m.members {
ids = append(ids, id)
}
return
} | [
-0.7502748370170593,
-0.9502902626991272,
-0.030503269284963608,
-0.06629103422164917,
1.0831512212753296,
0.3530145585536957,
-0.7968930006027222,
-0.01129465363919735,
-0.06798706948757172,
0.16970707476139069,
0.12417557090520859,
1.207836389541626,
-1.2593189477920532,
0.30615243315696... |
func (m *OrgUnitMutation) ResetMembers() {
m.members = nil
m.clearedmembers = false
m.removedmembers = nil
} | [
-0.35657185316085815,
0.12489888072013855,
0.04728425294160843,
-0.1102672591805458,
1.1706786155700684,
-0.044626280665397644,
0.4077705144882202,
0.13882741332054138,
-0.3487430214881897,
-0.5266568064689636,
0.16020256280899048,
1.4190179109573364,
-1.512672781944275,
-0.403813332319259... |
func (m *OrgUnitMutation) AddPositionIDs(ids ...int) {
if m.positions == nil {
m.positions = make(map[int]struct{})
}
for i := range ids {
m.positions[ids[i]] = struct{}{}
}
} | [
-1.8819485902786255,
-0.45286062359809875,
0.26598790287971497,
-0.3215293288230896,
0.5278993844985962,
0.218352273106575,
-0.3282513916492462,
0.5791025757789612,
0.03740421682596207,
0.2769230306148529,
-0.12289747595787048,
-1.4346346855163574,
-0.9460236430168152,
-0.1949814409017563,... |
func (m *OrgUnitMutation) ClearPositions() {
m.clearedpositions = true
} | [
-0.48589468002319336,
0.5948713421821594,
0.23165404796600342,
-0.19920644164085388,
-0.054133277386426926,
0.7495492696762085,
0.7414824962615967,
-0.08252935111522675,
0.2960278391838074,
0.32197871804237366,
0.8087815642356873,
-0.3203967809677124,
-0.10381539911031723,
-0.2095026075839... |
func (m *OrgUnitMutation) PositionsCleared() bool {
return m.clearedpositions
} | [
-0.5948056578636169,
0.5035054683685303,
0.40586987137794495,
-0.4556989073753357,
0.10563226044178009,
0.8275914788246155,
-0.113979272544384,
-0.293518990278244,
-0.01537367980927229,
-0.4190748929977417,
0.08925800770521164,
-0.8693201541900635,
-0.5158225297927856,
-0.40180346369743347... |
func (m *OrgUnitMutation) RemovePositionIDs(ids ...int) {
if m.removedpositions == nil {
m.removedpositions = make(map[int]struct{})
}
for i := range ids {
delete(m.positions, ids[i])
m.removedpositions[ids[i]] = struct{}{}
}
} | [
-1.5358058214187622,
-0.8754509091377258,
0.23939555883407593,
-0.15695051848888397,
-0.47145846486091614,
-0.10690494626760483,
0.0533401258289814,
0.9882653951644897,
-0.05382964760065079,
0.6053969264030457,
-0.5577433705329895,
-1.0969908237457275,
-1.4609793424606323,
-0.4186107516288... |
func (m *OrgUnitMutation) RemovedPositionsIDs() (ids []int) {
for id := range m.removedpositions {
ids = append(ids, id)
}
return
} | [
-0.635837733745575,
-0.5321688055992126,
0.3300476670265198,
-0.49712154269218445,
-0.5496671199798584,
0.07512284070253372,
0.17464880645275116,
0.18401429057121277,
1.1907449960708618,
0.0662437379360199,
-0.8219960927963257,
-0.28418099880218506,
-0.9264629483222961,
0.19149789214134216... |
func (m *OrgUnitMutation) PositionsIDs() (ids []int) {
for id := range m.positions {
ids = append(ids, id)
}
return
} | [
-1.0333869457244873,
-0.6278771162033081,
0.04184693470597267,
-0.17433984577655792,
0.685280978679657,
0.41589677333831787,
-0.1869472712278366,
0.08504407852888107,
0.6942089200019836,
0.4612114429473877,
0.292982280254364,
-0.23360270261764526,
-1.1752926111221313,
0.35064709186553955,
... |
func (m *OrgUnitMutation) ResetPositions() {
m.positions = nil
m.clearedpositions = false
m.removedpositions = nil
} | [
-0.8380138874053955,
0.47414106130599976,
0.21108029782772064,
-0.15181021392345428,
0.6643767952919006,
-0.09271029382944107,
1.1916102170944214,
0.21420559287071228,
-0.10091511905193329,
-0.4843987822532654,
-0.014192619360983372,
-0.20865653455257416,
-0.8989412188529968,
-0.2830716967... |
func (m *OrgUnitMutation) SetSupUnitID(id int) {
m.supUnit = &id
} | [
-0.9065678119659424,
-0.31342068314552307,
0.366881400346756,
-0.7498031854629517,
-0.6209179162979126,
0.6675337553024292,
0.22140780091285706,
0.8480101823806763,
0.34495535492897034,
-0.2103155255317688,
-0.8994390368461609,
0.5697616338729858,
-0.16625931859016418,
-0.38828232884407043... |
func (m *OrgUnitMutation) ClearSupUnit() {
m.clearedsupUnit = true
} | [
-0.5160477161407471,
0.38871654868125916,
0.511756181716919,
0.06644795089960098,
-1.098582148551941,
0.5900065302848816,
0.5618575811386108,
0.13661247491836548,
0.28887811303138733,
0.155659481883049,
-0.4688321650028229,
1.2459487915039062,
0.11111997067928314,
-1.0568273067474365,
-0... |
func (m *OrgUnitMutation) SupUnitCleared() bool {
return m.clearedsupUnit
} | [
0.040403541177511215,
0.32817238569259644,
0.4728914499282837,
-0.28664180636405945,
-0.5983455777168274,
0.8059807419776917,
-0.23191888630390167,
0.49254143238067627,
-0.4903067648410797,
-0.38237547874450684,
-0.44746553897857666,
0.3779650628566742,
-0.16389088332653046,
-1.11241793632... |
func (m *OrgUnitMutation) SupUnitID() (id int, exists bool) {
if m.supUnit != nil {
return *m.supUnit, true
}
return
} | [
-0.9264278411865234,
0.12135212868452072,
0.6094167828559875,
-0.6339594125747681,
-0.3465461730957031,
0.7373425364494324,
-0.08552525192499161,
1.1863051652908325,
-0.5263010859489441,
0.7865059971809387,
-0.9090609550476074,
0.25269773602485657,
-0.5845085382461548,
-1.0471404790878296,... |
func (m *OrgUnitMutation) SupUnitIDs() (ids []int) {
if id := m.supUnit; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.19456148147583,
-0.012035653926432133,
0.28823161125183105,
-0.5140337944030762,
0.06903673708438873,
0.5027020573616028,
-0.0874195247888565,
1.3918373584747314,
-0.616703987121582,
0.5669554471969604,
-1.2069941759109497,
0.9477429986000061,
-0.7801543474197388,
-0.7000622749328613,
... |
func (m *OrgUnitMutation) ResetSupUnit() {
m.supUnit = nil
m.clearedsupUnit = false
} | [
-0.1446891576051712,
0.3821357488632202,
0.2556212842464447,
-0.16569212079048157,
-0.24104110896587372,
0.05538465082645416,
0.897759735584259,
0.9209098219871521,
-1.2694514989852905,
-0.8603267669677734,
-1.20572829246521,
0.9612470269203186,
-0.37814995646476746,
-1.4416625499725342,
... |
func (m *OrgUnitMutation) AddSubUnitIDs(ids ...int) {
if m.subUnits == nil {
m.subUnits = make(map[int]struct{})
}
for i := range ids {
m.subUnits[ids[i]] = struct{}{}
}
} | [
-1.7610266208648682,
0.1289910525083542,
0.26811403036117554,
-0.40578240156173706,
0.053915102034807205,
0.7057818174362183,
-0.23475442826747894,
0.5431645512580872,
-0.02063329517841339,
-0.03383846580982208,
-0.8736517429351807,
0.9813956618309021,
-0.5422505736351013,
-0.5871247649192... |
func (m *OrgUnitMutation) ClearSubUnits() {
m.clearedsubUnits = true
} | [
0.18416231870651245,
0.9925574660301208,
0.20630264282226562,
0.3724927604198456,
-0.7983177900314331,
1.1776878833770752,
0.2954985499382019,
-0.2933274805545807,
-0.1766844540834427,
-0.18145246803760529,
-0.44474294781684875,
1.3959802389144897,
-0.03216629475355148,
-0.6864460110664368... |
func (m *OrgUnitMutation) SubUnitsCleared() bool {
return m.clearedsubUnits
} | [
-0.7131510376930237,
-0.06936594843864441,
0.4815484881401062,
0.12431706488132477,
-0.08957559615373611,
0.8972756266593933,
-0.7489073872566223,
-0.7554444074630737,
0.186939999461174,
-0.25304481387138367,
-0.354779452085495,
1.0072139501571655,
-0.26164963841438293,
-0.5388505458831787... |
func (m *OrgUnitMutation) RemoveSubUnitIDs(ids ...int) {
if m.removedsubUnits == nil {
m.removedsubUnits = make(map[int]struct{})
}
for i := range ids {
delete(m.subUnits, ids[i])
m.removedsubUnits[ids[i]] = struct{}{}
}
} | [
-1.1881213188171387,
-0.3043476343154907,
0.11262498050928116,
-0.40850281715393066,
-0.7770889401435852,
0.46310946345329285,
0.005616363603621721,
1.0578585863113403,
-0.27658411860466003,
0.18786871433258057,
-1.2525455951690674,
1.057678461074829,
-1.0575088262557983,
-0.42994144558906... |
func (m *OrgUnitMutation) RemovedSubUnitsIDs() (ids []int) {
for id := range m.removedsubUnits {
ids = append(ids, id)
}
return
} | [
-0.24925479292869568,
-0.4705992043018341,
0.25131499767303467,
0.0857129767537117,
-0.528959333896637,
0.38386133313179016,
0.5503286123275757,
0.31641435623168945,
0.3540007770061493,
-0.5907506942749023,
-1.5615100860595703,
1.1246439218521118,
-0.6160470843315125,
-0.12766152620315552,... |
func (m *OrgUnitMutation) SubUnitsIDs() (ids []int) {
for id := range m.subUnits {
ids = append(ids, id)
}
return
} | [
-1.1685969829559326,
-0.3303927779197693,
0.33071085810661316,
-0.29256656765937805,
-0.018823035061359406,
0.11154218763113022,
-0.2516528069972992,
-0.03813931345939636,
0.42426976561546326,
0.6303227543830872,
-0.4640662670135498,
1.1907482147216797,
-0.7093263864517212,
-0.359400868415... |
func (m *OrgUnitMutation) ResetSubUnits() {
m.subUnits = nil
m.clearedsubUnits = false
m.removedsubUnits = nil
} | [
-0.3060876429080963,
0.6044113039970398,
0.13816718757152557,
0.33476749062538147,
-0.06968917697668076,
0.07573191821575165,
0.8362768292427063,
0.22551670670509338,
-0.4953315854072571,
-0.30358171463012695,
-1.3645023107528687,
1.4568568468093872,
-0.6297205090522766,
-0.663936853408813... |
func (m *OrgUnitMutation) SetBelongToOrgID(id int) {
m.belongToOrg = &id
} | [
0.5257923007011414,
-0.41210445761680603,
0.4108937084674835,
-0.1553782969713211,
0.48989030718803406,
1.090444803237915,
-0.21579349040985107,
-0.18161536753177643,
-0.015833867713809013,
0.3141448199748993,
-0.38720712065696716,
-0.0655481144785881,
-0.10364275425672531,
0.5058742761611... |
func (m *OrgUnitMutation) ClearBelongToOrg() {
m.clearedbelongToOrg = true
} | [
0.42655470967292786,
0.05916227400302887,
0.32092776894569397,
-0.0044791786931455135,
0.5646107196807861,
0.686552107334137,
0.19532039761543274,
-0.5747148990631104,
-0.28338876366615295,
0.806894063949585,
-0.04177362844347954,
0.7605456113815308,
0.5237154960632324,
-0.1312613487243652... |
func (m *OrgUnitMutation) BelongToOrgCleared() bool {
return m.clearedbelongToOrg
} | [
0.45283693075180054,
-0.41565126180648804,
0.5448312759399414,
-0.22986887395381927,
0.6258669495582581,
1.0748753547668457,
-0.26417961716651917,
-1.094137191772461,
-0.09581757336854935,
-0.12681500613689423,
-0.015721572563052177,
0.6506202816963196,
-0.3174195885658264,
-0.240961432456... |
func (m *OrgUnitMutation) BelongToOrgID() (id int, exists bool) {
if m.belongToOrg != nil {
return *m.belongToOrg, true
}
return
} | [
0.2967558801174164,
0.09945826232433319,
0.7530527114868164,
0.3454764783382416,
0.818013072013855,
0.9223863482475281,
0.4231729209423065,
-0.6989617347717285,
0.04697105288505554,
0.5271830558776855,
0.05802300199866295,
0.023798227310180664,
-0.6477968692779541,
0.3903937339782715,
-0... |
func (m *OrgUnitMutation) BelongToOrgIDs() (ids []int) {
if id := m.belongToOrg; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.2804635167121887,
-0.02009543403983116,
0.4814242720603943,
0.1993308961391449,
1.3516695499420166,
0.18049512803554535,
0.197995126247406,
-0.44457438588142395,
-0.12653174996376038,
0.3012835681438446,
-0.2616305649280548,
0.6233898997306824,
-0.9650958776473999,
0.18892844021320343,
... |
func (m *OrgUnitMutation) ResetBelongToOrg() {
m.belongToOrg = nil
m.clearedbelongToOrg = false
} | [
0.830479085445404,
0.03767436370253563,
0.32958853244781494,
0.057364292442798615,
1.104745864868164,
0.082426518201828,
0.47114166617393494,
-0.5906969308853149,
-0.8434321284294128,
0.13042347133159637,
-0.5432916283607483,
0.8357561230659485,
-0.1068514958024025,
-0.5350717902183533,
... |
func (m *OrgUnitMutation) Where(ps ...predicate.OrgUnit) {
m.predicates = append(m.predicates, ps...)
} | [
-0.47029945254325867,
-0.6413417458534241,
0.3606920838356018,
-0.25004470348358154,
0.4034483730792999,
0.9712088704109192,
-0.06187242642045021,
0.03596926108002663,
-0.962565541267395,
-0.44287437200546265,
0.6670633554458618,
0.7000500559806824,
-0.2931240200996399,
-0.3472074568271637... |
func (m *OrgUnitMutation) Op() Op {
return m.op
} | [
-1.0162055492401123,
-0.053792428225278854,
0.28542953729629517,
0.664574921131134,
0.32726576924324036,
1.1524947881698608,
0.9983814358711243,
0.19202113151550293,
0.23438361287117004,
0.2376355677843094,
0.628727912902832,
-0.46380263566970825,
-0.14950725436210632,
-1.1743946075439453,... |
func (m *OrgUnitMutation) Type() string {
return m.typ
} | [
-0.595265805721283,
-0.6351176500320435,
0.1946287453174591,
0.4234231412410736,
1.1321035623550415,
0.8913145661354065,
0.6426528692245483,
-0.9498245120048523,
0.6358199715614319,
-0.029465680941939354,
0.7753499746322632,
0.026047728955745697,
-0.9880249500274658,
-0.13681206107139587,
... |
func (m *OrgUnitMutation) Fields() []string {
fields := make([]string, 0, 6)
if m.create_by != nil {
fields = append(fields, orgunit.FieldCreateByUser)
}
if m.update_by != nil {
fields = append(fields, orgunit.FieldUpdateByUser)
}
if m.create_time != nil {
fields = append(fields, orgunit.FieldCreateTime)
}... | [
-0.8978004455566406,
-0.3371116518974304,
0.4217718839645386,
-0.9086734652519226,
0.70616614818573,
0.5693609714508057,
-0.5101916193962097,
-0.3447091579437256,
0.47405967116355896,
-0.10045402497053146,
-0.14500108361244202,
-0.371467262506485,
-0.4781864583492279,
-0.13302379846572876,... |
func (m *OrgUnitMutation) Field(name string) (ent.Value, bool) {
switch name {
case orgunit.FieldCreateByUser:
return m.CreateByUser()
case orgunit.FieldUpdateByUser:
return m.UpdateByUser()
case orgunit.FieldCreateTime:
return m.CreateTime()
case orgunit.FieldUpdateTime:
return m.UpdateTime()
case orguni... | [
-1.5286494493484497,
-0.018267901614308357,
0.6932316422462463,
-0.32278692722320557,
-0.01911797933280468,
0.9555703401565552,
-0.7631648778915405,
-0.4515047073364258,
0.02989022806286812,
-0.19422121345996857,
-0.15186673402786255,
-0.3429323732852936,
-0.3964075744152069,
0.50799685716... |
func (m *OrgUnitMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case orgunit.FieldCreateByUser:
return m.OldCreateByUser(ctx)
case orgunit.FieldUpdateByUser:
return m.OldUpdateByUser(ctx)
case orgunit.FieldCreateTime:
return m.OldCreateTime(ctx)
case orgunit.FieldUpdat... | [
-0.7934815287590027,
-0.18086457252502441,
0.6761295795440674,
-0.9581060409545898,
0.43740975856781006,
0.8785059452056885,
0.05860770493745804,
-0.8385487198829651,
-0.010551108047366142,
-0.19312727451324463,
0.1564285308122635,
0.4303150177001953,
-0.369534432888031,
-0.027955109253525... |
func (m *OrgUnitMutation) SetField(name string, value ent.Value) error {
switch name {
case orgunit.FieldCreateByUser:
v, ok := value.(int)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetCreateByUser(v)
return nil
case orgunit.FieldUpdateByUser:
v, ok := value.(int)
... | [
-1.1635923385620117,
-0.012347620911896229,
0.8191912174224854,
-0.48182737827301025,
0.06972751766443253,
0.8397018313407898,
0.04950312152504921,
-0.6744062900543213,
-0.2827037274837494,
-0.07662300765514374,
-0.09016822278499603,
0.16243937611579895,
-0.1862681359052658,
0.473767846822... |
func (m *OrgUnitMutation) AddedFields() []string {
var fields []string
return fields
} | [
-0.2752717137336731,
-0.12117812037467957,
0.3521503508090973,
-0.34500572085380554,
0.5235450267791748,
1.2560392618179321,
-0.006088733673095703,
-0.2161976844072342,
0.5317242741584778,
-0.7245285511016846,
-0.0009477139101363719,
0.2729448974132538,
-1.1880072355270386,
-0.032109815627... |
func (m *OrgUnitMutation) AddedField(name string) (ent.Value, bool) {
switch name {
}
return nil, false
} | [
-1.5823904275894165,
0.4942742884159088,
0.6919015645980835,
-0.5344755053520203,
0.14394961297512054,
1.453838586807251,
-0.33202850818634033,
-0.16088685393333435,
0.2614794671535492,
-0.31444182991981506,
-0.7181925773620605,
-0.9403174519538879,
-1.5351935625076294,
0.06787029653787613... |
func (m *OrgUnitMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown OrgUnit numeric field %s", name)
} | [
-0.9244467616081238,
0.40731504559516907,
0.6212428212165833,
-0.1473841369152069,
0.40225744247436523,
1.717363715171814,
-0.9247581958770752,
-0.4146152436733246,
-0.46145400404930115,
-0.14633502066135406,
0.42288172245025635,
-0.9041720628738403,
-0.3794737458229065,
0.0103255007416009... |
func (m *OrgUnitMutation) ClearedFields() []string {
var fields []string
if m.FieldCleared(orgunit.FieldCreateByUser) {
fields = append(fields, orgunit.FieldCreateByUser)
}
if m.FieldCleared(orgunit.FieldUpdateByUser) {
fields = append(fields, orgunit.FieldUpdateByUser)
}
if m.FieldCleared(orgunit.FieldUpdate... | [
-0.4789239466190338,
0.15999428927898407,
0.47971272468566895,
-0.48535093665122986,
-0.3011535108089447,
0.8740608096122742,
0.07668115198612213,
-0.663270890712738,
0.5584807991981506,
0.2710717022418976,
0.07316000014543533,
0.3782072067260742,
-0.6123257279396057,
-0.7122504711151123,
... |
func (m *OrgUnitMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.7354710698127747,
0.1338418424129486,
0.7683771848678589,
-0.3907891809940338,
0.1110975593328476,
0.6947346329689026,
-0.7978308796882629,
-0.01683383621275425,
-0.28904977440834045,
-0.27264299988746643,
-0.7222914099693298,
-0.2971722185611725,
0.036488499492406845,
-0.34439346194267... |
func (m *OrgUnitMutation) ClearField(name string) error {
switch name {
case orgunit.FieldCreateByUser:
m.ClearCreateByUser()
return nil
case orgunit.FieldUpdateByUser:
m.ClearUpdateByUser()
return nil
case orgunit.FieldUpdateTime:
m.ClearUpdateTime()
return nil
case orgunit.FieldDuty:
m.ClearDuty()
... | [
-0.7794055342674255,
0.5119767189025879,
0.6482077836990356,
-0.2768250107765198,
0.06975281983613968,
0.9262603521347046,
-0.26637002825737,
-0.8474512100219727,
0.19321978092193604,
0.4206227958202362,
0.04935573786497116,
-0.3227618932723999,
-0.3459055423736572,
0.05074062943458557,
... |
func (m *OrgUnitMutation) ResetField(name string) error {
switch name {
case orgunit.FieldCreateByUser:
m.ResetCreateByUser()
return nil
case orgunit.FieldUpdateByUser:
m.ResetUpdateByUser()
return nil
case orgunit.FieldCreateTime:
m.ResetCreateTime()
return nil
case orgunit.FieldUpdateTime:
m.ResetU... | [
-0.9657077789306641,
0.4085303544998169,
0.5495300889015198,
-0.21356581151485443,
0.6220555305480957,
0.6078508496284485,
0.3083285093307495,
-0.5487773418426514,
-0.1461397260427475,
0.003402336500585079,
-0.31178784370422363,
0.05217832326889038,
-0.8144986033439636,
-0.34935262799263,
... |
func (m *OrgUnitMutation) AddedEdges() []string {
edges := make([]string, 0, 7)
if m.create_by != nil {
edges = append(edges, orgunit.EdgeCreateBy)
}
if m.update_by != nil {
edges = append(edges, orgunit.EdgeUpdateBy)
}
if m.members != nil {
edges = append(edges, orgunit.EdgeMembers)
}
if m.positions != n... | [
-0.3584936857223511,
-0.4601966440677643,
0.5175387263298035,
-0.31717541813850403,
0.508483350276947,
0.6465135216712952,
-0.6591131091117859,
-0.07299594581127167,
0.9090420007705688,
0.01892726682126522,
0.5344764590263367,
0.49356457591056824,
-0.7361542582511902,
-0.02449006773531437,... |
func (m *OrgUnitMutation) AddedIDs(name string) []ent.Value {
switch name {
case orgunit.EdgeCreateBy:
if id := m.create_by; id != nil {
return []ent.Value{*id}
}
case orgunit.EdgeUpdateBy:
if id := m.update_by; id != nil {
return []ent.Value{*id}
}
case orgunit.EdgeMembers:
ids := make([]ent.Value,... | [
-0.6200144290924072,
-0.8465558886528015,
0.5655223727226257,
-0.8540787100791931,
0.23932865262031555,
0.3116108477115631,
-0.41672322154045105,
0.019822385162115097,
0.4805079400539398,
0.04743826016783714,
0.31568896770477295,
0.618042528629303,
-0.5873050093650818,
0.11557216197252274,... |
func (m *OrgUnitMutation) RemovedEdges() []string {
edges := make([]string, 0, 7)
if m.removedmembers != nil {
edges = append(edges, orgunit.EdgeMembers)
}
if m.removedpositions != nil {
edges = append(edges, orgunit.EdgePositions)
}
if m.removedsubUnits != nil {
edges = append(edges, orgunit.EdgeSubUnits)
... | [
0.012931340374052525,
-0.48400646448135376,
0.5053096413612366,
-0.1704612523317337,
0.20581360161304474,
0.23094666004180908,
-0.45438385009765625,
0.3894740045070648,
0.8661225438117981,
0.031046826392412186,
-0.022748664021492004,
0.4984252452850342,
-1.210835576057434,
-0.1580523848533... |
func (m *OrgUnitMutation) RemovedIDs(name string) []ent.Value {
switch name {
case orgunit.EdgeMembers:
ids := make([]ent.Value, 0, len(m.removedmembers))
for id := range m.removedmembers {
ids = append(ids, id)
}
return ids
case orgunit.EdgePositions:
ids := make([]ent.Value, 0, len(m.removedpositions)... | [
-0.38982564210891724,
-0.7696290016174316,
0.5500584840774536,
-0.9483699798583984,
-0.037933386862277985,
0.0910765528678894,
-0.5685407519340515,
0.3629912734031677,
0.43599531054496765,
-0.017112765461206436,
-0.4895903766155243,
0.6630769968032837,
-1.0568794012069702,
-0.1855020821094... |
func (m *OrgUnitMutation) ClearedEdges() []string {
edges := make([]string, 0, 7)
if m.clearedcreate_by {
edges = append(edges, orgunit.EdgeCreateBy)
}
if m.clearedupdate_by {
edges = append(edges, orgunit.EdgeUpdateBy)
}
if m.clearedmembers {
edges = append(edges, orgunit.EdgeMembers)
}
if m.clearedposit... | [
-0.7908642888069153,
-0.24266262352466583,
0.5885881781578064,
-0.053073909133672714,
-0.35339999198913574,
0.3964025378227234,
-0.30297785997390747,
-0.6317104697227478,
0.5694149732589722,
1.047959804534912,
0.525150716304779,
0.9781114459037781,
-0.5336650013923645,
-0.7475235462188721,... |
func (m *OrgUnitMutation) EdgeCleared(name string) bool {
switch name {
case orgunit.EdgeCreateBy:
return m.clearedcreate_by
case orgunit.EdgeUpdateBy:
return m.clearedupdate_by
case orgunit.EdgeMembers:
return m.clearedmembers
case orgunit.EdgePositions:
return m.clearedpositions
case orgunit.EdgeSupUnit... | [
-0.8934510350227356,
-0.2816670536994934,
0.8744591474533081,
-0.6674800515174866,
-0.08706500381231308,
0.6990845799446106,
-0.270214319229126,
-0.3728920519351959,
0.2833310067653656,
0.4258445203304291,
-0.017158526927232742,
0.4596286714076996,
-0.9183784127235413,
-0.436897337436676,
... |
func (m *OrgUnitMutation) ClearEdge(name string) error {
switch name {
case orgunit.EdgeCreateBy:
m.ClearCreateBy()
return nil
case orgunit.EdgeUpdateBy:
m.ClearUpdateBy()
return nil
case orgunit.EdgeSupUnit:
m.ClearSupUnit()
return nil
case orgunit.EdgeBelongToOrg:
m.ClearBelongToOrg()
return nil
... | [
-1.3735202550888062,
0.6265134811401367,
0.6245673298835754,
0.5463656187057495,
0.3546817898750305,
0.4129393696784973,
0.06377127021551132,
0.0030308831483125687,
0.2566671669483185,
0.3551044166088104,
0.38480761647224426,
-0.030177641659975052,
-0.46280527114868164,
0.13736797869205475... |
func (m *OrgUnitMutation) ResetEdge(name string) error {
switch name {
case orgunit.EdgeCreateBy:
m.ResetCreateBy()
return nil
case orgunit.EdgeUpdateBy:
m.ResetUpdateBy()
return nil
case orgunit.EdgeMembers:
m.ResetMembers()
return nil
case orgunit.EdgePositions:
m.ResetPositions()
return nil
cas... | [
-1.190383791923523,
0.06403395533561707,
0.6732452511787415,
0.1412917524576187,
0.685755729675293,
-0.12497202306985855,
0.09649543464183807,
0.318215548992157,
-0.21982619166374207,
0.3599083125591278,
-0.05425165593624115,
0.31804782152175903,
-1.1517285108566284,
-0.4028344452381134,
... |
func newOrgUnitMemberMutation(c config, op Op, opts ...orgunitmemberOption) *OrgUnitMemberMutation {
m := &OrgUnitMemberMutation{
config: c,
op: op,
typ: TypeOrgUnitMember,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-0.9706628918647766,
-0.5146230459213257,
0.10633882135152817,
0.32277876138687134,
0.3802144229412079,
0.1303243190050125,
0.41549187898635864,
-0.3754749894142151,
0.0022851405665278435,
0.26823416352272034,
-0.5909984111785889,
0.16026312112808228,
-1.7654526233673096,
-0.92565822601318... |
func withOrgUnitMemberID(id int) orgunitmemberOption {
return func(m *OrgUnitMemberMutation) {
var (
err error
once sync.Once
value *OrgUnitMember
)
m.oldValue = func(ctx context.Context) (*OrgUnitMember, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mut... | [
-0.5475035309791565,
-0.7994009256362915,
0.17093832790851593,
-0.21250686049461365,
0.5967704057693481,
0.5530577898025513,
-0.41936150193214417,
-0.809615433216095,
0.35060834884643555,
0.33567363023757935,
-0.34721124172210693,
0.7731795907020569,
-0.8398205041885376,
0.6921213269233704... |
func withOrgUnitMember(node *OrgUnitMember) orgunitmemberOption {
return func(m *OrgUnitMemberMutation) {
m.oldValue = func(context.Context) (*OrgUnitMember, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.6010105609893799,
-0.5134719014167786,
0.3166547417640686,
-0.5444630980491638,
0.5796463489532471,
0.5148204565048218,
-0.010225269943475723,
-0.6292974352836609,
-0.10761892050504684,
-0.08374332636594772,
-0.30502891540527344,
0.5723775625228882,
-0.11976524442434311,
-0.307631820440... |
func (m OrgUnitMemberMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.20903147757053375,
-0.41158348321914673,
-0.04629739001393318,
0.043718840926885605,
0.10224460065364838,
0.34019240736961365,
0.8394579291343689,
-0.6341872215270996,
0.00199186522513628,
-0.7990619540214539,
-0.3201276659965515,
0.619449257850647,
-0.8919270634651184,
-1.1775138378143... |
func (m OrgUnitMemberMutation) 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.058612313121557236,
0.3289298713207245,
0.35574284195899963,
0.3400556445121765,
0.7666667103767395,
0.0591081827878952,
0.2632938623428345,
-0.12845198810100555,
0.10752099007368088,
-0.24174222350120544,
-0.21491926908493042,
0.100039541721344,
-1.0432798862457275,
-1.0685105323791504,... |
func (m *OrgUnitMemberMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.5156993269920349,
-0.20476864278316498,
0.5218236446380615,
0.7300155162811279,
0.8014237284660339,
0.4970698058605194,
0.1426142156124115,
-0.21102723479270935,
0.46489858627319336,
0.16611570119857788,
-0.3295729458332062,
-0.19715985655784607,
-1.7587958574295044,
0.27950483560562134... |
func (m *OrgUnitMemberMutation) SetCreateByUser(i int) {
m.create_by = &i
} | [
-0.1424034833908081,
0.5610990524291992,
0.34302228689193726,
0.6207108497619629,
0.19028469920158386,
0.10786683857440948,
1.408597707748413,
-0.6158541440963745,
-2.0255424976348877,
-0.889935314655304,
-1.0543601512908936,
-0.9442046284675598,
-0.567234456539154,
0.5444093942642212,
0... |
func (m *OrgUnitMemberMutation) CreateByUser() (r int, exists bool) {
v := m.create_by
if v == nil {
return
}
return *v, true
} | [
-0.6187493205070496,
0.8610772490501404,
0.6151638627052307,
0.6341841816902161,
0.3003051280975342,
-0.327013224363327,
1.3113375902175903,
-0.23924270272254944,
-1.6197669506072998,
-0.27619650959968567,
-1.259157657623291,
-1.123647928237915,
-0.9556202292442322,
0.30838683247566223,
... |
func (m *OrgUnitMemberMutation) OldCreateByUser(ctx context.Context) (v int, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldCreateByUser is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldCreateByUser requires an ID field in the mutation")... | [
-0.4940936863422394,
0.17596662044525146,
0.5482433438301086,
0.32138121128082275,
0.22586913406848907,
-0.1529725193977356,
1.3768547773361206,
-1.0255732536315918,
-1.146281361579895,
-0.9936485290527344,
-0.5346221327781677,
0.17094185948371887,
-0.7461447715759277,
0.7096239328384399,
... |
func (m *OrgUnitMemberMutation) ClearCreateByUser() {
m.create_by = nil
m.clearedFields[orgunitmember.FieldCreateByUser] = struct{}{}
} | [
0.09536989778280258,
0.5397138595581055,
0.4310438334941864,
0.8376495242118835,
-0.2337256819009781,
0.49353712797164917,
0.852342426776886,
-1.1097822189331055,
-1.2573397159576416,
-0.33689308166503906,
-0.6577916145324707,
0.3524712324142456,
-0.4008673131465912,
0.10326045006513596,
... |
func (m *OrgUnitMemberMutation) CreateByUserCleared() bool {
_, ok := m.clearedFields[orgunitmember.FieldCreateByUser]
return ok
} | [
0.15516148507595062,
0.37372705340385437,
0.5082151889801025,
0.29501333832740784,
0.21376743912696838,
0.6802038550376892,
0.4385000765323639,
-0.7671605944633484,
-0.8833353519439697,
-0.17084962129592896,
-0.47779011726379395,
-0.1167256087064743,
-0.8567967414855957,
-0.150970295071601... |
func (m *OrgUnitMemberMutation) ResetCreateByUser() {
m.create_by = nil
delete(m.clearedFields, orgunitmember.FieldCreateByUser)
} | [
0.27342355251312256,
0.4936082363128662,
0.3959823548793793,
0.8923583626747131,
0.37202611565589905,
-0.026231570169329643,
0.9005729556083679,
-0.7867312431335449,
-1.692014455795288,
-0.6439355611801147,
-0.6045201420783997,
0.2550572454929352,
-0.8158594369888306,
-0.12254592776298523,... |
func (m *OrgUnitMemberMutation) SetUpdateByUser(i int) {
m.update_by = &i
} | [
-0.2638782262802124,
0.1868896633386612,
0.4140004813671112,
0.6214404702186584,
-0.8354131579399109,
-0.3092409074306488,
1.0809171199798584,
0.08045315742492676,
-1.4127403497695923,
-0.26906663179397583,
-0.555523157119751,
-0.9819836616516113,
-0.6072390079498291,
-0.1947406828403473,
... |
func (m *OrgUnitMemberMutation) UpdateByUser() (r int, exists bool) {
v := m.update_by
if v == nil {
return
}
return *v, true
} | [
-0.9791140556335449,
0.5236641764640808,
0.6616274118423462,
0.5529308319091797,
-0.5230966806411743,
-0.5519447922706604,
1.255556344985962,
0.04264785721898079,
-1.278465747833252,
0.008279065601527691,
-1.1908750534057617,
-0.6243970990180969,
-1.1462980508804321,
-0.265663206577301,
... |
func (m *OrgUnitMemberMutation) OldUpdateByUser(ctx context.Context) (v int, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldUpdateByUser is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldUpdateByUser requires an ID field in the mutation")... | [
-0.3979104161262512,
-0.08771674335002899,
0.6216232776641846,
0.3294995427131653,
-0.22494208812713623,
-0.38270875811576843,
0.9899365901947021,
-0.6561744213104248,
-0.9050540328025818,
-0.557506799697876,
-0.39403533935546875,
0.10885924845933914,
-0.9294956922531128,
0.475312441587448... |
func (m *OrgUnitMemberMutation) ClearUpdateByUser() {
m.update_by = nil
m.clearedFields[orgunitmember.FieldUpdateByUser] = struct{}{}
} | [
0.04453442990779877,
-0.07457158714532852,
0.4581969380378723,
1.1741290092468262,
-1.3989449739456177,
0.37123343348503113,
0.3548356294631958,
-0.17721372842788696,
-0.6201411485671997,
0.2442987561225891,
-0.1813187450170517,
-0.08702321350574493,
-0.45066148042678833,
-0.65049827098846... |
func (m *OrgUnitMemberMutation) UpdateByUserCleared() bool {
_, ok := m.clearedFields[orgunitmember.FieldUpdateByUser]
return ok
} | [
-0.02929934673011303,
-0.04904945567250252,
0.5022354125976562,
0.47573819756507874,
-0.8821574449539185,
0.354398638010025,
0.5623521208763123,
-0.5011947154998779,
-0.697262704372406,
0.4297158420085907,
-0.335198312997818,
0.34704911708831787,
-1.1384477615356445,
-0.6273738741874695,
... |
func (m *OrgUnitMemberMutation) ResetUpdateByUser() {
m.update_by = nil
delete(m.clearedFields, orgunitmember.FieldUpdateByUser)
} | [
0.18776123225688934,
-0.23450496792793274,
0.36545297503471375,
1.2343881130218506,
-0.43129661679267883,
-0.4220004081726074,
0.7188303470611572,
-0.0647675096988678,
-1.1516594886779785,
0.14691901206970215,
0.005228986497968435,
0.03971710428595543,
-0.9690151810646057,
-1.0048903226852... |
func (m *OrgUnitMemberMutation) SetCreateTime(t time.Time) {
m.create_time = &t
} | [
-0.043930698186159134,
0.2408803552389145,
0.2756102681159973,
-0.051933322101831436,
1.2494269609451294,
0.06552079319953918,
-0.47197768092155457,
-0.09088825434446335,
-0.5081406831741333,
0.6201138496398926,
-0.69171541929245,
-0.9817343354225159,
-0.7298874855041504,
1.251471400260925... |
func (m *OrgUnitMemberMutation) CreateTime() (r time.Time, exists bool) {
v := m.create_time
if v == nil {
return
}
return *v, true
} | [
-0.41802412271499634,
0.5695187449455261,
0.6364019513130188,
0.11084471642971039,
1.3528575897216797,
-0.13159656524658203,
-0.568996012210846,
-0.5069669485092163,
-0.20362472534179688,
0.925163209438324,
-0.6066875457763672,
-1.8185781240463257,
-1.515533685684204,
0.3094386160373688,
... |
func (m *OrgUnitMemberMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldCreateTime is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldCreateTime requires an ID field in the mutation")... | [
-0.7252271771430969,
0.16657593846321106,
0.4503149688243866,
-0.1812201291322708,
0.5036969184875488,
-0.1930110901594162,
0.17080123722553253,
-0.9183196425437927,
-0.08849267661571503,
0.7137906551361084,
-0.22449317574501038,
-0.7064134478569031,
-0.9025157690048218,
0.7858364582061768... |
func (m *OrgUnitMemberMutation) ResetCreateTime() {
m.create_time = nil
} | [
0.01328354887664318,
0.27828842401504517,
0.1693832129240036,
0.22578923404216766,
1.1035393476486206,
-0.33198365569114685,
-0.1666385680437088,
-0.3115890324115753,
-0.6331411600112915,
0.7450368404388428,
-0.7138360142707825,
0.25938814878463745,
-1.3508011102676392,
0.3781496286392212,... |
func (m *OrgUnitMemberMutation) SetUpdateTime(t time.Time) {
m.update_time = &t
} | [
-0.44345036149024963,
-0.09385409951210022,
0.48821747303009033,
0.23470836877822876,
0.003636294975876808,
0.3232390582561493,
-0.7280939817428589,
0.7194488644599915,
0.18047429621219635,
1.062091588973999,
-0.29916974902153015,
-0.6706500053405762,
-0.6431847810745239,
0.615368366241455... |
func (m *OrgUnitMemberMutation) UpdateTime() (r time.Time, exists bool) {
v := m.update_time
if v == nil {
return
}
return *v, true
} | [
-0.8685527443885803,
0.3955099582672119,
0.7372552156448364,
0.46119123697280884,
0.26251497864723206,
-0.11157576739788055,
-0.598319411277771,
-0.02615448087453842,
-0.12827293574810028,
1.239152431488037,
-0.5643385648727417,
-1.2981432676315308,
-1.4988341331481934,
0.07696429640054703... |
func (m *OrgUnitMemberMutation) OldUpdateTime(ctx context.Context) (v *time.Time, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldUpdateTime is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldUpdateTime requires an ID field in the mutation"... | [
-1.2696099281311035,
0.012568127363920212,
0.526235044002533,
0.19284531474113464,
-0.395935982465744,
-0.12549184262752533,
-0.05463043972849846,
-0.6124328374862671,
-0.15617048740386963,
0.6021454334259033,
-0.20041900873184204,
-0.6581863164901733,
-0.796057939529419,
0.643425345420837... |
func (m *OrgUnitMemberMutation) ClearUpdateTime() {
m.update_time = nil
m.clearedFields[orgunitmember.FieldUpdateTime] = struct{}{}
} | [
-0.5517095923423767,
-0.016618959605693817,
0.36787518858909607,
0.3550199866294861,
-0.8506948947906494,
0.6434541940689087,
-0.7386445999145508,
-0.21232227981090546,
0.011217474937438965,
1.1874946355819702,
-0.18096552789211273,
-0.15303444862365723,
-0.36925482749938965,
0.03946129232... |
func (m *OrgUnitMemberMutation) UpdateTimeCleared() bool {
_, ok := m.clearedFields[orgunitmember.FieldUpdateTime]
return ok
} | [
-0.8022590279579163,
0.16233806312084198,
0.5198200345039368,
0.2170855700969696,
-0.6906880736351013,
0.351684033870697,
-0.6067428588867188,
-0.8764632940292358,
-0.3074304461479187,
1.0315144062042236,
-0.1848503053188324,
-0.0051901135593652725,
-1.2453274726867676,
0.14747416973114014... |
func (m *OrgUnitMemberMutation) ResetUpdateTime() {
m.update_time = nil
delete(m.clearedFields, orgunitmember.FieldUpdateTime)
} | [
-0.277920126914978,
-0.16960358619689941,
0.24320106208324432,
0.6932782530784607,
-0.1255626231431961,
-0.17001907527446747,
-0.24151884019374847,
0.19338712096214294,
-0.3895508050918579,
0.9158345460891724,
-0.3566381335258484,
-0.029882606118917465,
-1.0928362607955933,
-0.381982088088... |
func (m *OrgUnitMemberMutation) SetIsAdditional(b bool) {
m.is_additional = &b
} | [
-0.2795870900154114,
0.04564526677131653,
0.29364466667175293,
0.12773169577121735,
-0.20968909561634064,
0.6764896512031555,
0.273917019367218,
0.22691383957862854,
-0.014276158064603806,
-0.19908840954303741,
-0.5270512104034424,
0.8385112881660461,
-0.7198699712753296,
0.609979033470153... |
func (m *OrgUnitMemberMutation) IsAdditional() (r bool, exists bool) {
v := m.is_additional
if v == nil {
return
}
return *v, true
} | [
-0.5148448944091797,
-0.007718326058238745,
0.46197235584259033,
0.43392351269721985,
0.009384985081851482,
0.19637075066566467,
0.08972856402397156,
-0.2655690312385559,
0.19032645225524902,
0.12713637948036194,
-0.05710091069340706,
0.9601668119430542,
-1.1030203104019165,
0.162417769432... |
func (m *OrgUnitMemberMutation) OldIsAdditional(ctx context.Context) (v bool, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldIsAdditional is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldIsAdditional requires an ID field in the mutation"... | [
-0.43143558502197266,
-0.06552660465240479,
0.7267436981201172,
-0.011195898987352848,
-0.2428741455078125,
0.5801659822463989,
0.22296714782714844,
-0.5797209143638611,
0.033004723489284515,
0.6138356328010559,
0.23394569754600525,
1.1283155679702759,
-0.8078144192695618,
0.52667552232742... |
func (m *OrgUnitMemberMutation) ResetIsAdditional() {
m.is_additional = nil
} | [
-0.13203608989715576,
-0.0024278166238218546,
0.04117075353860855,
0.4111906886100769,
0.05979786813259125,
0.23628023266792297,
0.7488131523132324,
-0.37221062183380127,
-0.10795702040195465,
0.200189471244812,
0.05067034810781479,
1.6189004182815552,
-0.9720430374145508,
-0.2685447931289... |
func (m *OrgUnitMemberMutation) SetUserID(i int) {
m.user = &i
} | [
-0.14995704591274261,
0.3592923581600189,
0.057159341871738434,
1.0463188886642456,
-0.05021670088171959,
1.2126610279083252,
1.0539019107818604,
0.3828004002571106,
-0.6842662692070007,
-0.43237775564193726,
-0.6984285712242126,
-0.25659608840942383,
-0.7923225164413452,
0.535096347332000... |
func (m *OrgUnitMemberMutation) UserID() (r int, exists bool) {
v := m.user
if v == nil {
return
}
return *v, true
} | [
-0.6788617372512817,
0.327462375164032,
0.45045599341392517,
0.6615201234817505,
0.31325021386146545,
0.41815850138664246,
0.7879502177238464,
0.060315415263175964,
0.4565626084804535,
0.2569226026535034,
-0.5971154570579529,
-0.44937753677368164,
-1.0663304328918457,
0.4775632619857788,
... |
func (m *OrgUnitMemberMutation) OldUserID(ctx context.Context) (v int, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldUserID is only allowed 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.21954156458377838,
-0.19751854240894318,
0.4802004396915436,
0.508032500743866,
-0.19443313777446747,
0.9565073847770691,
0.962334156036377,
-0.006656065583229065,
-0.09300905466079712,
0.10806988924741745,
0.4441044330596924,
0.8435112833976746,
-1.3213410377502441,
0.8283629417419434,... |
func (m *OrgUnitMemberMutation) ResetUserID() {
m.user = nil
} | [
0.17389202117919922,
-0.15378575026988983,
-0.04716277867555618,
1.1860566139221191,
0.08913010358810425,
0.46430134773254395,
1.1233123540878296,
0.7407345175743103,
-0.21823205053806305,
-0.06059173494577408,
0.05167821794748306,
1.1165980100631714,
-1.0675121545791626,
0.477325826883316... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.