text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m *SystemMutation) ResetName() {
m.name = nil
} | [
-0.24546970427036285,
0.11778441071510315,
0.18005439639091492,
0.701191246509552,
0.023792754858732224,
-0.621033251285553,
0.1081642210483551,
0.10889794677495956,
-0.20650914311408997,
0.14349310100078583,
-0.5027064681053162,
-0.1992568075656891,
-0.5618723630905151,
0.1139666289091110... |
func (m *SystemMutation) SetCreateByID(id int) {
m.create_by = &id
} | [
-0.1567208170890808,
0.04388761892914772,
0.30798810720443726,
0.3955262005329132,
-0.1028757318854332,
-0.04709961637854576,
0.22122567892074585,
-0.5101649761199951,
-0.2442488968372345,
0.41328078508377075,
-0.9601982831954956,
-0.8509434461593628,
-0.38441696763038635,
1.49520659446716... |
func (m *SystemMutation) ClearCreateBy() {
m.clearedcreate_by = true
} | [
-0.17555485665798187,
0.5846837162971497,
0.3264310956001282,
0.887801468372345,
0.02457558736205101,
0.3087379038333893,
0.6037783622741699,
-0.6711529493331909,
-0.23697079718112946,
0.5692041516304016,
-0.0982353538274765,
-0.5247880816459656,
0.004606856964528561,
0.5606594085693359,
... |
func (m *SystemMutation) CreateByCleared() bool {
return m.CreateByUserCleared() || m.clearedcreate_by
} | [
0.10370060056447983,
0.2753652036190033,
0.43595942854881287,
0.6727141737937927,
0.3741830885410309,
0.18861830234527588,
0.10705552250146866,
-0.8824348449707031,
0.05853759124875069,
-0.1629493683576584,
-0.249158576130867,
-0.6650258898735046,
-0.6577959656715393,
0.8122154474258423,
... |
func (m *SystemMutation) CreateByID() (id int, exists bool) {
if m.create_by != nil {
return *m.create_by, true
}
return
} | [
-0.3103656470775604,
0.40847957134246826,
0.5030091404914856,
0.11711980402469635,
0.4277842938899994,
-0.3312552571296692,
0.49973493814468384,
-0.24021244049072266,
-0.25386297702789307,
0.7926758527755737,
-0.9809333086013794,
-1.0684771537780762,
-0.9164786338806152,
0.8202101588249207... |
func (m *SystemMutation) CreateByIDs() (ids []int) {
if id := m.create_by; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.7169550657272339,
0.3421691060066223,
0.2198222577571869,
0.19065605103969574,
0.9366520047187805,
-0.915335476398468,
0.3625277578830719,
-0.3032171428203583,
-0.23451489210128784,
0.33035945892333984,
-0.8835128545761108,
-0.2487446814775467,
-0.6275829076766968,
0.7601335644721985,
... |
func (m *SystemMutation) ResetCreateBy() {
m.create_by = nil
m.clearedcreate_by = false
} | [
-0.17820852994918823,
0.24193954467773438,
0.2565954923629761,
0.8427252173423767,
0.6715245246887207,
-0.5410313606262207,
0.6489580869674683,
-0.27241194248199463,
-0.7673611640930176,
0.3568170666694641,
-0.5656968355178833,
-0.5167543292045593,
-0.6430347561836243,
0.37528833746910095,... |
func (m *SystemMutation) SetUpdateByID(id int) {
m.update_by = &id
} | [
-0.12725330889225006,
-0.4492567479610443,
0.2698279023170471,
0.20369859039783478,
-0.9930626749992371,
-0.4708181917667389,
-0.10850567370653152,
0.19577789306640625,
0.26061102747917175,
0.7947575449943542,
-0.340420126914978,
-0.9082351922988892,
-0.3310956060886383,
0.7182885408401489... |
func (m *SystemMutation) ClearUpdateBy() {
m.clearedupdate_by = true
} | [
-0.5025796294212341,
-0.1495792716741562,
0.5014103055000305,
1.0391883850097656,
-1.1799436807632446,
0.3092425763607025,
0.06057513877749443,
-0.15289710462093353,
0.3163582980632782,
1.0189052820205688,
0.1583261340856552,
-0.9981001615524292,
0.341257244348526,
-0.2495124638080597,
-... |
func (m *SystemMutation) UpdateByCleared() bool {
return m.UpdateByUserCleared() || m.clearedupdate_by
} | [
-0.062495987862348557,
-0.039247527718544006,
0.4508875012397766,
0.8025066256523132,
-0.6995833516120911,
-0.08445053547620773,
-0.14974892139434814,
-0.5622344017028809,
0.4092579782009125,
0.33189183473587036,
-0.14959491789340973,
-0.2729557454586029,
-0.8146722912788391,
0.41459298133... |
func (m *SystemMutation) UpdateByID() (id int, exists bool) {
if m.update_by != nil {
return *m.update_by, true
}
return
} | [
-0.6083496809005737,
0.0009340009419247508,
0.6252753138542175,
0.05298081785440445,
-0.4521333873271942,
-0.4784087836742401,
0.15877166390419006,
0.09841515868902206,
0.11581505835056305,
1.1558781862258911,
-0.8469201922416687,
-0.7744718194007874,
-0.9861172437667847,
0.270069628953933... |
func (m *SystemMutation) UpdateByIDs() (ids []int) {
if id := m.update_by; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.063061237335205,
-0.3269726037979126,
0.2693146765232086,
0.011045141145586967,
0.06987939774990082,
-0.99290931224823,
0.12318630516529083,
0.08405111730098724,
0.01057194359600544,
0.7659165263175964,
-0.7396624684333801,
0.30617058277130127,
-0.8808578848838806,
0.14231076836585999,
... |
func (m *SystemMutation) ResetUpdateBy() {
m.update_by = nil
m.clearedupdate_by = false
} | [
-0.6481136083602905,
-0.559698224067688,
0.3080964982509613,
1.1056067943572998,
-0.2587352693080902,
-0.8845562934875488,
0.39068588614463806,
0.07541408389806747,
-0.3286263644695282,
0.679667055606842,
-0.32272782921791077,
-0.9049338102340698,
-0.387561172246933,
-0.3470637798309326,
... |
func (m *SystemMutation) Where(ps ...predicate.System) {
m.predicates = append(m.predicates, ps...)
} | [
-0.2973492443561554,
-0.6336047649383545,
0.2264975607395172,
0.16327671706676483,
-0.12273257225751877,
0.3094339072704315,
0.008935650810599327,
-0.2716359794139862,
-0.5482550859451294,
-0.6089878082275391,
0.2270723581314087,
0.5396666526794434,
-0.041289541870355606,
0.486381620168685... |
func (m *SystemMutation) Op() Op {
return m.op
} | [
-1.0428931713104248,
0.13851971924304962,
-0.021177249029278755,
1.1829686164855957,
-0.24618560075759888,
0.7086421847343445,
0.8769641518592834,
0.27652740478515625,
0.3925648629665375,
0.21370014548301697,
0.0933867022395134,
-0.6322619915008545,
-0.19644269347190857,
-0.570932924747467... |
func (m *SystemMutation) Type() string {
return m.typ
} | [
-0.5152935981750488,
-0.47264981269836426,
-0.1504068821668625,
0.9847949147224426,
0.5592211484909058,
0.3460094630718231,
0.654080331325531,
-1.108001708984375,
0.8184536099433899,
0.04829759895801544,
0.14345914125442505,
-0.3700910210609436,
-0.6929742097854614,
0.6094020009040833,
0... |
func (m *SystemMutation) Fields() []string {
fields := make([]string, 0, 5)
if m.create_by != nil {
fields = append(fields, system.FieldCreateByUser)
}
if m.update_by != nil {
fields = append(fields, system.FieldUpdateByUser)
}
if m.create_time != nil {
fields = append(fields, system.FieldCreateTime)
}
if... | [
-0.9430142641067505,
-0.16065001487731934,
0.22582092881202698,
-0.2622356116771698,
0.3293956220149994,
-0.01925465278327465,
-0.5384678244590759,
-0.5399249196052551,
0.5920929908752441,
-0.0013894021976739168,
-0.756883442401886,
-0.6252854466438293,
-0.5676586031913757,
0.7135450243949... |
func (m *SystemMutation) Field(name string) (ent.Value, bool) {
switch name {
case system.FieldCreateByUser:
return m.CreateByUser()
case system.FieldUpdateByUser:
return m.UpdateByUser()
case system.FieldCreateTime:
return m.CreateTime()
case system.FieldUpdateTime:
return m.UpdateTime()
case system.Fiel... | [
-1.5384451150894165,
0.14026902616024017,
0.5626101493835449,
0.14598558843135834,
-0.4045257568359375,
0.3894842565059662,
-0.8657703995704651,
-0.7352086901664734,
0.3012014925479889,
-0.06852994859218597,
-0.6240625381469727,
-0.6438597440719604,
-0.3637838661670685,
1.1559879779815674,... |
func (m *SystemMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case system.FieldCreateByUser:
return m.OldCreateByUser(ctx)
case system.FieldUpdateByUser:
return m.OldUpdateByUser(ctx)
case system.FieldCreateTime:
return m.OldCreateTime(ctx)
case system.FieldUpdateTime... | [
-0.5401563048362732,
-0.011784125119447708,
0.4630485773086548,
-0.36732015013694763,
0.11494959890842438,
0.23298698663711548,
-0.14463084936141968,
-1.0093837976455688,
0.35979118943214417,
-0.1101243644952774,
-0.32719454169273376,
0.10933423787355423,
-0.4105958640575409,
0.57781940698... |
func (m *SystemMutation) SetField(name string, value ent.Value) error {
switch name {
case system.FieldCreateByUser:
v, ok := value.(int)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetCreateByUser(v)
return nil
case system.FieldUpdateByUser:
v, ok := value.(int)
i... | [
-1.0731538534164429,
0.21310867369174957,
0.6556886434555054,
0.09624870866537094,
-0.3749927580356598,
0.4968108534812927,
-0.20862996578216553,
-0.726874828338623,
0.016931775957345963,
-0.006339299958199263,
-0.48878762125968933,
-0.12605541944503784,
-0.15798300504684448,
1.17025721073... |
func (m *SystemMutation) AddedFields() []string {
var fields []string
return fields
} | [
-0.17841839790344238,
0.04825759306550026,
0.2550867199897766,
0.09623215347528458,
0.163218691945076,
0.7836290001869202,
-0.237993985414505,
-0.29273420572280884,
0.8296703696250916,
-0.7749040126800537,
-0.45774024724960327,
0.10845128446817398,
-1.236274003982544,
0.6694541573524475,
... |
func (m *SystemMutation) AddedField(name string) (ent.Value, bool) {
switch name {
}
return nil, false
} | [
-1.374819278717041,
0.7051507234573364,
0.5987367033958435,
-0.24700698256492615,
-0.3428005874156952,
1.039839506149292,
-0.624008297920227,
-0.21003052592277527,
0.5303022265434265,
-0.40187111496925354,
-1.1153298616409302,
-1.1100674867630005,
-1.5540118217468262,
0.5169350504875183,
... |
func (m *SystemMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown System numeric field %s", name)
} | [
-0.7107499837875366,
0.5765809416770935,
0.5694568753242493,
0.30861178040504456,
-0.13002774119377136,
1.286156415939331,
-0.9932287931442261,
-0.5193822383880615,
-0.26271799206733704,
-0.2177715003490448,
-0.1568334996700287,
-0.9959208369255066,
-0.2155410796403885,
0.6741883754730225,... |
func (m *SystemMutation) ClearedFields() []string {
var fields []string
if m.FieldCleared(system.FieldCreateByUser) {
fields = append(fields, system.FieldCreateByUser)
}
if m.FieldCleared(system.FieldUpdateByUser) {
fields = append(fields, system.FieldUpdateByUser)
}
if m.FieldCleared(system.FieldUpdateTime) ... | [
-0.4035869538784027,
0.2069619745016098,
0.22610284388065338,
0.1680787056684494,
-0.7412099242210388,
0.31743133068084717,
-0.1721310019493103,
-0.9249072074890137,
0.8282209038734436,
0.3831212818622589,
-0.2721640467643738,
0.011851238086819649,
-0.5984160304069519,
0.06559493392705917,... |
func (m *SystemMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.5752551555633545,
0.32637545466423035,
0.7100161910057068,
-0.13197234272956848,
-0.2806145250797272,
0.3625267446041107,
-0.8811113834381104,
-0.054150890558958054,
-0.080727718770504,
-0.3538069427013397,
-1.010925054550171,
-0.5010965466499329,
0.20654040575027466,
-0.033131074160337... |
func (m *SystemMutation) ClearField(name string) error {
switch name {
case system.FieldCreateByUser:
m.ClearCreateByUser()
return nil
case system.FieldUpdateByUser:
m.ClearUpdateByUser()
return nil
case system.FieldUpdateTime:
m.ClearUpdateTime()
return nil
}
return fmt.Errorf("unknown System nullabl... | [
-0.6208189725875854,
0.7116257548332214,
0.468511700630188,
0.441989004611969,
-0.5073661208152771,
0.48276546597480774,
-0.38567519187927246,
-1.0346876382827759,
0.5474322438240051,
0.47698554396629333,
-0.2932058870792389,
-0.6023191809654236,
-0.2885819971561432,
0.7622723579406738,
... |
func (m *SystemMutation) ResetField(name string) error {
switch name {
case system.FieldCreateByUser:
m.ResetCreateByUser()
return nil
case system.FieldUpdateByUser:
m.ResetUpdateByUser()
return nil
case system.FieldCreateTime:
m.ResetCreateTime()
return nil
case system.FieldUpdateTime:
m.ResetUpdate... | [
-0.7967298626899719,
0.6734338402748108,
0.3686656653881073,
0.3799933195114136,
0.31518831849098206,
0.1075119748711586,
0.30481433868408203,
-0.7201008200645447,
0.23673751950263977,
0.083380326628685,
-0.7508025765419006,
-0.33278244733810425,
-0.7818603515625,
0.421711802482605,
0.27... |
func (m *SystemMutation) AddedEdges() []string {
edges := make([]string, 0, 2)
if m.create_by != nil {
edges = append(edges, system.EdgeCreateBy)
}
if m.update_by != nil {
edges = append(edges, system.EdgeUpdateBy)
}
return edges
} | [
-0.5115950107574463,
-0.29551297426223755,
0.22348839044570923,
0.707137405872345,
0.28628969192504883,
-0.01895122416317463,
-0.7415100336074829,
-0.24335381388664246,
1.1125465631484985,
0.017966989427804947,
0.4365383982658386,
0.06313180178403854,
-0.6942088603973389,
0.812285840511322... |
func (m *SystemMutation) AddedIDs(name string) []ent.Value {
switch name {
case system.EdgeCreateBy:
if id := m.create_by; id != nil {
return []ent.Value{*id}
}
case system.EdgeUpdateBy:
if id := m.update_by; id != nil {
return []ent.Value{*id}
}
}
return nil
} | [
-0.777840793132782,
-0.41077470779418945,
0.25836873054504395,
-0.08065492659807205,
0.13805468380451202,
0.1596379429101944,
-0.9874917268753052,
-0.45001739263534546,
0.8792703151702881,
0.25782322883605957,
-0.0028280282858759165,
0.04534212872385979,
-0.6463741660118103,
0.992462396621... |
func (m *SystemMutation) RemovedEdges() []string {
edges := make([]string, 0, 2)
return edges
} | [
-0.3388773500919342,
-0.5078369379043579,
0.4915218949317932,
0.35488197207450867,
-0.16181227564811707,
-0.24287007749080658,
-0.29812127351760864,
0.3901427686214447,
0.9359155297279358,
0.08801209181547165,
-0.7987707853317261,
0.11725188046693802,
-1.2310651540756226,
0.306611716747283... |
func (m *SystemMutation) RemovedIDs(name string) []ent.Value {
switch name {
}
return nil
} | [
-0.8252924680709839,
-0.2631724774837494,
0.4551253318786621,
-0.45807260274887085,
-0.022841371595859528,
0.18179729580879211,
-0.5316650867462158,
0.3656798303127289,
0.738680362701416,
-0.04960063844919205,
-1.678938627243042,
-0.38371437788009644,
-1.0856926441192627,
0.758744597434997... |
func (m *SystemMutation) ClearedEdges() []string {
edges := make([]string, 0, 2)
if m.clearedcreate_by {
edges = append(edges, system.EdgeCreateBy)
}
if m.clearedupdate_by {
edges = append(edges, system.EdgeUpdateBy)
}
return edges
} | [
-0.7439683079719543,
-0.11186874657869339,
0.27841171622276306,
0.8244460225105286,
-0.6071171164512634,
-0.35350143909454346,
-0.5747969746589661,
-0.7284424901008606,
0.944270133972168,
1.2974369525909424,
0.47009116411209106,
0.5764555931091309,
-0.36251312494277954,
-0.0344041548669338... |
func (m *SystemMutation) EdgeCleared(name string) bool {
switch name {
case system.EdgeCreateBy:
return m.clearedcreate_by
case system.EdgeUpdateBy:
return m.clearedupdate_by
}
return false
} | [
-0.7875892519950867,
-0.035827625542879105,
0.6782646775245667,
0.08947864174842834,
-0.41854777932167053,
0.2875782251358032,
-0.46728089451789856,
-0.6583185195922852,
0.4455965459346771,
0.6893115043640137,
0.0865015834569931,
-0.3061186969280243,
-0.5713467001914978,
0.1862690001726150... |
func (m *SystemMutation) ClearEdge(name string) error {
switch name {
case system.EdgeCreateBy:
m.ClearCreateBy()
return nil
case system.EdgeUpdateBy:
m.ClearUpdateBy()
return nil
}
return fmt.Errorf("unknown System unique edge %s", name)
} | [
-1.038654088973999,
0.9946768283843994,
0.4512370228767395,
1.2655212879180908,
-0.13422797620296478,
0.0875086560845375,
-0.030643757432699203,
-0.17240862548351288,
0.5103758573532104,
0.5642468333244324,
0.23811443150043488,
-0.31420350074768066,
-0.34943121671676636,
0.9364961385726929... |
func (m *SystemMutation) ResetEdge(name string) error {
switch name {
case system.EdgeCreateBy:
m.ResetCreateBy()
return nil
case system.EdgeUpdateBy:
m.ResetUpdateBy()
return nil
}
return fmt.Errorf("unknown System edge %s", name)
} | [
-1.0741573572158813,
0.5651842355728149,
0.35343143343925476,
1.3319895267486572,
0.4858752191066742,
-0.44978004693984985,
0.09980669617652893,
0.1486527919769287,
0.06226704269647598,
0.6612560749053955,
-0.09957651793956757,
-0.24993474781513214,
-0.9846674203872681,
0.39337122440338135... |
func newUserMutation(c config, op Op, opts ...userOption) *UserMutation {
m := &UserMutation{
config: c,
op: op,
typ: TypeUser,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-0.7977626323699951,
-0.18672247231006622,
0.30564790964126587,
1.5073076486587524,
-1.2177942991256714,
-0.7344379425048828,
1.0606269836425781,
-0.040765464305877686,
0.7040554881095886,
0.4996708631515503,
-1.284356951713562,
-0.43365904688835144,
-0.3581930994987488,
-0.897122383117675... |
func withUserID(id int) userOption {
return func(m *UserMutation) {
var (
err error
once sync.Once
value *User
)
m.oldValue = func(ctx context.Context) (*User, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
} else {
valu... | [
0.051705844700336456,
-0.5384947061538696,
0.46256837248802185,
0.2342080920934677,
-0.8659388422966003,
0.5164119005203247,
0.728832483291626,
-0.27848324179649353,
0.6509742140769958,
0.28185170888900757,
0.05590410903096199,
0.19578412175178528,
0.19599959254264832,
0.23627442121505737,... |
func withUser(node *User) userOption {
return func(m *UserMutation) {
m.oldValue = func(context.Context) (*User, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.42843279242515564,
0.12800559401512146,
0.3535762429237366,
0.38771313428878784,
-0.4507041871547699,
-0.2152927815914154,
1.3018970489501953,
-0.33105558156967163,
0.6103664636611938,
-0.5974341630935669,
-0.25736093521118164,
0.17482630908489227,
1.0228557586669922,
-0.340879976749420... |
func (m UserMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.3713695704936981,
-0.26616814732551575,
-0.0093098608776927,
0.7918297052383423,
-0.7991381883621216,
0.3346405029296875,
1.169060468673706,
-0.24015896022319794,
0.3802514374256134,
-0.4725472927093506,
-0.6715361475944519,
0.510687530040741,
0.1527256816625595,
-1.015045404434204,
0... |
func (m UserMutation) 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.10930896550416946,
0.31762465834617615,
0.343875527381897,
1.0291653871536255,
-0.1067948043346405,
0.0347769670188427,
0.29679057002067566,
0.21374957263469696,
0.6645727753639221,
-0.042068980634212494,
-0.17100563645362854,
-0.14530165493488312,
-0.32669946551322937,
-0.9902449846267... |
func (m *UserMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.6733623743057251,
-0.12700015306472778,
0.5363195538520813,
0.9355253577232361,
-0.12867307662963867,
0.3308108448982239,
0.5541046261787415,
0.3411538302898407,
1.0130633115768433,
0.29298830032348633,
-0.32579636573791504,
-0.8865579962730408,
-0.8875625729560852,
0.35974156856536865,... |
func (m *UserMutation) SetCreateByUser(i int) {
m.create_by = &i
} | [
-0.4129576086997986,
0.6553524732589722,
0.33179816603660583,
0.7861670255661011,
-0.15997526049613953,
-0.18448349833488464,
1.6203826665878296,
-0.5185112357139587,
-2.0893101692199707,
-0.777451753616333,
-1.326917052268982,
-1.1985483169555664,
-0.061604321002960205,
0.5143315196037292... |
func (m *UserMutation) CreateByUser() (r int, exists bool) {
v := m.create_by
if v == nil {
return
}
return *v, true
} | [
-0.7424551844596863,
1.0180283784866333,
0.66620272397995,
0.781955897808075,
-0.15849018096923828,
-0.6957433819770813,
1.4412599802017212,
-0.08452628552913666,
-1.391788363456726,
-0.026657268404960632,
-1.3958371877670288,
-1.4866206645965576,
-0.5139899253845215,
0.2936860918998718,
... |
func (m *UserMutation) 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")
}
oldV... | [
-0.6571388244628906,
0.16249342262744904,
0.5457060933113098,
0.6698676943778992,
-0.3697902262210846,
-0.4886610805988312,
1.6230671405792236,
-0.6392412185668945,
-0.5177820324897766,
-0.7841668128967285,
-0.6234316229820251,
-0.2372668832540512,
-0.36961713433265686,
0.7679048776626587,... |
func (m *UserMutation) ClearCreateByUser() {
m.create_by = nil
m.clearedFields[user.FieldCreateByUser] = struct{}{}
} | [
0.024008607491850853,
0.6664581894874573,
0.4211580157279968,
1.0642693042755127,
-0.6637085676193237,
0.2774459719657898,
1.1072759628295898,
-0.9431565999984741,
-1.104082465171814,
-0.21758878231048584,
-1.092164397239685,
0.024936091154813766,
0.06619046628475189,
0.11299822479486465,
... |
func (m *UserMutation) CreateByUserCleared() bool {
_, ok := m.clearedFields[user.FieldCreateByUser]
return ok
} | [
0.07111508399248123,
0.5326310992240906,
0.5272933840751648,
0.7192692160606384,
-0.2254902869462967,
0.3178499639034271,
0.7311931848526001,
-0.5369819402694702,
-0.5039950609207153,
-0.09726262837648392,
-0.6337093710899353,
-0.7655490040779114,
-0.23556587100028992,
-0.19781902432441711... |
func (m *UserMutation) ResetCreateByUser() {
m.create_by = nil
delete(m.clearedFields, user.FieldCreateByUser)
} | [
0.403260201215744,
0.5626075267791748,
0.3808130919933319,
1.2535243034362793,
-0.01391985360532999,
-0.3533060550689697,
1.2622753381729126,
-0.5585851073265076,
-1.482393503189087,
-0.5817723870277405,
-1.0661038160324097,
-0.13940493762493134,
-0.3538249135017395,
-0.02657642960548401,
... |
func (m *UserMutation) SetUpdateByUser(i int) {
m.update_by = &i
} | [
-0.42007532715797424,
0.2767428755760193,
0.4479663372039795,
0.8650315403938293,
-1.1826390027999878,
-0.5392171740531921,
1.234287142753601,
0.19954128563404083,
-1.3896262645721436,
-0.23188325762748718,
-0.795512318611145,
-1.2711493968963623,
-0.11742740124464035,
-0.24766463041305542... |
func (m *UserMutation) UpdateByUser() (r int, exists bool) {
v := m.update_by
if v == nil {
return
}
return *v, true
} | [
-1.1576038599014282,
0.6687747240066528,
0.7302594780921936,
0.7049344778060913,
-0.9138991236686707,
-0.8964595198631287,
1.3189294338226318,
0.13810455799102783,
-1.0463659763336182,
0.21712635457515717,
-1.333914041519165,
-1.0362308025360107,
-0.676039457321167,
-0.2269219309091568,
... |
func (m *UserMutation) 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")
}
oldV... | [
-0.5590392351150513,
-0.043510325253009796,
0.5870053172111511,
0.7784589529037476,
-0.8784583210945129,
-0.8114795684814453,
1.1567903757095337,
-0.3804799020290375,
-0.265227347612381,
-0.3843337297439575,
-0.4734027683734894,
-0.3180314898490906,
-0.5055822134017944,
0.5087544322013855,... |
func (m *UserMutation) ClearUpdateByUser() {
m.update_by = nil
m.clearedFields[user.FieldUpdateByUser] = struct{}{}
} | [
0.04299609735608101,
0.03793681412935257,
0.45488348603248596,
1.4154607057571411,
-1.8446873426437378,
0.16775985062122345,
0.30565309524536133,
-0.05167189985513687,
-0.41326841711997986,
0.39249175786972046,
-0.5630215406417847,
-0.41894009709358215,
0.06181146577000618,
-0.580184459686... |
func (m *UserMutation) UpdateByUserCleared() bool {
_, ok := m.clearedFields[user.FieldUpdateByUser]
return ok
} | [
-0.14835600554943085,
0.0603584423661232,
0.5024622082710266,
0.7675743699073792,
-1.285455584526062,
0.004845749121159315,
0.6197042465209961,
-0.31575340032577515,
-0.4132511615753174,
0.5341190099716187,
-0.4893174469470978,
-0.13126929104328156,
-0.5305598378181458,
-0.5645642876625061... |
func (m *UserMutation) ResetUpdateByUser() {
m.update_by = nil
delete(m.clearedFields, user.FieldUpdateByUser)
} | [
0.39267346262931824,
-0.17585653066635132,
0.3279295563697815,
1.5722166299819946,
-0.8600656390190125,
-0.8074700832366943,
0.8015904426574707,
0.07045816630125046,
-0.9507918953895569,
0.21150991320610046,
-0.40316417813301086,
-0.3117770850658417,
-0.4743093252182007,
-0.8516885638237,
... |
func (m *UserMutation) SetCreateTime(t time.Time) {
m.create_time = &t
} | [
-0.22556613385677338,
0.4114392399787903,
0.20836685597896576,
0.2678285539150238,
0.6482149362564087,
-0.10825564712285995,
-0.34922724962234497,
0.028653794899582863,
-0.4418397545814514,
0.7842006087303162,
-0.8383625745773315,
-1.2401293516159058,
0.019368069246411324,
1.31439256668090... |
func (m *UserMutation) CreateTime() (r time.Time, exists bool) {
v := m.create_time
if v == nil {
return
}
return *v, true
} | [
-0.6187574863433838,
0.6781127452850342,
0.6044989228248596,
0.34286150336265564,
0.7793726325035095,
-0.3043665289878845,
-0.4507230222225189,
-0.30816707015037537,
-0.049892622977495193,
1.1003655195236206,
-0.6004778742790222,
-2.1640725135803223,
-0.9184591174125671,
0.4596603810787201... |
func (m *UserMutation) 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")
}
oldV... | [
-0.8900150656700134,
0.27759993076324463,
0.3196656405925751,
0.1381625384092331,
-0.26685991883277893,
-0.4430115222930908,
0.43078485131263733,
-0.6649546027183533,
0.5717880129814148,
0.7736930847167969,
-0.24411971867084503,
-1.11275315284729,
-0.3814397156238556,
0.934329628944397,
... |
func (m *UserMutation) ResetCreateTime() {
m.create_time = nil
} | [
-0.018483122810721397,
0.348156601190567,
0.048597902059555054,
0.48877668380737305,
0.6962692141532898,
-0.4764792025089264,
-0.02311296947300434,
-0.20382745563983917,
-0.5575005412101746,
0.8440598845481873,
-0.8400084376335144,
-0.08580604195594788,
-0.7369660139083862,
0.5664345622062... |
func (m *UserMutation) SetUpdateTime(t time.Time) {
m.update_time = &t
} | [
-0.5179791450500488,
0.0508849136531353,
0.4620743691921234,
0.6098341345787048,
-0.5858818292617798,
0.20706281065940857,
-0.6457816958427429,
0.8014824986457825,
0.35472947359085083,
1.1255820989608765,
-0.4181600511074066,
-1.0314496755599976,
0.1665361225605011,
0.6922966837882996,
-... |
func (m *UserMutation) UpdateTime() (r time.Time, exists bool) {
v := m.update_time
if v == nil {
return
}
return *v, true
} | [
-1.0660146474838257,
0.5259323120117188,
0.7489431500434875,
0.7324025630950928,
-0.2565979063510895,
-0.28888100385665894,
-0.4724631607532501,
0.1693824827671051,
0.10587794333696365,
1.4477992057800293,
-0.6192013025283813,
-1.7257267236709595,
-0.8264989256858826,
0.21012292802333832,
... |
func (m *UserMutation) 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")
}
old... | [
-1.5048749446868896,
0.14680594205856323,
0.4968930780887604,
0.6569956541061401,
-1.255234718322754,
-0.3766065537929535,
0.25616803765296936,
-0.43435195088386536,
0.47235921025276184,
0.6019505858421326,
-0.23153093457221985,
-1.0377416610717773,
-0.09421440958976746,
0.8397734761238098... |
func (m *UserMutation) ClearUpdateTime() {
m.update_time = nil
m.clearedFields[user.FieldUpdateTime] = struct{}{}
} | [
-0.5855451226234436,
0.019523952156305313,
0.3016796112060547,
0.5354646444320679,
-1.4028866291046143,
0.5477508902549744,
-0.7888281941413879,
-0.2503243088722229,
0.18576008081436157,
1.3445302248001099,
-0.4355606138706207,
-0.5706830620765686,
0.44702616333961487,
0.19474674761295319,... |
func (m *UserMutation) UpdateTimeCleared() bool {
_, ok := m.clearedFields[user.FieldUpdateTime]
return ok
} | [
-0.9625436663627625,
0.2254154235124588,
0.5015808343887329,
0.43942582607269287,
-1.2317311763763428,
0.26264020800590515,
-0.6989213824272156,
-0.9047566056251526,
-0.14027148485183716,
0.9757790565490723,
-0.322923868894577,
-0.46942657232284546,
-0.4518188238143921,
0.3784405291080475,... |
func (m *UserMutation) ResetUpdateTime() {
m.update_time = nil
delete(m.clearedFields, user.FieldUpdateTime)
} | [
-0.2124747335910797,
-0.10473542660474777,
0.154194176197052,
1.0056660175323486,
-0.6545948386192322,
-0.37741267681121826,
-0.17930810153484344,
0.1473412960767746,
-0.17745919525623322,
0.9286223649978638,
-0.725504994392395,
-0.5541269183158875,
-0.15783554315567017,
-0.178339436650276... |
func (m *UserMutation) SetAccountName(s string) {
m.account_name = &s
} | [
-0.2594020664691925,
0.15418799221515656,
0.12712734937667847,
1.7438385486602783,
0.10435191541910172,
-0.10471218079328537,
0.901928722858429,
1.106682538986206,
0.26138627529144287,
-0.11388839036226273,
-0.18099603056907654,
-0.3145701587200165,
1.0041815042495728,
0.5922874808311462,
... |
func (m *UserMutation) AccountName() (r string, exists bool) {
v := m.account_name
if v == nil {
return
}
return *v, true
} | [
-1.0985736846923828,
0.3025651276111603,
0.5184321403503418,
1.6366643905639648,
0.38364407420158386,
-0.3933119475841522,
0.8666641712188721,
0.357011079788208,
0.3608531653881073,
0.4231069087982178,
0.07648663222789764,
-0.5487847328186035,
-0.04761314392089844,
-0.09130145609378815,
... |
func (m *UserMutation) OldAccountName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldAccountName is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldAccountName requires an ID field in the mutation")
}
oldV... | [
-0.8910409808158875,
-0.17773137986660004,
0.6669269800186157,
1.137367606163025,
-0.9277847409248352,
-0.13756880164146423,
1.495599627494812,
-0.26173123717308044,
0.6183791756629944,
-0.18304401636123657,
0.5934282541275024,
-0.0457855723798275,
0.37238654494285583,
0.34393006563186646,... |
func (m *UserMutation) ResetAccountName() {
m.account_name = nil
} | [
-0.3335171639919281,
-0.04638965427875519,
0.16851694881916046,
1.5037070512771606,
-0.010891531594097614,
-0.5634958744049072,
1.6099079847335815,
0.3846060037612915,
0.27111339569091797,
-0.07101302593946457,
0.3475783169269562,
0.07815926522016525,
-0.13807092607021332,
-0.6197965741157... |
func (m *UserMutation) SetStaffType(ut user.StaffType) {
m.staff_type = &ut
} | [
0.5977474451065063,
0.5103332996368408,
-0.013000541366636753,
1.1722599267959595,
0.1960233449935913,
-0.2388206124305725,
0.6657421588897705,
-0.31019532680511475,
-0.1736113429069519,
-0.2920931577682495,
-0.6928285360336304,
-0.4491550922393799,
0.20870423316955566,
1.7187459468841553,... |
func (m *UserMutation) StaffType() (r user.StaffType, exists bool) {
v := m.staff_type
if v == nil {
return
}
return *v, true
} | [
-0.06530587375164032,
1.22422456741333,
0.4157349765300751,
1.108141541481018,
0.5826793313026428,
-0.6268684267997742,
0.5529981851577759,
-0.7664651870727539,
0.05928436666727066,
0.5514727830886841,
-0.20036624372005463,
-0.8759474754333496,
-0.7821277976036072,
0.7885071635246277,
0.... |
func (m *UserMutation) OldStaffType(ctx context.Context) (v user.StaffType, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldStaffType is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldStaffType requires an ID field in the mutation")
}
ol... | [
-0.1564837545156479,
0.45537418127059937,
0.32304519414901733,
0.6670613884925842,
-0.6530812382698059,
-0.6789186596870422,
0.7350761294364929,
-1.2433589696884155,
0.29991891980171204,
0.018718499690294266,
-0.30692824721336365,
-0.3783166706562042,
-0.4339672327041626,
1.352742552757263... |
func (m *UserMutation) ResetStaffType() {
m.staff_type = nil
} | [
0.926103949546814,
0.6158495545387268,
-0.14015303552150726,
1.4349398612976074,
0.438260555267334,
-0.3350692391395569,
0.941323459148407,
-0.7495604753494263,
-0.9927121996879578,
-0.20942369103431702,
-0.505955159664154,
0.14846433699131012,
-0.49375125765800476,
1.3658019304275513,
0... |
func (m *UserMutation) SetIsOnJob(b bool) {
m.is_on_job = &b
} | [
0.09091711044311523,
0.1678878217935562,
0.2812255620956421,
1.1959189176559448,
-0.9375432729721069,
0.34140563011169434,
0.14803136885166168,
0.15632936358451843,
-0.4773210287094116,
0.15558280050754547,
-0.4534987807273865,
0.4348453879356384,
-0.8593958616256714,
0.18296264111995697,
... |
func (m *UserMutation) IsOnJob() (r bool, exists bool) {
v := m.is_on_job
if v == nil {
return
}
return *v, true
} | [
-0.3702166974544525,
0.02089560404419899,
0.30569443106651306,
1.1873822212219238,
-1.2206404209136963,
-0.21133902668952942,
-0.2599835991859436,
0.01124775130301714,
-0.1034313440322876,
0.38759878277778625,
-0.5203126668930054,
-0.04186927527189255,
-1.0747140645980835,
0.08580311387777... |
func (m *UserMutation) OldIsOnJob(ctx context.Context) (v bool, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldIsOnJob is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldIsOnJob requires an ID field in the mutation")
}
oldValue, err := m... | [
-0.3297334313392639,
0.08310171216726303,
0.5258998870849609,
1.0556371212005615,
-1.4954203367233276,
0.25808149576187134,
0.43498286604881287,
-0.30649521946907043,
-0.013078641146421432,
0.2763998210430145,
-0.10169632732868195,
0.20727874338626862,
-0.6839404106140137,
0.54938918352127... |
func (m *UserMutation) ResetIsOnJob() {
m.is_on_job = nil
} | [
0.3744766116142273,
-0.013534327037632465,
0.00955462921410799,
1.4648663997650146,
-0.6294577121734619,
-0.13390909135341644,
0.47388869524002075,
-0.012975948862731457,
-0.6320457458496094,
0.49303802847862244,
-0.39700090885162354,
0.7676422595977783,
-1.0402072668075562,
-0.28411659598... |
func (m *UserMutation) SetFamilyName(s string) {
m.family_name = &s
} | [
-0.3075343072414398,
0.26773810386657715,
-0.03583715111017227,
1.6720386743545532,
-0.47867369651794434,
-0.39198794960975647,
-0.05489427596330643,
0.747376561164856,
-0.5538148283958435,
-0.3136381208896637,
-0.7033923864364624,
-1.2721612453460693,
0.5451645255088806,
0.887941122055053... |
func (m *UserMutation) FamilyName() (r string, exists bool) {
v := m.family_name
if v == nil {
return
}
return *v, true
} | [
-0.8851227164268494,
0.5800825357437134,
0.3456995487213135,
1.476759672164917,
-0.045981910079717636,
-0.8262665271759033,
-0.171494260430336,
0.131654292345047,
0.024945510551333427,
0.18997396528720856,
-0.20604027807712555,
-1.1596171855926514,
-0.4046126902103424,
-0.08459241688251495... |
func (m *UserMutation) OldFamilyName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldFamilyName is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldFamilyName requires an ID field in the mutation")
}
oldValu... | [
-1.0361967086791992,
0.18337726593017578,
0.47985875606536865,
1.1044933795928955,
-1.1431922912597656,
-0.21342013776302338,
0.4393841624259949,
-0.5258928537368774,
0.18869130313396454,
-0.37340590357780457,
0.07416217029094696,
-0.6354286670684814,
0.1179770678281784,
0.4005675017833709... |
func (m *UserMutation) ResetFamilyName() {
m.family_name = nil
} | [
-0.47004958987236023,
-0.09646399319171906,
-0.022385582327842712,
1.5052748918533325,
-0.3343624472618103,
-0.4619410037994385,
0.10156785696744919,
0.4933626651763916,
-0.6126669645309448,
-0.4301895499229431,
-0.30469027161598206,
-0.7170132994651794,
0.05901499092578888,
-0.24307461082... |
func (m *UserMutation) SetGivenName(s string) {
m.given_name = &s
} | [
-0.23540498316287994,
0.9650527834892273,
0.17659945785999298,
0.46792349219322205,
-0.5449321866035461,
0.13383136689662933,
1.009399175643921,
0.9434097409248352,
-0.2095644623041153,
-0.6444923281669617,
-0.6500101685523987,
-0.9422774910926819,
0.08552853018045425,
0.7192384004592896,
... |
func (m *UserMutation) GivenName() (r string, exists bool) {
v := m.given_name
if v == nil {
return
}
return *v, true
} | [
-0.7244307994842529,
0.6978121399879456,
0.4719419777393341,
0.3636222779750824,
-0.34750300645828247,
-0.40551939606666565,
0.5191361308097839,
0.40760090947151184,
0.1535656452178955,
0.08597563952207565,
-0.5998608469963074,
-1.555113434791565,
-0.5128691792488098,
0.45580872893333435,
... |
func (m *UserMutation) OldGivenName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldGivenName is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldGivenName requires an ID field in the mutation")
}
oldValue, ... | [
-0.7026536464691162,
0.21083158254623413,
0.5373073816299438,
0.377032995223999,
-1.0380960702896118,
0.16269975900650024,
0.7060667276382446,
0.1986202597618103,
0.19127587974071503,
-0.3634539842605591,
0.3135804533958435,
-0.71088707447052,
-0.20602957904338837,
0.6590164303779602,
0.... |
func (m *UserMutation) ResetGivenName() {
m.given_name = nil
} | [
-0.478136271238327,
1.0037871599197388,
0.11688341945409775,
0.38864830136299133,
-0.3257691264152527,
0.11177925020456314,
0.8607317805290222,
0.7882077097892761,
-0.9112210869789124,
-0.4540325403213501,
-0.5646379590034485,
-0.45922836661338806,
-0.7052137851715088,
0.37353289127349854,... |
func (m *UserMutation) SetDisplayName(s string) {
m.display_name = &s
} | [
0.5022518634796143,
-0.036209385842084885,
0.248069629073143,
1.6012765169143677,
-0.9212916493415833,
-0.13653138279914856,
0.44173023104667664,
0.36359405517578125,
-0.1598174124956131,
0.36623135209083557,
-0.41020825505256653,
-1.128250241279602,
0.5538315773010254,
0.4262588620185852,... |
func (m *UserMutation) DisplayName() (r string, exists bool) {
v := m.display_name
if v == nil {
return
}
return *v, true
} | [
-0.4806691110134125,
0.46404194831848145,
0.6286746263504028,
1.0502928495407104,
-0.7860448360443115,
-0.5523614883422852,
0.21401655673980713,
-0.2037026733160019,
0.21465936303138733,
0.9263662695884705,
-0.5475473999977112,
-1.396206259727478,
-0.5576466917991638,
-0.33535152673721313,... |
func (m *UserMutation) OldDisplayName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldDisplayName is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldDisplayName requires an ID field in the mutation")
}
oldV... | [
-0.5153172612190247,
-0.2305600345134735,
0.6647883057594299,
0.955237865447998,
-1.3427305221557617,
-0.4642495810985565,
1.1165560483932495,
-0.6541584134101868,
0.4150727093219757,
0.27129092812538147,
0.3899330198764801,
-0.5557234287261963,
0.18651850521564484,
0.4119422137737274,
0... |
func (m *UserMutation) ResetDisplayName() {
m.display_name = nil
} | [
0.14075380563735962,
-0.3798806965351105,
0.09193144738674164,
1.8036624193191528,
-0.8972039818763733,
-0.5542621612548828,
0.5782785415649414,
-0.14429432153701782,
-0.4760976731777191,
0.3154659867286682,
-0.24473701417446136,
-0.2833230197429657,
-0.18973274528980255,
-0.32751762866973... |
func (m *UserMutation) SetBirthday(t time.Time) {
m.birthday = &t
} | [
-0.1145985946059227,
0.8167719841003418,
0.32569095492362976,
1.8984861373901367,
0.7642765045166016,
0.31902194023132324,
0.2772824466228485,
-0.12478837370872498,
-0.942471981048584,
-0.5591641068458557,
-1.0191915035247803,
-0.2162541300058365,
-0.07020390778779984,
0.8140034675598145,
... |
func (m *UserMutation) Birthday() (r time.Time, exists bool) {
v := m.birthday
if v == nil {
return
}
return *v, true
} | [
-0.40572574734687805,
1.0209264755249023,
0.6885499358177185,
1.3678499460220337,
0.3470056653022766,
-0.12298240512609482,
-0.0009105585049837828,
-0.20653757452964783,
-0.17092810571193695,
0.5734765529632568,
-0.7744696736335754,
-0.7150744795799255,
-0.765486478805542,
0.34520936012268... |
func (m *UserMutation) OldBirthday(ctx context.Context) (v *time.Time, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldBirthday is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldBirthday requires an ID field in the mutation")
}
oldValue,... | [
-0.48475751280784607,
0.5579498410224915,
0.4979247748851776,
1.2424685955047607,
-0.09742999821901321,
-0.16632890701293945,
0.7708054184913635,
-0.7820324301719666,
-0.12871646881103516,
-0.5255032777786255,
-0.4885142147541046,
0.41394758224487305,
-0.8211430311203003,
1.051110982894897... |
func (m *UserMutation) ClearBirthday() {
m.birthday = nil
m.clearedFields[user.FieldBirthday] = struct{}{}
} | [
-0.29392480850219727,
0.9854847192764282,
0.2237667292356491,
1.1335645914077759,
0.014608954079449177,
0.16921910643577576,
0.23570124804973602,
-0.7213177680969238,
-0.7414202094078064,
-0.2054113745689392,
-0.7659143805503845,
0.24277819693088531,
-0.037750426679849625,
0.43429717421531... |
func (m *UserMutation) BirthdayCleared() bool {
_, ok := m.clearedFields[user.FieldBirthday]
return ok
} | [
-0.38150110840797424,
0.9565629363059998,
0.5819998383522034,
0.8183811902999878,
-0.17523522675037384,
0.7383628487586975,
-0.11523322016000748,
-0.550866425037384,
-0.7570153474807739,
-0.4750111401081085,
-0.5889007449150085,
-0.020717838779091835,
-0.8985328674316406,
0.145839035511016... |
func (m *UserMutation) ResetBirthday() {
m.birthday = nil
delete(m.clearedFields, user.FieldBirthday)
} | [
0.09381796419620514,
0.9734442830085754,
0.11589986830949783,
1.5438742637634277,
0.729465663433075,
-0.5389973521232605,
1.028356909751892,
-0.09868762642145157,
-0.9816627502441406,
-0.6986008882522583,
-0.7798850536346436,
0.48586809635162354,
-0.6304304003715515,
0.32237255573272705,
... |
func (m *UserMutation) SetIDNumber(s string) {
m.id_number = &s
} | [
-0.46297377347946167,
0.21336029469966888,
0.11486697942018509,
0.4393903911113739,
0.3620721995830536,
0.008366240188479424,
0.45208740234375,
0.7754855751991272,
0.2824166417121887,
-1.1561757326126099,
-1.6419271230697632,
0.09644518047571182,
0.456348717212677,
0.7738330364227295,
0.... |
func (m *UserMutation) IDNumber() (r string, exists bool) {
v := m.id_number
if v == nil {
return
}
return *v, true
} | [
-0.970669150352478,
0.4870876371860504,
0.5053573250770569,
0.7461607456207275,
0.06649468094110489,
-0.13244035840034485,
0.45160341262817383,
0.4847579598426819,
0.7379537224769592,
-0.4735265076160431,
-0.6607900261878967,
-0.6602843999862671,
-0.3065623342990875,
0.220469668507576,
0... |
func (m *UserMutation) OldIDNumber(ctx context.Context) (v *string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldIDNumber is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldIDNumber requires an ID field in the mutation")
}
oldValue, er... | [
-0.9366342425346375,
-0.2207530438899994,
0.40324437618255615,
0.08277475833892822,
-0.667388379573822,
-0.13949385285377502,
0.453860878944397,
-0.1419646441936493,
0.6728512048721313,
-0.8741530776023865,
-0.2986770272254944,
0.5468912124633789,
-0.5008440017700195,
0.5743911862373352,
... |
func (m *UserMutation) ClearIDNumber() {
m.id_number = nil
m.clearedFields[user.FieldIDNumber] = struct{}{}
} | [
-0.8280850648880005,
0.25315552949905396,
0.22435037791728973,
0.10935938358306885,
-0.7794394493103027,
0.21816042065620422,
0.5567976832389832,
-0.36173215508461,
0.508109450340271,
-0.10344637930393219,
-1.2633053064346313,
0.3457638919353485,
0.360537588596344,
0.20669375360012054,
0... |
func (m *UserMutation) IDNumberCleared() bool {
_, ok := m.clearedFields[user.FieldIDNumber]
return ok
} | [
-1.0718435049057007,
0.3148227334022522,
0.35270580649375916,
0.13007940351963043,
-0.7874345183372498,
0.4168148934841156,
0.25406068563461304,
-0.659203290939331,
0.5871390700340271,
-0.45567795634269714,
-0.7143287062644958,
-0.23851589858531952,
-0.4573880732059479,
-0.2363771051168441... |
func (m *UserMutation) ResetIDNumber() {
m.id_number = nil
delete(m.clearedFields, user.FieldIDNumber)
} | [
-0.4604068696498871,
0.11167728155851364,
0.24163079261779785,
0.6584075093269348,
-0.03233950957655907,
-0.4646429717540741,
1.0188562870025635,
0.0039774212054908276,
0.20083151757717133,
-0.4632788300514221,
-1.218593716621399,
0.772259533405304,
-0.11958726495504379,
0.0094225434586405... |
func (m *UserMutation) SetSex(u user.Sex) {
m.sex = &u
} | [
-0.6952681541442871,
1.1616712808609009,
0.10358577221632004,
1.6583139896392822,
-1.851497769355774,
0.2326814979314804,
-0.3905077278614044,
0.8316677808761597,
0.49189260601997375,
-1.829798698425293,
-1.1675336360931396,
1.0730023384094238,
0.0324925072491169,
-0.11262831091880798,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.