text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m *EmployeeMutation) AddPatientIDs(ids ...int) {
if m.patient == nil {
m.patient = make(map[int]struct{})
}
for i := range ids {
m.patient[ids[i]] = struct{}{}
}
} | [
-1.6919595003128052,
0.023524977266788483,
0.1467725932598114,
-0.5999709963798523,
-0.19401028752326965,
0.21746724843978882,
-0.9140940308570862,
0.503821611404419,
-0.16731669008731842,
0.3677825629711151,
0.015889847651124,
-0.2852902412414551,
-0.6821519732475281,
-0.14646337926387787... |
func (m *EmployeeMutation) RemovePatientIDs(ids ...int) {
if m.removedpatient == nil {
m.removedpatient = make(map[int]struct{})
}
for i := range ids {
m.removedpatient[ids[i]] = struct{}{}
}
} | [
-1.608203649520874,
-0.20823948085308075,
0.08517403900623322,
-0.4887641668319702,
-0.9610194563865662,
-0.039070118218660355,
-0.4291083514690399,
0.9528835415840149,
-0.25861066579818726,
0.5676148533821106,
-0.4765995740890503,
-0.29922807216644287,
-1.2603158950805664,
-0.077589772641... |
func (m *EmployeeMutation) RemovedPatientIDs() (ids []int) {
for id := range m.removedpatient {
ids = append(ids, id)
}
return
} | [
-0.7534642815589905,
-0.6972185969352722,
0.15819784998893738,
-0.40979117155075073,
-0.8043740391731262,
0.0351361483335495,
-0.48886531591415405,
0.6571627855300903,
0.4573705196380615,
0.18425631523132324,
-0.4736122190952301,
0.9799433350563049,
-1.0995471477508545,
0.38324055075645447... |
func (m *EmployeeMutation) PatientIDs() (ids []int) {
for id := range m.patient {
ids = append(ids, id)
}
return
} | [
-1.197789192199707,
-0.4608362913131714,
0.03005410172045231,
0.035216256976127625,
-0.01510015968233347,
0.08452814817428589,
-0.5705724954605103,
0.4821935296058655,
0.25693491101264954,
0.6570714116096497,
0.21428470313549042,
0.9036657214164734,
-0.7342759370803833,
-0.1722005754709243... |
func (m *EmployeeMutation) ResetPatient() {
m.patient = nil
m.removedpatient = nil
} | [
-0.5974894762039185,
0.4214475750923157,
0.21596568822860718,
-0.10830710083246231,
0.19180265069007874,
0.042915742844343185,
0.11167648434638977,
0.3787461817264557,
-0.3602190911769867,
-0.6154224872589111,
0.4098723828792572,
0.4858746826648712,
-0.7931253910064697,
-0.8918009996414185... |
func (m *EmployeeMutation) Op() Op {
return m.op
} | [
-1.2765576839447021,
0.08916060626506805,
0.11196455359458923,
0.6962575316429138,
-0.32175305485725403,
0.9336977601051331,
0.71373450756073,
0.4921579957008362,
0.40425994992256165,
0.5992556214332581,
0.16101603209972382,
-0.5444576740264893,
-0.1480993628501892,
-1.0720523595809937,
... |
func (m *EmployeeMutation) Type() string {
return m.typ
} | [
-0.7703092694282532,
-0.46054545044898987,
0.022637376561760902,
0.5168176889419556,
0.5832931399345398,
0.6498613357543945,
0.6303353309631348,
-0.8087145090103149,
0.7586053609848022,
0.5181847810745239,
0.33101528882980347,
-0.0359133780002594,
-0.7845186591148376,
0.06562697142362595,
... |
func (m *EmployeeMutation) Fields() []string {
fields := make([]string, 0, 6)
if m._UserId != nil {
fields = append(fields, employee.FieldUserId)
}
if m._EmployeeName != nil {
fields = append(fields, employee.FieldEmployeeName)
}
if m._Tel != nil {
fields = append(fields, employee.FieldTel)
}
if m._Birthd... | [
-1.015804409980774,
-0.18830503523349762,
0.3315593898296356,
-0.5541319251060486,
0.15072129666805267,
0.09912867844104767,
-0.9604663848876953,
-0.2836332321166992,
0.47178560495376587,
0.04838654771447182,
-0.7415253520011902,
-0.7600058317184448,
-0.5740734934806824,
0.2985541224479675... |
func (m *EmployeeMutation) Field(name string) (ent.Value, bool) {
switch name {
case employee.FieldUserId:
return m.UserId()
case employee.FieldEmployeeName:
return m.EmployeeName()
case employee.FieldTel:
return m.Tel()
case employee.FieldBirthdayDate:
return m.BirthdayDate()
case employee.FieldEmail:
... | [
-1.578487515449524,
-0.0332069918513298,
0.6494859457015991,
-0.30154991149902344,
-0.7577944397926331,
0.6322295069694519,
-1.2770429849624634,
-0.23151259124279022,
0.028484510257840157,
0.1044338047504425,
-0.8042968511581421,
-0.4590807855129242,
-0.45807084441185,
0.5603830814361572,
... |
func (m *EmployeeMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case employee.FieldUserId:
return m.OldUserId(ctx)
case employee.FieldEmployeeName:
return m.OldEmployeeName(ctx)
case employee.FieldTel:
return m.OldTel(ctx)
case employee.FieldBirthdayDate:
return m.O... | [
-0.7679440379142761,
-0.1467859447002411,
0.6630992293357849,
-0.7202556729316711,
-0.2097926288843155,
0.5484765768051147,
-0.17596448957920074,
-0.6599504947662354,
0.23808634281158447,
-0.09040141850709915,
-0.33906933665275574,
0.021068943664431572,
-0.443417489528656,
-0.0318792685866... |
func (m *EmployeeMutation) SetField(name string, value ent.Value) error {
switch name {
case employee.FieldUserId:
v, ok := value.(string)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetUserId(v)
return nil
case employee.FieldEmployeeName:
v, ok := value.(string)
i... | [
-0.9986836910247803,
-0.11200343072414398,
0.7747179269790649,
-0.17596435546875,
-0.6522964835166931,
0.5462339520454407,
-0.36383891105651855,
-0.34235134720802307,
-0.23900936543941498,
0.1543244570493698,
-0.30831626057624817,
-0.088108129799366,
-0.44476455450057983,
0.669982254505157... |
func (m *EmployeeMutation) AddedFields() []string {
return nil
} | [
-0.4820004105567932,
0.4191088080406189,
0.5172805786132812,
-0.2094571739435196,
0.2709510028362274,
0.9394874572753906,
0.16368259489536285,
0.15161417424678802,
1.05984365940094,
-0.7690488696098328,
-0.5132681727409363,
-0.4477148652076721,
-1.5523219108581543,
0.04457944259047508,
-... |
func (m *EmployeeMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.6297721862792969,
0.6204061508178711,
0.7485717535018921,
-0.40791821479797363,
-0.2547806203365326,
1.3072232007980347,
-0.4347724914550781,
0.23021385073661804,
0.45724737644195557,
-0.21232980489730835,
-0.827320396900177,
-1.202151894569397,
-1.8192700147628784,
-0.06262360513210297... |
func (m *EmployeeMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Employee numeric field %s", name)
} | [
-1.1661449670791626,
0.6185164451599121,
0.6207571625709534,
-0.006963344290852547,
-0.22473526000976562,
1.432868480682373,
-0.9537147283554077,
-0.16645443439483643,
-0.3644363582134247,
0.10394944250583649,
-0.008888010866940022,
-1.0031840801239014,
-0.3000634014606476,
0.1606645882129... |
func (m *EmployeeMutation) ClearedFields() []string {
return nil
} | [
-0.43218132853507996,
0.8217946290969849,
0.4672932028770447,
-0.11959825456142426,
-0.4306700527667999,
0.7696132659912109,
0.09782771021127701,
-0.23025459051132202,
0.8826079964637756,
0.6740491390228271,
-0.3287792205810547,
-0.4021757245063782,
-1.1758270263671875,
-0.7993788123130798... |
func (m *EmployeeMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.8355812430381775,
0.31650570034980774,
0.7588018178939819,
-0.27865278720855713,
-0.3882092833518982,
0.43965572118759155,
-0.8542289733886719,
0.1597101092338562,
-0.14754189550876617,
-0.04094346612691879,
-0.8969191312789917,
-0.4929003119468689,
0.11751403659582138,
-0.5572685003280... |
func (m *EmployeeMutation) ClearField(name string) error {
return fmt.Errorf("unknown Employee nullable field %s", name)
} | [
-0.42174848914146423,
0.8442152142524719,
0.5622073411941528,
-0.2942952811717987,
-0.5891762375831604,
0.728661298751831,
-0.694782018661499,
-0.30266618728637695,
0.07804442197084427,
1.1536017656326294,
-0.32635802030563354,
-0.7309530973434448,
-0.3739895224571228,
-0.12072610855102539... |
func (m *EmployeeMutation) ResetField(name string) error {
switch name {
case employee.FieldUserId:
m.ResetUserId()
return nil
case employee.FieldEmployeeName:
m.ResetEmployeeName()
return nil
case employee.FieldTel:
m.ResetTel()
return nil
case employee.FieldBirthdayDate:
m.ResetBirthdayDate()
ret... | [
-0.9644193649291992,
0.4241858124732971,
0.5089476108551025,
-0.010134104639291763,
0.14106878638267517,
0.1503288745880127,
0.04575749859213829,
-0.5188677906990051,
0.059615012258291245,
0.10617717355489731,
-0.749297559261322,
-0.3930227756500244,
-0.9074103832244873,
-0.131708949804306... |
func (m *EmployeeMutation) AddedEdges() []string {
edges := make([]string, 0, 8)
if m.department != nil {
edges = append(edges, employee.EdgeDepartment)
}
if m.place != nil {
edges = append(edges, employee.EdgePlace)
}
if m.nametitle != nil {
edges = append(edges, employee.EdgeNametitle)
}
if m.area != ni... | [
-0.5217339396476746,
-0.7236825823783875,
0.48616284132003784,
-0.39697834849357605,
0.3408787250518799,
0.3161788284778595,
-1.1558798551559448,
0.2910756468772888,
1.180392861366272,
0.45455119013786316,
0.505558967590332,
0.45960870385169983,
-0.6372976303100586,
0.38378575444221497,
... |
func (m *EmployeeMutation) AddedIDs(name string) []ent.Value {
switch name {
case employee.EdgeDepartment:
if id := m.department; id != nil {
return []ent.Value{*id}
}
case employee.EdgePlace:
if id := m.place; id != nil {
return []ent.Value{*id}
}
case employee.EdgeNametitle:
if id := m.nametitle; ... | [
-0.8655053973197937,
-0.9351470470428467,
0.5423280000686646,
-1.1329059600830078,
-0.19104595482349396,
0.0019217815715819597,
-0.6044123768806458,
0.29135948419570923,
0.5113043785095215,
0.2954195439815521,
0.28962406516075134,
0.5601184368133545,
-0.5023874640464783,
0.3995413184165954... |
func (m *EmployeeMutation) RemovedEdges() []string {
edges := make([]string, 0, 8)
if m.removedarea != nil {
edges = append(edges, employee.EdgeArea)
}
if m.removeddisease != nil {
edges = append(edges, employee.EdgeDisease)
}
if m.removeddrug != nil {
edges = append(edges, employee.EdgeDrug)
}
if m.remov... | [
-0.5014842748641968,
-0.5764309763908386,
0.5819780230522156,
-0.24028943479061127,
0.09129077196121216,
-0.053849849849939346,
-0.6008775234222412,
0.7074277997016907,
1.0378507375717163,
0.48824813961982727,
0.010531289502978325,
0.38114309310913086,
-0.7839107513427734,
0.18341878056526... |
func (m *EmployeeMutation) RemovedIDs(name string) []ent.Value {
switch name {
case employee.EdgeArea:
ids := make([]ent.Value, 0, len(m.removedarea))
for id := range m.removedarea {
ids = append(ids, id)
}
return ids
case employee.EdgeDisease:
ids := make([]ent.Value, 0, len(m.removeddisease))
for id... | [
-0.6120560169219971,
-0.8387646675109863,
0.6292456984519958,
-1.0626389980316162,
-0.1409481316804886,
-0.34474843740463257,
-0.5943293571472168,
0.6901575922966003,
0.44089484214782715,
0.4258292317390442,
-0.20970962941646576,
0.46384912729263306,
-0.690024733543396,
0.15444016456604004... |
func (m *EmployeeMutation) ClearedEdges() []string {
edges := make([]string, 0, 8)
if m.cleareddepartment {
edges = append(edges, employee.EdgeDepartment)
}
if m.clearedplace {
edges = append(edges, employee.EdgePlace)
}
if m.clearednametitle {
edges = append(edges, employee.EdgeNametitle)
}
return edges
... | [
-1.2555903196334839,
-0.10733731091022491,
0.40365856885910034,
-0.05003184452652931,
-0.8201570510864258,
0.24001391232013702,
-1.2349176406860352,
-0.5921985507011414,
0.9859593510627747,
1.5434385538101196,
0.517490565776825,
0.7433181405067444,
-0.4513489305973053,
-0.43254050612449646... |
func (m *EmployeeMutation) EdgeCleared(name string) bool {
switch name {
case employee.EdgeDepartment:
return m.cleareddepartment
case employee.EdgePlace:
return m.clearedplace
case employee.EdgeNametitle:
return m.clearednametitle
}
return false
} | [
-1.4040272235870361,
-0.317894846200943,
0.6822065711021423,
-0.7023329734802246,
-0.7846534848213196,
0.5271819829940796,
-0.8442977666854858,
-0.42555493116378784,
0.317640095949173,
0.6600093245506287,
0.11093270778656006,
-0.02248857542872429,
-0.6594902276992798,
-0.3879541754722595,
... |
func (m *EmployeeMutation) ClearEdge(name string) error {
switch name {
case employee.EdgeDepartment:
m.ClearDepartment()
return nil
case employee.EdgePlace:
m.ClearPlace()
return nil
case employee.EdgeNametitle:
m.ClearNametitle()
return nil
}
return fmt.Errorf("unknown Employee unique edge %s", name... | [
-1.400675892829895,
0.6671969890594482,
0.46078646183013916,
0.4085102081298828,
-0.40623998641967773,
0.3318108916282654,
-0.4164028465747833,
0.24070951342582703,
0.38236334919929504,
0.7951906323432922,
0.08372288942337036,
-0.2483331859111786,
-0.28182345628738403,
0.41690322756767273,... |
func (m *EmployeeMutation) ResetEdge(name string) error {
switch name {
case employee.EdgeDepartment:
m.ResetDepartment()
return nil
case employee.EdgePlace:
m.ResetPlace()
return nil
case employee.EdgeNametitle:
m.ResetNametitle()
return nil
case employee.EdgeArea:
m.ResetArea()
return nil
case e... | [
-1.4178662300109863,
-0.1114308312535286,
0.5848660469055176,
0.20330390334129333,
0.445720374584198,
-0.4209432303905487,
-0.23445099592208862,
0.4525282382965088,
0.028003791347146034,
0.7077128291130066,
-0.27620071172714233,
0.12579765915870667,
-0.8366807103157043,
-0.0957223400473594... |
func newGenderMutation(c config, op Op, opts ...genderOption) *GenderMutation {
m := &GenderMutation{
config: c,
op: op,
typ: TypeGender,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.356990933418274,
0.2194775938987732,
0.3571343421936035,
0.799666166305542,
-0.4731575548648834,
-0.4618799090385437,
0.3054104745388031,
-0.21361075341701508,
-0.07942817360162735,
0.4165918231010437,
-1.7069485187530518,
-0.08990450948476791,
-0.5139865279197693,
0.048285264521837234,... |
func withGenderID(id int) genderOption {
return func(m *GenderMutation) {
var (
err error
once sync.Once
value *Gender
)
m.oldValue = func(ctx context.Context) (*Gender, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
} else {... | [
-0.2600443959236145,
-0.4406092166900635,
0.5268365740776062,
-0.04190177842974663,
-0.057877637445926666,
0.6578402519226074,
0.09394792467355728,
-0.30617833137512207,
0.2223328799009323,
0.24108581244945526,
-0.5371542572975159,
0.40282782912254333,
0.22965259850025177,
0.98380416631698... |
func withGender(node *Gender) genderOption {
return func(m *GenderMutation) {
m.oldValue = func(context.Context) (*Gender, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.5379056930541992,
0.13523708283901215,
0.4649064540863037,
-0.1504325568675995,
-0.10241587460041046,
0.059021953493356705,
0.48563095927238464,
-0.13873162865638733,
0.28330978751182556,
-0.5270171761512756,
-0.7245895862579346,
0.28299635648727417,
1.0439296960830688,
0.61847805976867... |
func (m GenderMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.7673097848892212,
-0.2023439258337021,
0.06852152198553085,
0.010593685321509838,
-0.6170158386230469,
0.31412819027900696,
0.5849491357803345,
-0.26294201612472534,
-0.3746053874492645,
-0.1356239765882492,
-1.0991690158843994,
0.5144026279449463,
-0.02900281734764576,
-0.7245770096778... |
func (m GenderMutation) 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.2958666980266571,
0.42447903752326965,
0.4912983179092407,
0.34737473726272583,
0.2036658078432083,
-0.020172689110040665,
-0.22445866465568542,
0.4445606768131256,
-0.10418058186769485,
0.25085243582725525,
-0.7530422806739807,
-0.212306946516037,
-0.3128943145275116,
-0.66222131252288... |
func (m *GenderMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.7952134013175964,
-0.1338740885257721,
0.6305317878723145,
0.46604546904563904,
0.13755352795124054,
0.24789853394031525,
0.07681503146886826,
0.4658849239349365,
0.5306605696678162,
0.596010148525238,
-0.6825023889541626,
-0.7628979682922363,
-0.7728897333145142,
0.836394727230072,
-... |
func (m *GenderMutation) SetGenderName(s string) {
m._GenderName = &s
} | [
-0.7419013381004333,
0.8306286334991455,
0.5836401581764221,
0.7505396008491516,
-0.9684619307518005,
0.004608383867889643,
0.4357086420059204,
0.5829480290412903,
-0.6323288083076477,
-0.9201537370681763,
-1.2738478183746338,
-0.2403629869222641,
0.0945533886551857,
0.6895033121109009,
... |
func (m *GenderMutation) GenderName() (r string, exists bool) {
v := m._GenderName
if v == nil {
return
}
return *v, true
} | [
-1.5012210607528687,
1.1332343816757202,
0.6509738564491272,
0.32426688075065613,
-0.9073889851570129,
-0.5257766842842102,
-0.13692782819271088,
0.5894606709480286,
-0.6304941177368164,
0.45299580693244934,
-0.6420004963874817,
-0.8919135332107544,
-0.14259207248687744,
0.1639459580183029... |
func (m *GenderMutation) OldGenderName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldGenderName is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldGenderName requires an ID field in the mutation")
}
oldVa... | [
-1.1341204643249512,
0.2206491082906723,
0.6941066384315491,
0.3354477286338806,
-0.8283883333206177,
-0.1384010910987854,
-0.08601640909910202,
-0.141099214553833,
-0.13506270945072174,
0.47142350673675537,
-0.20422057807445526,
-0.23756743967533112,
-0.27942806482315063,
0.78590923547744... |
func (m *GenderMutation) ResetGenderName() {
m._GenderName = nil
} | [
-0.7830560207366943,
0.6941030621528625,
0.4536632001399994,
0.9431560039520264,
-0.6814753413200378,
-0.026637258008122444,
0.15302251279354095,
0.2961161434650421,
-1.237718105316162,
-0.1667148619890213,
-0.957596480846405,
0.7556202411651611,
-0.6103006601333618,
-0.016742270439863205,... |
func (m *GenderMutation) AddPatientIDs(ids ...int) {
if m.patient == nil {
m.patient = make(map[int]struct{})
}
for i := range ids {
m.patient[ids[i]] = struct{}{}
}
} | [
-1.7301363945007324,
0.16534526646137238,
0.13915108144283295,
-0.6328737735748291,
-0.2687990963459015,
0.23111379146575928,
-0.9070225358009338,
0.44847607612609863,
-0.4895690083503723,
0.3219328820705414,
-0.17372043430805206,
-0.16332726180553436,
-0.4848622679710388,
0.09640436619520... |
func (m *GenderMutation) RemovePatientIDs(ids ...int) {
if m.removedpatient == nil {
m.removedpatient = make(map[int]struct{})
}
for i := range ids {
m.removedpatient[ids[i]] = struct{}{}
}
} | [
-1.6334497928619385,
-0.12744851410388947,
0.09160860627889633,
-0.523020327091217,
-1.0311895608901978,
-0.06938568502664566,
-0.3979607820510864,
0.8869262933731079,
-0.5428299307823181,
0.4853755235671997,
-0.6863001585006714,
-0.21987052261829376,
-1.096367597579956,
0.1602184921503067... |
func (m *GenderMutation) RemovedPatientIDs() (ids []int) {
for id := range m.removedpatient {
ids = append(ids, id)
}
return
} | [
-0.7058160305023193,
-0.6642982959747314,
0.19396711885929108,
-0.4685424268245697,
-0.8983851075172424,
-0.026305608451366425,
-0.45379289984703064,
0.6021077036857605,
0.11318587511777878,
0.14688092470169067,
-0.8614457249641418,
1.08926522731781,
-0.9792372584342957,
0.5643488764762878... |
func (m *GenderMutation) PatientIDs() (ids []int) {
for id := range m.patient {
ids = append(ids, id)
}
return
} | [
-1.2423489093780518,
-0.4186616539955139,
0.04439360648393631,
0.02630162239074707,
-0.15638470649719238,
0.09086867421865463,
-0.6339394450187683,
0.4877295196056366,
-0.18891757726669312,
0.6273075342178345,
-0.1999719887971878,
1.076130986213684,
-0.5222378969192505,
0.09856867790222168... |
func (m *GenderMutation) ResetPatient() {
m.patient = nil
m.removedpatient = nil
} | [
-0.6294263005256653,
0.5406202673912048,
0.14463888108730316,
-0.09829164296388626,
0.07724455744028091,
0.043057575821876526,
0.10006337612867355,
0.3561367392539978,
-0.8815870881080627,
-0.4386959969997406,
0.008829394355416298,
0.7467125654220581,
-0.6143815517425537,
-0.67035752534866... |
func (m *GenderMutation) Op() Op {
return m.op
} | [
-1.2119582891464233,
0.28160417079925537,
0.1259445697069168,
0.8408985137939453,
-0.5411250591278076,
0.8359870910644531,
0.7021690607070923,
0.46091437339782715,
-0.3029055893421173,
0.7091196775436401,
-0.25292983651161194,
-0.5369763374328613,
0.2601592540740967,
-0.7668147683143616,
... |
func (m *GenderMutation) Type() string {
return m.typ
} | [
-0.7977442145347595,
-0.22509875893592834,
0.04618903249502182,
0.581562876701355,
0.43771085143089294,
0.5397416949272156,
0.6147385835647583,
-0.8916320204734802,
0.09674350172281265,
0.4980848431587219,
-0.14387209713459015,
-0.05106886848807335,
-0.27728715538978577,
0.5235421061515808... |
func (m *GenderMutation) Fields() []string {
fields := make([]string, 0, 1)
if m._GenderName != nil {
fields = append(fields, gender.FieldGenderName)
}
return fields
} | [
-1.4329379796981812,
0.4589853584766388,
0.13158175349235535,
-0.4423900246620178,
0.37263843417167664,
0.3693179786205292,
-0.7346934676170349,
-0.043091241270303726,
-0.11023548990488052,
0.06055299937725067,
-0.9430186748504639,
-0.4350090026855469,
-0.48221540451049805,
0.4541840255260... |
func (m *GenderMutation) Field(name string) (ent.Value, bool) {
switch name {
case gender.FieldGenderName:
return m.GenderName()
}
return nil, false
} | [
-1.7654082775115967,
0.4729151725769043,
0.550466001033783,
-0.2366466522216797,
-0.5940808057785034,
0.7011934518814087,
-1.186819076538086,
0.0529421791434288,
-0.44368889927864075,
0.06709753721952438,
-0.7695068717002869,
-0.6075168251991272,
-0.1806708723306656,
0.8332464694976807,
... |
func (m *GenderMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case gender.FieldGenderName:
return m.OldGenderName(ctx)
}
return nil, fmt.Errorf("unknown Gender field %s", name)
} | [
-0.8596706986427307,
0.4772367477416992,
0.3622230291366577,
-0.7070800065994263,
0.03289766237139702,
0.6450016498565674,
-0.33743947744369507,
-0.4582013487815857,
-0.34453368186950684,
0.024356331676244736,
-0.7944163084030151,
0.1799066662788391,
-0.2369965761899948,
0.2484063953161239... |
func (m *GenderMutation) SetField(name string, value ent.Value) error {
switch name {
case gender.FieldGenderName:
v, ok := value.(string)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetGenderName(v)
return nil
}
return fmt.Errorf("unknown Gender field %s", name)
} | [
-1.4098304510116577,
0.6743518114089966,
0.42102861404418945,
-0.17214037477970123,
-0.3835391700267792,
1.1054154634475708,
-0.790412425994873,
-0.026794644072651863,
-0.7924330830574036,
0.08389071375131607,
-0.8077636957168579,
-0.08806567639112473,
-0.07511245459318161,
1.0907280445098... |
func (m *GenderMutation) AddedFields() []string {
return nil
} | [
-0.4882473945617676,
0.489366352558136,
0.5505931377410889,
-0.15030206739902496,
0.18510378897190094,
0.8854248523712158,
-0.02463766746222973,
0.05697596073150635,
0.4944876432418823,
-0.9811099767684937,
-0.9545049667358398,
-0.3885550796985626,
-1.152531623840332,
0.3554218113422394,
... |
func (m *GenderMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.6477313041687012,
0.6848558187484741,
0.7801564931869507,
-0.3814440667629242,
-0.40684613585472107,
1.2236557006835938,
-0.5921288728713989,
0.12609674036502838,
0.04317754879593849,
-0.3968057632446289,
-1.1216663122177124,
-1.1697156429290771,
-1.4148756265640259,
0.300773561000824,
... |
func (m *GenderMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Gender numeric field %s", name)
} | [
-1.3573946952819824,
0.7503692507743835,
0.6084421277046204,
0.07594981789588928,
-0.13965412974357605,
1.5484095811843872,
-1.0941085815429688,
-0.2881465554237366,
-0.8981330990791321,
-0.04888306185603142,
-0.503753662109375,
-0.8203877806663513,
0.056563664227724075,
0.5206779837608337... |
func (m *GenderMutation) ClearedFields() []string {
return nil
} | [
-0.5125551819801331,
0.9098841547966003,
0.5125244855880737,
-0.08474835008382797,
-0.5504016280174255,
0.7377364635467529,
-0.05799457058310509,
-0.4363296329975128,
0.35595306754112244,
0.5546292662620544,
-0.7247628569602966,
-0.2154233604669571,
-0.8520796895027161,
-0.6281758546829224... |
func (m *GenderMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.8899739384651184,
0.39483729004859924,
0.7371440529823303,
-0.33069565892219543,
-0.4376843571662903,
0.4679698348045349,
-0.9322642683982849,
0.0781504437327385,
-0.4304409623146057,
-0.17526070773601532,
-1.1097629070281982,
-0.4451853036880493,
0.42132365703582764,
-0.253172427415847... |
func (m *GenderMutation) ClearField(name string) error {
return fmt.Errorf("unknown Gender nullable field %s", name)
} | [
-0.663659930229187,
1.070239543914795,
0.5533770322799683,
-0.17510898411273956,
-0.5665485858917236,
0.8931668400764465,
-0.7113245129585266,
-0.4512297213077545,
-0.4258369505405426,
0.9993160367012024,
-0.8818850517272949,
-0.3091362714767456,
0.07119834423065186,
0.2422492355108261,
... |
func (m *GenderMutation) ResetField(name string) error {
switch name {
case gender.FieldGenderName:
m.ResetGenderName()
return nil
}
return fmt.Errorf("unknown Gender field %s", name)
} | [
-1.1600854396820068,
1.282941222190857,
0.29671573638916016,
0.1407032012939453,
0.31453898549079895,
0.4622676968574524,
0.048523955047130585,
-0.02083340473473072,
-0.6982804536819458,
0.40272802114486694,
-0.9319932460784912,
0.09418240189552307,
-0.5381556749343872,
0.04815929755568504... |
func (m *GenderMutation) AddedEdges() []string {
edges := make([]string, 0, 1)
if m.patient != nil {
edges = append(edges, gender.EdgePatient)
}
return edges
} | [
-0.7115217447280884,
-0.1258087158203125,
0.3535405397415161,
0.13114288449287415,
0.046207744628190994,
0.4970875382423401,
-1.36151921749115,
0.21917858719825745,
0.713777482509613,
0.2907003164291382,
0.39149561524391174,
0.45440202951431274,
-0.6704798340797424,
0.6163244247436523,
-... |
func (m *GenderMutation) AddedIDs(name string) []ent.Value {
switch name {
case gender.EdgePatient:
ids := make([]ent.Value, 0, len(m.patient))
for id := range m.patient {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-1.0558594465255737,
-0.2402734011411667,
0.3822479844093323,
-0.8604618906974792,
0.014562237076461315,
0.7046536803245544,
-1.2175102233886719,
0.08054971694946289,
0.22816136479377747,
0.2518288493156433,
0.15074120461940765,
0.6869964599609375,
-0.46507465839385986,
0.6087574362754822,... |
func (m *GenderMutation) RemovedEdges() []string {
edges := make([]string, 0, 1)
if m.removedpatient != nil {
edges = append(edges, gender.EdgePatient)
}
return edges
} | [
-0.5419620871543884,
-0.10414263606071472,
0.5554113984107971,
0.1753065586090088,
-0.27121642231941223,
-0.02907729707658291,
-0.7168998122215271,
0.5834872722625732,
0.5297449827194214,
0.42870935797691345,
-0.3657083511352539,
0.30570799112319946,
-1.011613130569458,
0.388849675655365,
... |
func (m *GenderMutation) RemovedIDs(name string) []ent.Value {
switch name {
case gender.EdgePatient:
ids := make([]ent.Value, 0, len(m.removedpatient))
for id := range m.removedpatient {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-0.8784668445587158,
-0.2559622526168823,
0.5389203429222107,
-0.7654491662979126,
-0.10436835139989853,
0.20208939909934998,
-0.9938520193099976,
0.5840508937835693,
0.041086021810770035,
0.5635338425636292,
-0.7666939496994019,
0.5019367337226868,
-0.7934936285018921,
0.35971975326538086... |
func (m *GenderMutation) ClearedEdges() []string {
edges := make([]string, 0, 1)
return edges
} | [
-1.0868134498596191,
-0.0499473437666893,
0.4582860767841339,
0.4582288861274719,
-0.7125339508056641,
0.11288610100746155,
-0.9691109657287598,
-0.6414265632629395,
0.41159722208976746,
1.6290395259857178,
-0.02687358483672142,
0.7193431854248047,
-0.7010247707366943,
-0.3340515196323395,... |
func (m *GenderMutation) EdgeCleared(name string) bool {
switch name {
}
return false
} | [
-1.3606581687927246,
0.03390287235379219,
0.5888312458992004,
-0.3915358781814575,
-0.8706724643707275,
0.7015377283096313,
-0.9104995727539062,
-0.4116280972957611,
-0.299492746591568,
0.5505532622337341,
-0.28387004137039185,
-0.448156476020813,
-0.5722721219062805,
0.1121024563908577,
... |
func (m *GenderMutation) ClearEdge(name string) error {
switch name {
}
return fmt.Errorf("unknown Gender unique edge %s", name)
} | [
-1.291235327720642,
1.1712628602981567,
0.3857722282409668,
0.5523877739906311,
-0.5831497311592102,
0.28705212473869324,
-0.5584259629249573,
0.3736685812473297,
-0.3945114314556122,
1.0953667163848877,
-0.3086105287075043,
0.14812195301055908,
-0.01261412538588047,
0.5866298079490662,
... |
func (m *GenderMutation) ResetEdge(name string) error {
switch name {
case gender.EdgePatient:
m.ResetPatient()
return nil
}
return fmt.Errorf("unknown Gender edge %s", name)
} | [
-1.3892732858657837,
1.1243993043899536,
0.29919371008872986,
0.7530884146690369,
0.5686524510383606,
-0.16085246205329895,
-0.34839531779289246,
0.7063848972320557,
-0.9640871286392212,
0.9984863996505737,
-0.18067127466201782,
0.45927369594573975,
-0.6428607702255249,
0.19754977524280548... |
func newLevelMutation(c config, op Op, opts ...levelOption) *LevelMutation {
m := &LevelMutation{
config: c,
op: op,
typ: TypeLevel,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-0.4738839864730835,
-0.4498506486415863,
0.32651686668395996,
0.8699322938919067,
-0.4516414701938629,
-0.3937169909477234,
0.33123666048049927,
-0.05677269399166107,
0.030392546206712723,
0.7204571962356567,
-1.225669026374817,
-0.44777101278305054,
-1.0070785284042358,
-0.25161489844322... |
func withLevelID(id int) levelOption {
return func(m *LevelMutation) {
var (
err error
once sync.Once
value *Level
)
m.oldValue = func(ctx context.Context) (*Level, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
} else {
... | [
0.84349524974823,
-0.6420681476593018,
0.5730125904083252,
-0.2605961859226227,
0.010504616424441338,
0.5438790321350098,
-0.30282625555992126,
-0.4133780002593994,
0.3054775595664978,
0.3067812919616699,
-0.12907829880714417,
0.09536655247211456,
0.021199803799390793,
0.594755232334137,
... |
func withLevel(node *Level) levelOption {
return func(m *LevelMutation) {
m.oldValue = func(context.Context) (*Level, error) {
return node, nil
}
m.id = &node.ID
}
} | [
0.08436974883079529,
-0.028270255774259567,
0.2855129539966583,
-0.12111969292163849,
-0.011563654989004135,
-0.09987425059080124,
1.1346076726913452,
-0.21269823610782623,
0.3037768602371216,
-0.010787013918161392,
-0.5054707527160645,
0.1736418455839157,
0.7882519364356995,
-0.3641706109... |
func (m LevelMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.06004205346107483,
-0.6958648562431335,
0.011722270399332047,
0.5038018822669983,
-0.3689213693141937,
0.3004423677921295,
0.8680294752120972,
-0.21181297302246094,
-0.1594347506761551,
-0.40833550691604614,
-0.7249375581741333,
0.3416648805141449,
-0.2950221002101898,
-0.59334993362426... |
func (m LevelMutation) 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.13548487424850464,
0.07724467664957047,
0.35909101366996765,
0.589959442615509,
0.3800448179244995,
-0.25596827268600464,
-0.15394994616508484,
0.36158034205436707,
0.10504958778619766,
0.16832640767097473,
-0.3159027695655823,
-0.4469143748283386,
-0.7242862582206726,
-0.695945858955383... |
func (m *LevelMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.528595507144928,
-0.5775014758110046,
0.6543911695480347,
0.47071877121925354,
0.2346804141998291,
0.22564224898815155,
0.16651014983654022,
0.3265957236289978,
0.4882391095161438,
0.4884442389011383,
-0.42513275146484375,
-0.9188748598098755,
-1.2180531024932861,
0.6209781169891357,
... |
func (m *LevelMutation) SetLevelName(s string) {
m._LevelName = &s
} | [
-0.09008925408124924,
0.05432986468076706,
0.2909650504589081,
1.1379033327102661,
-0.8785883188247681,
-0.4010082483291626,
0.36559879779815674,
0.6971471905708313,
-0.5405892133712769,
-0.3037894368171692,
-0.7773306965827942,
-0.6930637955665588,
-0.08757668733596802,
0.5233753323554993... |
func (m *LevelMutation) LevelName() (r string, exists bool) {
v := m._LevelName
if v == nil {
return
}
return *v, true
} | [
-1.0605849027633667,
0.41739049553871155,
0.7204666137695312,
0.5686288475990295,
-0.38713324069976807,
-0.5385061502456665,
0.1767347902059555,
0.26901525259017944,
-0.6548191905021667,
0.8326533436775208,
-0.3594529926776886,
-0.8872913122177124,
-0.815218448638916,
-0.3434964120388031,
... |
func (m *LevelMutation) OldLevelName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldLevelName is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldLevelName requires an ID field in the mutation")
}
oldValue,... | [
-0.54059898853302,
-0.27810367941856384,
0.6143792867660522,
0.7383848428726196,
-0.5641143918037415,
-0.3137129247188568,
0.1261328160762787,
-0.11046047508716583,
-0.324080228805542,
0.37207862734794617,
0.13724012672901154,
-0.3240170478820801,
-0.43488937616348267,
0.5975332260131836,
... |
func (m *LevelMutation) ResetLevelName() {
m._LevelName = nil
} | [
-0.2608247697353363,
-0.20619605481624603,
0.25508710741996765,
1.4112640619277954,
-0.31397080421447754,
-0.43571266531944275,
0.3861881196498871,
0.479420930147171,
-1.1349343061447144,
0.04288622736930847,
-0.39226818084716797,
0.1633407324552536,
-0.9262410998344421,
-0.209346324205398... |
func (m *LevelMutation) AddAreaIDs(ids ...int) {
if m.area == nil {
m.area = make(map[int]struct{})
}
for i := range ids {
m.area[ids[i]] = struct{}{}
}
} | [
-1.5637809038162231,
-0.35685086250305176,
0.5172284245491028,
-0.821465253829956,
-0.2888658046722412,
0.34568995237350464,
-0.5839455723762512,
-0.015870437026023865,
0.2883303463459015,
0.4223973751068115,
0.05981393903493881,
-0.24027985334396362,
-0.3503093123435974,
0.799309372901916... |
func (m *LevelMutation) RemoveAreaIDs(ids ...int) {
if m.removedarea == nil {
m.removedarea = make(map[int]struct{})
}
for i := range ids {
m.removedarea[ids[i]] = struct{}{}
}
} | [
-1.5006556510925293,
-0.6684176325798035,
0.4085085690021515,
-0.9413504600524902,
-1.1727923154830933,
0.009331990964710712,
-0.009908847510814667,
0.6474539637565613,
0.15958184003829956,
0.6184956431388855,
-0.6104123592376709,
-0.36656883358955383,
-0.6223331093788147,
0.47223964333534... |
func (m *LevelMutation) RemovedAreaIDs() (ids []int) {
for id := range m.removedarea {
ids = append(ids, id)
}
return
} | [
-0.605036735534668,
-1.0411626100540161,
0.3875909745693207,
-0.7511491179466248,
-0.8636822700500488,
-0.01460390817373991,
0.10828010737895966,
0.3706371784210205,
0.7095882892608643,
0.38389357924461365,
-0.6045649647712708,
0.538364052772522,
-0.7865737676620483,
1.0527596473693848,
... |
func (m *LevelMutation) AreaIDs() (ids []int) {
for id := range m.area {
ids = append(ids, id)
}
return
} | [
-0.9779950976371765,
-0.8665217757225037,
0.10024940222501755,
-0.12738847732543945,
-0.4369344115257263,
0.18095815181732178,
-0.6448285579681396,
0.2506852149963379,
0.7900435328483582,
1.083505630493164,
0.07222332060337067,
0.7119011878967285,
-0.44190654158592224,
0.6964225172996521,
... |
func (m *LevelMutation) ResetArea() {
m.area = nil
m.removedarea = nil
} | [
-0.4054698348045349,
-0.4080864489078522,
0.3873796761035919,
0.5084975361824036,
0.6771970391273499,
-0.9476719498634338,
1.1410731077194214,
0.9411604404449463,
-0.23558370769023895,
-0.4035647511482239,
0.47851234674453735,
0.06859800219535828,
-0.5026586055755615,
1.2231419086456299,
... |
func (m *LevelMutation) Op() Op {
return m.op
} | [
-0.7101861238479614,
-0.2575456202030182,
0.08018586784601212,
1.0919901132583618,
-0.2135963886976242,
0.6849773526191711,
0.885484516620636,
0.27574336528778076,
-0.13747458159923553,
0.616174578666687,
0.192483052611351,
-0.8635753989219666,
-0.3999176621437073,
-0.8134697675704956,
0... |
func (m *LevelMutation) Type() string {
return m.typ
} | [
-0.11466199159622192,
-0.9502052664756775,
-0.03951416164636612,
0.8395742774009705,
0.4774928092956543,
0.4582480490207672,
0.47982946038246155,
-1.174017310142517,
0.20338790118694305,
0.4856685698032379,
0.33712849020957947,
-0.4080509841442108,
-0.904134213924408,
0.3255656659603119,
... |
func (m *LevelMutation) Fields() []string {
fields := make([]string, 0, 1)
if m._LevelName != nil {
fields = append(fields, level.FieldLevelName)
}
return fields
} | [
-1.0280450582504272,
-0.26086997985839844,
0.1510019451379776,
-0.30808693170547485,
0.31935179233551025,
0.2732117176055908,
-0.6747320890426636,
-0.19559544324874878,
-0.021840400993824005,
0.16324742138385773,
-0.6472671031951904,
-0.5461958646774292,
-0.8553926944732666,
0.406999796628... |
func (m *LevelMutation) Field(name string) (ent.Value, bool) {
switch name {
case level.FieldLevelName:
return m.LevelName()
}
return nil, false
} | [
-1.3898661136627197,
-0.016909226775169373,
0.5932483673095703,
-0.06350984424352646,
-0.6035805940628052,
0.5814715027809143,
-1.0823758840560913,
-0.197894886136055,
-0.2747196555137634,
0.32537028193473816,
-0.49619898200035095,
-0.8909525871276855,
-0.3650033175945282,
0.60104006528854... |
func (m *LevelMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case level.FieldLevelName:
return m.OldLevelName(ctx)
}
return nil, fmt.Errorf("unknown Level field %s", name)
} | [
-0.2737675905227661,
-0.0471205897629261,
0.39428356289863586,
-0.5041607022285461,
-0.05673203617334366,
0.4295916259288788,
-0.2062792181968689,
-0.5776873826980591,
-0.2556884288787842,
0.05340758338570595,
-0.31160128116607666,
-0.17841148376464844,
-0.4078559875488281,
0.1693193018436... |
func (m *LevelMutation) SetField(name string, value ent.Value) error {
switch name {
case level.FieldLevelName:
v, ok := value.(string)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetLevelName(v)
return nil
}
return fmt.Errorf("unknown Level field %s", name)
} | [
-0.9270508885383606,
0.0768231600522995,
0.5297288298606873,
0.055738665163517,
-0.571823239326477,
0.9073461294174194,
-0.8064984083175659,
-0.10871319472789764,
-0.7171110510826111,
0.19963356852531433,
-0.4998261034488678,
-0.5461562275886536,
-0.28463566303253174,
0.941978931427002,
... |
func (m *LevelMutation) AddedFields() []string {
return nil
} | [
-0.07700970023870468,
0.04779250919818878,
0.5274655818939209,
-0.04298724979162216,
0.30064624547958374,
0.9335864782333374,
0.1488722711801529,
0.08883165568113327,
0.5210952162742615,
-0.8238084316253662,
-0.5880301594734192,
-0.49862316250801086,
-1.6002931594848633,
0.3854601681232452... |
func (m *LevelMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.305382490158081,
0.27833637595176697,
0.7871637344360352,
-0.21761105954647064,
-0.27311545610427856,
1.2481858730316162,
-0.470595121383667,
0.13940297067165375,
0.06057252362370491,
-0.26093095541000366,
-0.9038064479827881,
-1.3227894306182861,
-1.6768087148666382,
0.2818838953971863... |
func (m *LevelMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Level numeric field %s", name)
} | [
-0.7396929264068604,
0.2580706775188446,
0.6310530304908752,
0.1744314432144165,
-0.2270866483449936,
1.3909684419631958,
-1.078385829925537,
-0.2632002830505371,
-0.8427090644836426,
0.09049873799085617,
-0.07721380144357681,
-1.1594501733779907,
-0.2243535816669464,
0.5112751126289368,
... |
func (m *LevelMutation) ClearedFields() []string {
return nil
} | [
-0.08537157624959946,
0.47674325108528137,
0.4722916781902313,
-0.06183718517422676,
-0.3969062268733978,
0.7702012062072754,
0.09741374850273132,
-0.2983166575431824,
0.3976212441921234,
0.6310974955558777,
-0.41952529549598694,
-0.41042277216911316,
-1.172871470451355,
-0.480991691350936... |
func (m *LevelMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.5541639924049377,
0.06396160274744034,
0.7935512065887451,
-0.22753244638442993,
-0.32579702138900757,
0.41322988271713257,
-0.9296713471412659,
0.0695682018995285,
-0.4077204167842865,
-0.1083376482129097,
-0.9456076622009277,
-0.6146441102027893,
0.2261134535074234,
-0.215762600302696... |
func (m *LevelMutation) ClearField(name string) error {
return fmt.Errorf("unknown Level nullable field %s", name)
} | [
-0.061968836933374405,
0.4290783107280731,
0.5586287379264832,
-0.13099059462547302,
-0.6714926958084106,
0.8596144318580627,
-0.6876733303070068,
-0.3818662762641907,
-0.4442382752895355,
1.1112592220306396,
-0.5580857992172241,
-0.7681597471237183,
-0.3112861216068268,
0.3009902238845825... |
func (m *LevelMutation) ResetField(name string) error {
switch name {
case level.FieldLevelName:
m.ResetLevelName()
return nil
}
return fmt.Errorf("unknown Level field %s", name)
} | [
-0.6638022065162659,
0.5906550884246826,
0.4116453230381012,
0.26298466324806213,
0.050300370901823044,
0.36992546916007996,
0.13707225024700165,
-0.052090637385845184,
-0.5712173581123352,
0.4245750904083252,
-0.5547142624855042,
-0.4481075406074524,
-0.7732017636299133,
0.041734579950571... |
func (m *LevelMutation) AddedEdges() []string {
edges := make([]string, 0, 1)
if m.area != nil {
edges = append(edges, level.EdgeArea)
}
return edges
} | [
-0.5786553025245667,
-0.7254823446273804,
0.31997573375701904,
0.15908485651016235,
0.1263134926557541,
0.2504454553127289,
-0.835448145866394,
0.08810896426439285,
0.8409096002578735,
0.34789732098579407,
0.6967021226882935,
-0.1097426787018776,
-1.115936040878296,
1.2468928098678589,
-... |
func (m *LevelMutation) AddedIDs(name string) []ent.Value {
switch name {
case level.EdgeArea:
ids := make([]ent.Value, 0, len(m.area))
for id := range m.area {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-0.7212986350059509,
-0.8066160678863525,
0.294872909784317,
-0.9000216126441956,
-0.06692084670066833,
0.5728001594543457,
-0.7773551940917969,
0.03545005992054939,
0.4497692883014679,
0.3370671570301056,
0.36320754885673523,
0.12304328382015228,
-0.7448387145996094,
1.021836757659912,
... |
func (m *LevelMutation) RemovedEdges() []string {
edges := make([]string, 0, 1)
if m.removedarea != nil {
edges = append(edges, level.EdgeArea)
}
return edges
} | [
-0.2860487699508667,
-0.7068442702293396,
0.5388047695159912,
0.21151448786258698,
-0.28174158930778503,
-0.3049107491970062,
-0.19510960578918457,
0.6201238036155701,
0.7122536897659302,
0.36505866050720215,
-0.03004608117043972,
0.0027238717302680016,
-1.3199312686920166,
0.9784342050552... |
func (m *LevelMutation) RemovedIDs(name string) []ent.Value {
switch name {
case level.EdgeArea:
ids := make([]ent.Value, 0, len(m.removedarea))
for id := range m.removedarea {
ids = append(ids, id)
}
return ids
}
return nil
} | [
-0.47006773948669434,
-0.8813262581825256,
0.5153270363807678,
-0.7973565459251404,
-0.1639033406972885,
-0.0034544302616268396,
-0.5536710619926453,
0.6390020251274109,
0.3584771752357483,
0.5688610076904297,
-0.5159295201301575,
0.12726221978664398,
-0.9953239560127258,
0.696283638477325... |
func (m *LevelMutation) ClearedEdges() []string {
edges := make([]string, 0, 1)
return edges
} | [
-0.8098617196083069,
-0.41915300488471985,
0.4221307039260864,
0.5168067812919617,
-0.6459521055221558,
0.15623106062412262,
-0.8879384994506836,
-0.5122116804122925,
0.4773917496204376,
1.6483802795410156,
0.2601598799228668,
0.6509014964103699,
-1.0313739776611328,
-0.22786599397659302,
... |
func (m *LevelMutation) EdgeCleared(name string) bool {
switch name {
}
return false
} | [
-1.0016980171203613,
-0.453152596950531,
0.6184738874435425,
-0.2292192280292511,
-0.7258284687995911,
0.6329038739204407,
-0.8581070303916931,
-0.275145024061203,
-0.4354739487171173,
0.5145832896232605,
-0.07630155980587006,
-0.7111204862594604,
-0.8040474653244019,
0.23660288751125336,
... |
func (m *LevelMutation) ClearEdge(name string) error {
switch name {
}
return fmt.Errorf("unknown Level unique edge %s", name)
} | [
-0.8236324191093445,
0.7107812762260437,
0.4214385151863098,
0.7168560028076172,
-0.43901529908180237,
0.32631736993789673,
-0.47261276841163635,
0.44652682542800903,
-0.39532455801963806,
1.0990022420883179,
-0.04900068789720535,
-0.2814328968524933,
-0.2660108506679535,
0.732234001159668... |
func (m *LevelMutation) ResetEdge(name string) error {
switch name {
case level.EdgeArea:
m.ResetArea()
return nil
}
return fmt.Errorf("unknown Level edge %s", name)
} | [
-0.9822102785110474,
0.25727900862693787,
0.3440551161766052,
0.8399689793586731,
0.38754919171333313,
-0.3695332109928131,
0.1748059093952179,
0.8115755915641785,
-0.6160598993301392,
0.9787825345993042,
0.1711377650499344,
-0.2928124964237213,
-0.927479088306427,
0.6565099954605103,
0.... |
func newNametitleMutation(c config, op Op, opts ...nametitleOption) *NametitleMutation {
m := &NametitleMutation{
config: c,
op: op,
typ: TypeNametitle,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.3013607263565063,
-0.1022319346666336,
0.32289618253707886,
0.4209464490413666,
-1.5682438611984253,
-0.9348874688148499,
-0.41642919182777405,
-0.8346201181411743,
0.5065999627113342,
0.8965877294540405,
-1.8426666259765625,
-0.8068041205406189,
-0.6250982880592346,
-0.6642516851425171... |
func withNametitleID(id int) nametitleOption {
return func(m *NametitleMutation) {
var (
err error
once sync.Once
value *Nametitle
)
m.oldValue = func(ctx context.Context) (*Nametitle, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed... | [
-0.1800002008676529,
-0.4779725670814514,
0.44489240646362305,
-0.17196305096149445,
-1.2713528871536255,
-0.037918951362371445,
-1.1168277263641357,
-1.406175971031189,
0.8424546122550964,
1.0150333642959595,
-0.9837188720703125,
-0.004931613337248564,
-0.16890473663806915,
0.898480534553... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.