text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m *OrganizationMutation) RemoveUnitIDs(ids ...int) {
if m.removedunits == nil {
m.removedunits = make(map[int]struct{})
}
for i := range ids {
delete(m.units, ids[i])
m.removedunits[ids[i]] = struct{}{}
}
} | [
-1.7454118728637695,
-0.465652734041214,
-0.10323148220777512,
-0.6492379307746887,
-0.27999991178512573,
0.15859416127204895,
-0.0728110745549202,
0.5376499891281128,
-0.2216191440820694,
0.4173196256160736,
-0.3715767562389374,
0.0995001420378685,
-1.002887487411499,
-0.16102935373783112... |
func (m *OrganizationMutation) RemovedUnitsIDs() (ids []int) {
for id := range m.removedunits {
ids = append(ids, id)
}
return
} | [
-0.5610989332199097,
-0.4138719439506531,
0.001998795894905925,
-0.02748369239270687,
-0.07162877917289734,
0.402094304561615,
0.14028209447860718,
-0.08919622749090195,
0.7500936388969421,
-0.490100234746933,
-0.3310889005661011,
-0.0004890660638920963,
-0.4828188419342041,
0.218530893325... |
func (m *OrganizationMutation) UnitsIDs() (ids []int) {
for id := range m.units {
ids = append(ids, id)
}
return
} | [
-1.2383371591567993,
-0.4157865345478058,
0.022957732900977135,
-0.027419762685894966,
0.7011741399765015,
0.07200412452220917,
-0.20320595800876617,
-0.1678621619939804,
0.3158116340637207,
0.27501752972602844,
0.49877724051475525,
0.030156239867210388,
-0.30879583954811096,
0.23544451594... |
func (m *OrganizationMutation) ResetUnits() {
m.units = nil
m.clearedunits = false
m.removedunits = nil
} | [
-0.5317497849464417,
0.9072598814964294,
0.11693239212036133,
-0.10090238600969315,
0.4808058440685272,
0.01926606521010399,
1.0580215454101562,
0.07894637435674667,
-0.02245313487946987,
-0.7288900017738342,
0.25914445519447327,
0.1530335247516632,
-0.6214926242828369,
-0.1980082839727401... |
func (m *OrganizationMutation) AddStaffIDs(ids ...int) {
if m.staffs == nil {
m.staffs = make(map[int]struct{})
}
for i := range ids {
m.staffs[ids[i]] = struct{}{}
}
} | [
-1.3663644790649414,
0.32949620485305786,
0.22142353653907776,
-0.21504294872283936,
0.15869836509227753,
0.1123775988817215,
-0.040715549141168594,
-0.3760886490345001,
-0.4672168791294098,
0.374310165643692,
-0.9106793403625488,
-0.3624478280544281,
-0.45190536975860596,
0.50602203607559... |
func (m *OrganizationMutation) ClearStaffs() {
m.clearedstaffs = true
} | [
0.12936550378799438,
0.7783223390579224,
0.06457775086164474,
0.02697131037712097,
-0.38696423172950745,
0.7357518672943115,
0.3970012664794922,
-1.3033643960952759,
-0.028150450438261032,
-0.011445149779319763,
0.0831713080406189,
0.01848871260881424,
0.12794391810894012,
0.31926649808883... |
func (m *OrganizationMutation) StaffsCleared() bool {
return m.clearedstaffs
} | [
-0.24567542970180511,
0.47258689999580383,
0.37297287583351135,
0.0843198373913765,
-0.12416478991508484,
0.7353495359420776,
-0.31861579418182373,
-1.4127660989761353,
-0.11053760349750519,
-0.4129926264286041,
-0.384419709444046,
0.20046691596508026,
0.23340924084186554,
0.26867818832397... |
func (m *OrganizationMutation) RemoveStaffIDs(ids ...int) {
if m.removedstaffs == nil {
m.removedstaffs = make(map[int]struct{})
}
for i := range ids {
delete(m.staffs, ids[i])
m.removedstaffs[ids[i]] = struct{}{}
}
} | [
-1.0928406715393066,
-0.12335649132728577,
0.06068204715847969,
-0.30912187695503235,
-0.544093132019043,
-0.2526467740535736,
0.2515368163585663,
0.0007934319437481463,
-0.5612590909004211,
0.5145860314369202,
-1.2483999729156494,
-0.253458708524704,
-0.9278730154037476,
0.609184920787811... |
func (m *OrganizationMutation) RemovedStaffsIDs() (ids []int) {
for id := range m.removedstaffs {
ids = append(ids, id)
}
return
} | [
0.4041129946708679,
-0.38718879222869873,
0.2927326560020447,
-0.410927951335907,
-0.009277865290641785,
0.00365602970123291,
0.7395997047424316,
-0.6109485626220703,
0.4132610559463501,
-0.5049463510513306,
-1.224318504333496,
-0.10209871828556061,
-0.7995416522026062,
0.8227715492248535,... |
func (m *OrganizationMutation) StaffsIDs() (ids []int) {
for id := range m.staffs {
ids = append(ids, id)
}
return
} | [
-0.3412992060184479,
0.18142080307006836,
0.16937664151191711,
-0.08720741420984268,
0.05721661448478699,
0.3604121804237366,
0.14888441562652588,
-0.5369518399238586,
0.24563591182231903,
0.5357818007469177,
-0.7287138104438782,
0.6209043264389038,
-0.3423101305961609,
0.4543938934803009,... |
func (m *OrganizationMutation) ResetStaffs() {
m.staffs = nil
m.clearedstaffs = false
m.removedstaffs = nil
} | [
0.33793261647224426,
0.5478330850601196,
0.13593050837516785,
-0.3136109411716461,
0.439386785030365,
-0.17276853322982788,
1.1982454061508179,
-0.7613279223442078,
-0.03765241056680679,
-0.7827773690223694,
-0.623515248298645,
-0.3598533868789673,
-0.7197391986846924,
0.15749141573905945,... |
func (m *OrganizationMutation) Where(ps ...predicate.Organization) {
m.predicates = append(m.predicates, ps...)
} | [
-0.5956075191497803,
-0.4390459954738617,
0.36800721287727356,
0.3701298236846924,
0.04396253451704979,
0.5558696985244751,
0.15045684576034546,
-0.012702664360404015,
-0.7156091332435608,
-0.0894748792052269,
0.5048051476478577,
0.4944976270198822,
0.121185302734375,
-0.04638202115893364,... |
func (m *OrganizationMutation) Op() Op {
return m.op
} | [
-1.210543155670166,
0.04793939366936684,
0.06122826412320137,
1.0515644550323486,
0.03697565943002701,
0.8863848447799683,
1.0182771682739258,
0.2769724428653717,
0.355519562959671,
0.5648652911186218,
0.2907049357891083,
-0.6602005362510681,
0.02576298452913761,
-1.066709041595459,
0.16... |
func (m *OrganizationMutation) Type() string {
return m.typ
} | [
-0.6697357296943665,
-0.4809102714061737,
-0.019189361482858658,
0.9699907302856445,
0.8859073519706726,
0.5106877684593201,
0.9828735589981079,
-1.0157335996627808,
0.7855291962623596,
0.4435812532901764,
0.39456748962402344,
-0.3218283951282501,
-0.42558011412620544,
0.0435660220682621,
... |
func (m *OrganizationMutation) Fields() []string {
fields := make([]string, 0, 5)
if m.create_by != nil {
fields = append(fields, organization.FieldCreateByUser)
}
if m.update_by != nil {
fields = append(fields, organization.FieldUpdateByUser)
}
if m.create_time != nil {
fields = append(fields, organization... | [
-1.0463414192199707,
-0.045122791081666946,
0.34171780943870544,
-0.2625791132450104,
0.4386902451515198,
0.06872671842575073,
-0.37061378359794617,
-0.4247612953186035,
0.4725533425807953,
0.2982758581638336,
-0.7043892741203308,
-0.7633719444274902,
-0.2683736979961395,
0.227272495627403... |
func (m *OrganizationMutation) Field(name string) (ent.Value, bool) {
switch name {
case organization.FieldCreateByUser:
return m.CreateByUser()
case organization.FieldUpdateByUser:
return m.UpdateByUser()
case organization.FieldCreateTime:
return m.CreateTime()
case organization.FieldUpdateTime:
return m.... | [
-1.7111868858337402,
0.18912608921527863,
0.6383546590805054,
0.1227477639913559,
-0.2949705421924591,
0.5156229138374329,
-0.6245635151863098,
-0.4542471170425415,
0.1318855583667755,
0.25572672486305237,
-0.5724437832832336,
-0.6950489282608032,
-0.08236163854598999,
0.7082728743553162,
... |
func (m *OrganizationMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case organization.FieldCreateByUser:
return m.OldCreateByUser(ctx)
case organization.FieldUpdateByUser:
return m.OldUpdateByUser(ctx)
case organization.FieldCreateTime:
return m.OldCreateTime(ctx)
cas... | [
-0.8295975923538208,
0.08767972141504288,
0.6219954490661621,
-0.4652039706707001,
0.24676695466041565,
0.46942901611328125,
0.21880920231342316,
-0.7915463447570801,
0.19607768952846527,
0.2488936185836792,
-0.2770317494869232,
-0.04160935804247856,
-0.07782088965177536,
0.166914120316505... |
func (m *OrganizationMutation) SetField(name string, value ent.Value) error {
switch name {
case organization.FieldCreateByUser:
v, ok := value.(int)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetCreateByUser(v)
return nil
case organization.FieldUpdateByUser:
v, ok ... | [
-1.331318974494934,
0.29603904485702515,
0.7045568823814392,
0.06774376332759857,
-0.2836886942386627,
0.6084270477294922,
0.051432281732559204,
-0.5139880776405334,
-0.14254534244537354,
0.28319960832595825,
-0.4016765356063843,
-0.26674240827560425,
0.10750795155763626,
0.837110400199890... |
func (m *OrganizationMutation) AddedFields() []string {
var fields []string
return fields
} | [
-0.4549958407878876,
0.17088845372200012,
0.33502599596977234,
0.0951203927397728,
0.3913983702659607,
0.9897035956382751,
-0.06794190406799316,
-0.19548174738883972,
0.7761337757110596,
-0.5567193627357483,
-0.20534838736057281,
0.0015090799424797297,
-0.9704295992851257,
0.13814519345760... |
func (m *OrganizationMutation) AddedField(name string) (ent.Value, bool) {
switch name {
}
return nil, false
} | [
-1.6485595703125,
0.7065550684928894,
0.6335189938545227,
-0.27819332480430603,
-0.10886219888925552,
1.2212482690811157,
-0.434297114610672,
-0.08053187280893326,
0.5026777386665344,
-0.14466963708400726,
-0.8507460951805115,
-1.177178144454956,
-1.4372845888137817,
0.06882274895906448,
... |
func (m *OrganizationMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Organization numeric field %s", name)
} | [
-1.0782995223999023,
0.7348487377166748,
0.6285356283187866,
0.26188796758651733,
0.11734164506196976,
1.4502040147781372,
-0.7923901677131653,
-0.30523762106895447,
-0.36521294713020325,
0.02728956937789917,
0.05744301155209541,
-1.0640673637390137,
-0.07958278059959412,
0.339874476194381... |
func (m *OrganizationMutation) ClearedFields() []string {
var fields []string
if m.FieldCleared(organization.FieldCreateByUser) {
fields = append(fields, organization.FieldCreateByUser)
}
if m.FieldCleared(organization.FieldUpdateByUser) {
fields = append(fields, organization.FieldUpdateByUser)
}
if m.FieldCl... | [
-0.6312907934188843,
0.3216077387332916,
0.36264553666114807,
0.23330633342266083,
-0.6063942313194275,
0.4727904796600342,
0.067303866147995,
-0.7361056804656982,
0.7495403289794922,
0.7634459137916565,
-0.19508135318756104,
-0.12437400966882706,
-0.27709683775901794,
-0.4549226462841034,... |
func (m *OrganizationMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.7577129602432251,
0.28424322605133057,
0.7900324463844299,
-0.1493733674287796,
-0.1533265858888626,
0.5017802715301514,
-0.6804247498512268,
0.08286365866661072,
-0.1126490980386734,
-0.12869854271411896,
-0.9226876497268677,
-0.5048949718475342,
0.30211061239242554,
-0.403550714254379... |
func (m *OrganizationMutation) ClearField(name string) error {
switch name {
case organization.FieldCreateByUser:
m.ClearCreateByUser()
return nil
case organization.FieldUpdateByUser:
m.ClearUpdateByUser()
return nil
case organization.FieldUpdateTime:
m.ClearUpdateTime()
return nil
}
return fmt.Errorf... | [
-1.0163652896881104,
0.8776857256889343,
0.6149366497993469,
0.35975807905197144,
-0.2618110179901123,
0.6673937439918518,
-0.1422235518693924,
-0.8347164392471313,
0.43421420454978943,
0.7989075779914856,
-0.3152228593826294,
-0.7216342091560364,
-0.030337126925587654,
0.30819928646087646... |
func (m *OrganizationMutation) ResetField(name string) error {
switch name {
case organization.FieldCreateByUser:
m.ResetCreateByUser()
return nil
case organization.FieldUpdateByUser:
m.ResetUpdateByUser()
return nil
case organization.FieldCreateTime:
m.ResetCreateTime()
return nil
case organization.Fi... | [
-1.110082745552063,
0.7843229174613953,
0.5137112736701965,
0.26529431343078613,
0.47041967511177063,
0.2663249373435974,
0.5226277709007263,
-0.5543302893638611,
0.12629735469818115,
0.3930460810661316,
-0.7483413219451904,
-0.33699658513069153,
-0.5095494985580444,
-0.0669013261795044,
... |
func (m *OrganizationMutation) AddedEdges() []string {
edges := make([]string, 0, 4)
if m.create_by != nil {
edges = append(edges, organization.EdgeCreateBy)
}
if m.update_by != nil {
edges = append(edges, organization.EdgeUpdateBy)
}
if m.units != nil {
edges = append(edges, organization.EdgeUnits)
}
if ... | [
-0.4797055423259735,
-0.2923814058303833,
0.3013651371002197,
0.39775505661964417,
0.5315864086151123,
0.426878958940506,
-0.5482950210571289,
-0.360996276140213,
1.071357250213623,
0.1985080987215042,
0.4247763752937317,
0.12228118628263474,
-0.6383228302001953,
0.4053732752799988,
-0.4... |
func (m *OrganizationMutation) AddedIDs(name string) []ent.Value {
switch name {
case organization.EdgeCreateBy:
if id := m.create_by; id != nil {
return []ent.Value{*id}
}
case organization.EdgeUpdateBy:
if id := m.update_by; id != nil {
return []ent.Value{*id}
}
case organization.EdgeUnits:
ids :=... | [
-0.806191623210907,
-0.6058159470558167,
0.3669222891330719,
-0.4214248061180115,
0.1755569577217102,
0.3880758285522461,
-0.48483821749687195,
-0.09194396436214447,
0.5994378924369812,
0.28737011551856995,
0.4663136899471283,
0.37841901183128357,
-0.3374082148075104,
0.4877082407474518,
... |
func (m *OrganizationMutation) RemovedEdges() []string {
edges := make([]string, 0, 4)
if m.removedunits != nil {
edges = append(edges, organization.EdgeUnits)
}
if m.removedstaffs != nil {
edges = append(edges, organization.EdgeStaffs)
}
return edges
} | [
-0.1141529306769371,
-0.23706118762493134,
0.43584924936294556,
0.1381082385778427,
0.23252660036087036,
0.19966630637645721,
-0.21803820133209229,
0.2580217123031616,
0.9574827551841736,
-0.01798730343580246,
-0.01685464195907116,
0.18782147765159607,
-0.8108059167861938,
0.29816591739654... |
func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value {
switch name {
case organization.EdgeUnits:
ids := make([]ent.Value, 0, len(m.removedunits))
for id := range m.removedunits {
ids = append(ids, id)
}
return ids
case organization.EdgeStaffs:
ids := make([]ent.Value, 0, len(m.removedstaf... | [
-0.519896924495697,
-0.4637718200683594,
0.4926829934120178,
-0.6499728560447693,
0.14829246699810028,
0.1896812468767166,
-0.3712792694568634,
0.38207799196243286,
0.5345176458358765,
0.27066996693611145,
-0.3977868854999542,
0.4364253878593445,
-0.6480270624160767,
0.14221830666065216,
... |
func (m *OrganizationMutation) ClearedEdges() []string {
edges := make([]string, 0, 4)
if m.clearedcreate_by {
edges = append(edges, organization.EdgeCreateBy)
}
if m.clearedupdate_by {
edges = append(edges, organization.EdgeUpdateBy)
}
if m.clearedunits {
edges = append(edges, organization.EdgeUnits)
}
i... | [
-0.9618539810180664,
-0.08823622018098831,
0.4166194796562195,
0.6034422516822815,
-0.4453055262565613,
0.1397722214460373,
-0.4045707881450653,
-0.8811718821525574,
0.7848010063171387,
1.401809811592102,
0.43934759497642517,
0.5963014960289001,
-0.21963515877723694,
-0.33585330843925476,
... |
func (m *OrganizationMutation) EdgeCleared(name string) bool {
switch name {
case organization.EdgeCreateBy:
return m.clearedcreate_by
case organization.EdgeUpdateBy:
return m.clearedupdate_by
case organization.EdgeUnits:
return m.clearedunits
case organization.EdgeStaffs:
return m.clearedstaffs
}
return... | [
-1.0690001249313354,
-0.1854470819234848,
0.7395349740982056,
-0.14052172005176544,
-0.308527410030365,
0.4708477854728699,
-0.32341256737709045,
-0.5213896632194519,
0.353545218706131,
0.811789333820343,
0.015191648155450821,
-0.018653718754649162,
-0.3853805661201477,
-0.0745859146118164... |
func (m *OrganizationMutation) ClearEdge(name string) error {
switch name {
case organization.EdgeCreateBy:
m.ClearCreateBy()
return nil
case organization.EdgeUpdateBy:
m.ClearUpdateBy()
return nil
}
return fmt.Errorf("unknown Organization unique edge %s", name)
} | [
-1.3328267335891724,
1.053333044052124,
0.4699316918849945,
1.2470422983169556,
-0.04117811098694801,
0.21823404729366302,
0.10901304334402084,
0.07654184103012085,
0.39429059624671936,
0.9463782906532288,
0.25920701026916504,
-0.3331798315048218,
-0.11564010381698608,
0.5287742614746094,
... |
func (m *OrganizationMutation) ResetEdge(name string) error {
switch name {
case organization.EdgeCreateBy:
m.ResetCreateBy()
return nil
case organization.EdgeUpdateBy:
m.ResetUpdateBy()
return nil
case organization.EdgeUnits:
m.ResetUnits()
return nil
case organization.EdgeStaffs:
m.ResetStaffs()
... | [
-1.3699088096618652,
0.4280273914337158,
0.43941447138786316,
0.8455163836479187,
0.6595045328140259,
-0.3173167109489441,
0.279388427734375,
0.2063654214143753,
-0.026422740891575813,
0.8204969167709351,
-0.2463538497686386,
0.013330424204468727,
-0.6646915674209595,
-0.028274554759263992... |
func newResourceMutation(c config, op Op, opts ...resourceOption) *ResourceMutation {
m := &ResourceMutation{
config: c,
op: op,
typ: TypeResource,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.0544174909591675,
-0.45386365056037903,
0.12893202900886536,
0.4181325435638428,
-0.7545813918113708,
-0.7547638416290283,
0.811855673789978,
0.038041871041059494,
0.8634670972824097,
0.8780701756477356,
-0.7487143874168396,
-0.9716107845306396,
-0.5509076118469238,
-0.4212619662284851,... |
func withResourceID(id int) resourceOption {
return func(m *ResourceMutation) {
var (
err error
once sync.Once
value *Resource
)
m.oldValue = func(ctx context.Context) (*Resource, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
... | [
0.34933122992515564,
-0.49009132385253906,
0.45157113671302795,
-0.4926755726337433,
-0.33015766739845276,
0.31852778792381287,
0.4340766966342926,
-0.5387882590293884,
1.1230921745300293,
0.9492702484130859,
-0.0013817119179293513,
-0.09827170521020889,
0.23926334083080292,
0.612765014171... |
func withResource(node *Resource) resourceOption {
return func(m *ResourceMutation) {
m.oldValue = func(context.Context) (*Resource, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.22850286960601807,
-0.22523872554302216,
0.3699794411659241,
-0.1775347739458084,
-0.08836952596902847,
-0.39478468894958496,
0.8255321383476257,
-0.15408536791801453,
1.0762261152267456,
0.2059786468744278,
0.07804879546165466,
-0.23452478647232056,
0.7059318423271179,
-0.1119507774710... |
func (m ResourceMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.28006666898727417,
-0.5602965950965881,
0.023177053779363632,
0.11015453189611435,
-0.5111190676689148,
-0.1084238588809967,
1.072730302810669,
-0.29491540789604187,
0.4636077582836151,
-0.4469817876815796,
-0.4564519226551056,
-0.02167174220085144,
0.1712159812450409,
-0.87046307325363... |
func (m ResourceMutation) 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.06418411433696747,
0.16179479658603668,
0.36973097920417786,
0.2581132650375366,
0.21753926575183868,
-0.2934616506099701,
0.08204576373100281,
0.15615716576576233,
0.5482655167579651,
0.06843379139900208,
-0.12552134692668915,
-0.7146303057670593,
-0.27010253071784973,
-0.8546106219291... |
func (m *ResourceMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.6981862187385559,
-0.37025752663612366,
0.5995025038719177,
0.2394154816865921,
0.17611141502857208,
-0.12415840476751328,
0.3668695390224457,
0.17575041949748993,
1.10863196849823,
0.5013441443443298,
-0.32457438111305237,
-1.1202391386032104,
-0.7165022492408752,
0.4150654971599579,
... |
func (m *ResourceMutation) SetName(s string) {
m.name = &s
} | [
-0.3959546387195587,
0.31306856870651245,
0.1569088101387024,
0.8313086032867432,
-0.9230620265007019,
-0.7576747536659241,
0.297750860452652,
0.5407524704933167,
-0.2796647846698761,
0.2823205590248108,
-0.6936503648757935,
-1.0260624885559082,
0.03678830340504646,
0.2346072494983673,
-... |
func (m *ResourceMutation) Name() (r string, exists bool) {
v := m.name
if v == nil {
return
}
return *v, true
} | [
-1.3872063159942627,
0.11699222773313522,
0.5371278524398804,
0.1729304939508438,
-0.6320056319236755,
-1.2219702005386353,
0.2400062531232834,
-0.5193260908126831,
-0.10770327597856522,
1.2532100677490234,
-0.5808734893798828,
-1.5768425464630127,
-0.3528952896595001,
-0.42283377051353455... |
func (m *ResourceMutation) OldName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldName is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldName requires an ID field in the mutation")
}
oldValue, err := m.ol... | [
-0.1832924336194992,
-0.25115326046943665,
0.48595643043518066,
0.3927823007106781,
-0.5496447086334229,
-0.27624133229255676,
0.17236557602882385,
-0.42112067341804504,
0.4662555456161499,
0.8308688998222351,
0.744865357875824,
-0.28342440724372864,
0.1704031229019165,
-0.1993196755647659... |
func (m *ResourceMutation) ResetName() {
m.name = nil
} | [
-0.2170678824186325,
-0.009031001478433609,
0.2145802229642868,
0.4926980435848236,
-0.19618068635463715,
-0.8282926678657532,
0.2255653440952301,
0.26092708110809326,
-0.21658377349376678,
0.4273470640182495,
-0.4499501883983612,
-0.5735737085342407,
-0.23589588701725006,
-0.3227541446685... |
func (m *ResourceMutation) SetType(s string) {
m._type = &s
} | [
-0.31725725531578064,
0.851015567779541,
-0.0444813147187233,
0.6085584163665771,
0.16529512405395508,
-0.5145787596702576,
0.5967912673950195,
-0.20317193865776062,
0.3758503794670105,
-0.3651673197746277,
-0.40155988931655884,
-0.37812870740890503,
-0.08097705990076065,
0.189643681049346... |
func (m *ResourceMutation) GetType() (r string, exists bool) {
v := m._type
if v == nil {
return
}
return *v, true
} | [
-1.0688905715942383,
1.273865818977356,
0.559467613697052,
0.45002245903015137,
0.8162164092063904,
-1.006308674812317,
0.4472756087779999,
-0.6232466697692871,
0.42127490043640137,
0.6914355158805847,
0.014664409682154655,
-1.1800096035003662,
-0.6262512803077698,
-0.32519692182540894,
... |
func (m *ResourceMutation) OldType(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldType is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldType requires an ID field in the mutation")
}
oldValue, err := m.ol... | [
-0.03069922886788845,
0.009758802130818367,
0.260850191116333,
0.5007641315460205,
0.07998257875442505,
-0.42601120471954346,
0.26391974091529846,
-0.7761009335517883,
0.9093366265296936,
0.3958781361579895,
0.798281192779541,
-0.1545601487159729,
-0.30791783332824707,
0.432203084230423,
... |
func (m *ResourceMutation) ResetType() {
m._type = nil
} | [
-0.29285985231399536,
0.8381460905075073,
0.11041440069675446,
0.8732486367225647,
1.2565723657608032,
-0.9079161882400513,
1.0247446298599243,
-0.4453165829181671,
0.13435550034046173,
-0.07153978943824768,
0.028788482770323753,
0.15046164393424988,
-0.5155981183052063,
0.2172360718250274... |
func (m *ResourceMutation) Where(ps ...predicate.Resource) {
m.predicates = append(m.predicates, ps...)
} | [
-0.28104931116104126,
-0.7597789764404297,
0.2104720175266266,
-0.290187805891037,
-0.42202290892601013,
0.046596575528383255,
0.013005876913666725,
-0.2884834110736847,
-0.6248267889022827,
-0.3796091675758362,
0.3421798348426819,
0.13118690252304077,
0.12059969455003738,
-0.0569380857050... |
func (m *ResourceMutation) Op() Op {
return m.op
} | [
-0.907852053642273,
-0.15315477550029755,
-0.03839913010597229,
0.5307527780532837,
-0.4520053267478943,
0.5667940378189087,
0.9854804873466492,
0.2381965070962906,
0.4282439053058624,
0.3788917064666748,
0.3834521770477295,
-1.0445963144302368,
0.28492745757102966,
-0.9435845613479614,
... |
func (m *ResourceMutation) Type() string {
return m.typ
} | [
-0.38990169763565063,
-0.5712458491325378,
-0.10419211536645889,
0.4118121266365051,
0.3462860584259033,
0.10777386277914047,
0.8446270823478699,
-1.136374831199646,
0.9350754022598267,
0.39528778195381165,
0.5031656622886658,
-0.7970755100250244,
-0.2882803976535797,
0.09820856899023056,
... |
func (m *ResourceMutation) Fields() []string {
fields := make([]string, 0, 2)
if m.name != nil {
fields = append(fields, resource.FieldName)
}
if m._type != nil {
fields = append(fields, resource.FieldType)
}
return fields
} | [
-1.2606662511825562,
-0.47396373748779297,
0.0675811693072319,
-0.8997020125389099,
0.23168900609016418,
-0.19246557354927063,
-0.6952601075172424,
-0.4759511947631836,
0.5392976999282837,
0.36261630058288574,
-0.5507841110229492,
-0.5939939022064209,
-0.2630120813846588,
0.071812428534030... |
func (m *ResourceMutation) Field(name string) (ent.Value, bool) {
switch name {
case resource.FieldName:
return m.Name()
case resource.FieldType:
return m.GetType()
}
return nil, false
} | [
-1.4795331954956055,
-0.057449933141469955,
0.5043659806251526,
-0.46155846118927,
-0.4055636525154114,
0.0784047544002533,
-0.9756298661231995,
-0.43168002367019653,
0.3929101228713989,
0.0922132283449173,
-0.37975022196769714,
-0.8942052721977234,
-0.08986648172140121,
0.537812352180481,... |
func (m *ResourceMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case resource.FieldName:
return m.OldName(ctx)
case resource.FieldType:
return m.OldType(ctx)
}
return nil, fmt.Errorf("unknown Resource field %s", name)
} | [
-0.3903517723083496,
0.04612019658088684,
0.3017762303352356,
-0.9655649065971375,
0.10836578905582428,
0.185420960187912,
-0.11031753569841385,
-0.7922381162643433,
0.2667672038078308,
-0.10120325535535812,
-0.11802000552415848,
-0.14339075982570648,
-0.14010848104953766,
-0.0838776305317... |
func (m *ResourceMutation) SetField(name string, value ent.Value) error {
switch name {
case resource.FieldName:
v, ok := value.(string)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetName(v)
return nil
case resource.FieldType:
v, ok := value.(string)
if !ok {
r... | [
-1.1148855686187744,
0.24287186563014984,
0.4649597704410553,
-0.4589077830314636,
-0.33069077134132385,
0.46968188881874084,
-0.555557906627655,
-0.43564367294311523,
-0.1687270700931549,
0.1008220985531807,
-0.22461766004562378,
-0.5798463821411133,
0.1009596735239029,
0.7622525095939636... |
func (m *ResourceMutation) AddedFields() []string {
return nil
} | [
-0.24750596284866333,
0.30111581087112427,
0.4846671521663666,
-0.2511032223701477,
0.1694594919681549,
0.633483350276947,
0.2517433762550354,
-0.018098797649145126,
1.143038034439087,
-0.9248917102813721,
-0.37032467126846313,
-0.6456485390663147,
-1.3095121383666992,
0.054072652012109756... |
func (m *ResourceMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.4165955781936646,
0.5603508353233337,
0.7826427221298218,
-0.3813159763813019,
-0.36469200253486633,
0.893267810344696,
-0.4484685957431793,
0.029241638258099556,
0.5803810358047485,
-0.38044214248657227,
-0.7456001043319702,
-1.4590729475021362,
-1.4003406763076782,
0.08460133522748947... |
func (m *ResourceMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Resource numeric field %s", name)
} | [
-0.7804880142211914,
0.46740296483039856,
0.5686354637145996,
0.004712642170488834,
-0.19254939258098602,
1.183820128440857,
-0.9614763259887695,
-0.47044143080711365,
-0.32963451743125916,
-0.0750126838684082,
0.07910382747650146,
-1.34521484375,
0.10687129944562912,
0.27605825662612915,
... |
func (m *ResourceMutation) ClearedFields() []string {
return nil
} | [
-0.1988781839609146,
0.7390856742858887,
0.41244542598724365,
-0.2170359045267105,
-0.4535236358642578,
0.4514150321483612,
0.18370315432548523,
-0.3806048333644867,
0.9980089068412781,
0.6085403561592102,
-0.24930019676685333,
-0.5095239281654358,
-0.9307489395141602,
-0.7789193987846375,... |
func (m *ResourceMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.6011825799942017,
0.27068454027175903,
0.7365707159042358,
-0.3127233684062958,
-0.35752519965171814,
0.1621956080198288,
-0.8893929719924927,
0.009046309627592564,
-0.07924998551607132,
-0.16819877922534943,
-0.8579886555671692,
-0.7407796382904053,
0.4365948438644409,
-0.2926168739795... |
func (m *ResourceMutation) ClearField(name string) error {
return fmt.Errorf("unknown Resource nullable field %s", name)
} | [
-0.03275931999087334,
0.6414057016372681,
0.46780240535736084,
-0.3598635494709015,
-0.6396574378013611,
0.39787518978118896,
-0.6361044645309448,
-0.5404819846153259,
0.1825018972158432,
1.0494847297668457,
-0.3391546308994293,
-0.9276865720748901,
0.07689166814088821,
0.01904044672846794... |
func (m *ResourceMutation) ResetField(name string) error {
switch name {
case resource.FieldName:
m.ResetName()
return nil
case resource.FieldType:
m.ResetType()
return nil
}
return fmt.Errorf("unknown Resource field %s", name)
} | [
-0.8551305532455444,
0.691990077495575,
0.21790100634098053,
-0.19461101293563843,
0.19011428952217102,
-0.059147290885448456,
0.345385879278183,
-0.39168691635131836,
-0.037410903722047806,
0.39888879656791687,
-0.3784049451351166,
-0.47953709959983826,
-0.4926583766937256,
-0.18669962882... |
func (m *ResourceMutation) AddedEdges() []string {
edges := make([]string, 0, 0)
return edges
} | [
-0.4497204124927521,
-0.5254511833190918,
0.3055700659751892,
-0.14985281229019165,
0.17559115588665009,
0.3275509476661682,
-1.014327883720398,
-0.11157573014497757,
1.2074798345565796,
0.007692002225667238,
0.5236088037490845,
0.10100384801626205,
-0.9473641514778137,
0.563800573348999,
... |
func (m *ResourceMutation) AddedIDs(name string) []ent.Value {
return nil
} | [
-0.7858153581619263,
-0.22382603585720062,
0.43409451842308044,
-0.5456863641738892,
-0.09752199798822403,
0.5845182538032532,
-0.680892288684845,
-0.1763707399368286,
0.7802546620368958,
-0.237136110663414,
-0.4899759590625763,
-0.321848601102829,
-0.9496883153915405,
0.6168034076690674,
... |
func (m *ResourceMutation) RemovedEdges() []string {
edges := make([]string, 0, 0)
return edges
} | [
-0.3565915822982788,
-0.4743072986602783,
0.46647146344184875,
-0.05232050269842148,
-0.1688307225704193,
-0.20892508327960968,
-0.21489231288433075,
0.4162258803844452,
1.067261815071106,
0.30356064438819885,
-0.35619571805000305,
-0.06400922685861588,
-1.1306105852127075,
0.2050237655639... |
func (m *ResourceMutation) RemovedIDs(name string) []ent.Value {
return nil
} | [
-0.643807053565979,
-0.38155290484428406,
0.5322296023368835,
-0.5917773842811584,
-0.21403023600578308,
0.020411593839526176,
-0.4319482147693634,
0.5565304756164551,
0.752528965473175,
-0.02092382125556469,
-1.3934822082519531,
-0.5834212303161621,
-0.9397825598716736,
0.3066380620002746... |
func (m *ResourceMutation) ClearedEdges() []string {
edges := make([]string, 0, 0)
return edges
} | [
-0.727759063243866,
-0.29180434346199036,
0.37885794043540955,
0.10862623900175095,
-0.5821678042411804,
0.037738606333732605,
-0.9073650240898132,
-0.7373559474945068,
0.9149261713027954,
1.6331957578659058,
0.4255645275115967,
0.5984729528427124,
-0.6631975769996643,
-0.39255788922309875... |
func (m *ResourceMutation) EdgeCleared(name string) bool {
return false
} | [
-1.0434786081314087,
-0.3488030433654785,
0.6329653263092041,
-0.4266626238822937,
-0.754211962223053,
0.5317940711975098,
-0.6902331113815308,
-0.22872859239578247,
-0.030383093282580376,
0.4937807321548462,
0.18404629826545715,
-0.8090277910232544,
-0.6849240064620972,
0.1019971817731857... |
func (m *ResourceMutation) ClearEdge(name string) error {
return fmt.Errorf("unknown Resource unique edge %s", name)
} | [
-0.7770150303840637,
0.8728815913200378,
0.36401820182800293,
0.5058262944221497,
-0.611680805683136,
0.08426754921674728,
-0.31556224822998047,
0.2596275508403778,
0.01992177963256836,
1.1464262008666992,
0.23490868508815765,
-0.3563929796218872,
0.0852615013718605,
0.4528595209121704,
... |
func (m *ResourceMutation) ResetEdge(name string) error {
return fmt.Errorf("unknown Resource edge %s", name)
} | [
-0.7767483592033386,
0.39370736479759216,
0.24210479855537415,
0.378892183303833,
0.15831542015075684,
-0.4959200322628021,
0.02536577545106411,
0.6870940923690796,
-0.5781310200691223,
1.2570329904556274,
0.09042884409427643,
0.008876376785337925,
-0.5244042277336121,
-0.13456130027770996... |
func newSystemMutation(c config, op Op, opts ...systemOption) *SystemMutation {
m := &SystemMutation{
config: c,
op: op,
typ: TypeSystem,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-0.9870527982711792,
-0.2896999418735504,
0.28901055455207825,
1.1781173944473267,
-0.30458420515060425,
-0.8094115853309631,
0.4121607542037964,
-0.20598983764648438,
0.7762301564216614,
0.5887449383735657,
-1.104974627494812,
-0.421930193901062,
-0.768096923828125,
0.2570531368255615,
... |
func withSystemID(id int) systemOption {
return func(m *SystemMutation) {
var (
err error
once sync.Once
value *System
)
m.oldValue = func(ctx context.Context) (*System, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
} else {... | [
0.0984157845377922,
-0.5757095813751221,
0.5166982412338257,
0.049635861068964005,
-0.09080309420824051,
0.08491560071706772,
-0.37403857707977295,
-0.672275185585022,
1.279504656791687,
0.37028831243515015,
-0.2880447208881378,
0.36051008105278015,
-0.20426085591316223,
0.8641685247421265... |
func withSystem(node *System) systemOption {
return func(m *SystemMutation) {
m.oldValue = func(context.Context) (*System, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.3103253245353699,
0.11580202728509903,
0.4151119291782379,
-0.03438954055309296,
0.4468793570995331,
-0.5386108756065369,
0.6379837989807129,
-0.6659578680992126,
0.8567088842391968,
-0.1945376843214035,
0.03469080105423927,
0.16353754699230194,
0.8746327757835388,
0.2522711753845215,
... |
func (m SystemMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.32034745812416077,
-0.40717530250549316,
0.021464752033352852,
0.5520215034484863,
-0.3882467746734619,
0.07401485741138458,
0.8658375144004822,
-0.4043055474758148,
0.3988111913204193,
-0.6390019059181213,
-0.7460306286811829,
0.39122387766838074,
-0.10729919373989105,
-0.3443045914173... |
func (m SystemMutation) 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.133628249168396,
0.3023682236671448,
0.35997822880744934,
0.7394117116928101,
0.2974812090396881,
-0.18863631784915924,
-0.06161774694919586,
0.15670548379421234,
0.6254075169563293,
-0.13079771399497986,
-0.26698872447013855,
-0.368193656206131,
-0.5621778964996338,
-0.4829587936401367... |
func (m *SystemMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.8109345436096191,
-0.22044233977794647,
0.5703465342521667,
0.7008913159370422,
0.27893954515457153,
0.13647674024105072,
0.31683269143104553,
0.12183423340320587,
1.1254538297653198,
0.10781695693731308,
-0.5065876245498657,
-0.8037840127944946,
-0.9540042281150818,
0.8220640420913696,... |
func (m *SystemMutation) SetCreateByUser(i int) {
m.create_by = &i
} | [
-0.3720710873603821,
0.674020528793335,
0.2962370812892914,
0.798492968082428,
-0.023238319903612137,
-0.15861153602600098,
1.5785391330718994,
-0.49906712770462036,
-2.0375702381134033,
-0.8121904134750366,
-1.2736692428588867,
-1.0926260948181152,
-0.256293922662735,
0.8205687999725342,
... |
func (m *SystemMutation) CreateByUser() (r int, exists bool) {
v := m.create_by
if v == nil {
return
}
return *v, true
} | [
-0.6834746599197388,
0.978171169757843,
0.5947533845901489,
0.8279501795768738,
-0.06434832513332367,
-0.5793361663818359,
1.3520643711090088,
-0.1535436362028122,
-1.4116514921188354,
-0.14811259508132935,
-1.4003006219863892,
-1.3981842994689941,
-0.7012337446212769,
0.6546612977981567,
... |
func (m *SystemMutation) 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")
}
ol... | [
-0.6946253776550293,
0.2041337788105011,
0.5403698086738586,
0.5959696769714355,
-0.09514518827199936,
-0.43820080161094666,
1.2837270498275757,
-0.6942664384841919,
-0.5246090292930603,
-0.8682025671005249,
-0.622826337814331,
-0.1569955050945282,
-0.4922945499420166,
1.2147408723831177,
... |
func (m *SystemMutation) ClearCreateByUser() {
m.create_by = nil
m.clearedFields[system.FieldCreateByUser] = struct{}{}
} | [
-0.02471654675900936,
0.6552791595458984,
0.38658347725868225,
1.0833439826965332,
-0.5139654278755188,
0.3167547881603241,
1.0837528705596924,
-1.0389633178710938,
-0.9082498550415039,
-0.37337565422058105,
-0.9088332653045654,
0.07461912930011749,
-0.030108684673905373,
0.380163639783859... |
func (m *SystemMutation) CreateByUserCleared() bool {
_, ok := m.clearedFields[system.FieldCreateByUser]
return ok
} | [
0.05911959335207939,
0.4513149559497833,
0.503167450428009,
0.6360057592391968,
-0.008291453123092651,
0.45602935552597046,
0.6001383662223816,
-0.7529300451278687,
-0.47217652201652527,
-0.36917659640312195,
-0.4949250817298889,
-0.4984467625617981,
-0.3658706247806549,
0.1896108984947204... |
func (m *SystemMutation) ResetCreateByUser() {
m.create_by = nil
delete(m.clearedFields, system.FieldCreateByUser)
} | [
0.27369993925094604,
0.5335624814033508,
0.3371788263320923,
1.2226496934890747,
0.08652861416339874,
-0.2818514108657837,
1.1752855777740479,
-0.7064523100852966,
-1.3408080339431763,
-0.6780681610107422,
-0.9471173286437988,
-0.017304865643382072,
-0.4512816071510315,
0.2619709074497223,... |
func (m *SystemMutation) SetUpdateByUser(i int) {
m.update_by = &i
} | [
-0.4063202142715454,
0.25631183385849,
0.39119285345077515,
0.8276435732841492,
-1.1025910377502441,
-0.5137792825698853,
1.109114646911621,
0.16529987752437592,
-1.3458698987960815,
-0.29741623997688293,
-0.7011951804161072,
-1.1824967861175537,
-0.29440444707870483,
0.09430839121341705,
... |
func (m *SystemMutation) UpdateByUser() (r int, exists bool) {
v := m.update_by
if v == nil {
return
}
return *v, true
} | [
-1.0926620960235596,
0.61236172914505,
0.6457622051239014,
0.7570707201957703,
-0.826452910900116,
-0.8382920026779175,
1.2076610326766968,
0.10085581988096237,
-1.0603398084640503,
0.1154465302824974,
-1.3397037982940674,
-0.9735140800476074,
-0.8871328234672546,
0.10685768723487854,
0.... |
func (m *SystemMutation) 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")
}
ol... | [
-0.6181254386901855,
-0.05768368020653725,
0.5359847545623779,
0.6945651173591614,
-0.5902739763259888,
-0.779028594493866,
0.7918007969856262,
-0.43733054399490356,
-0.22595900297164917,
-0.4911496639251709,
-0.46372267603874207,
-0.2760307490825653,
-0.6467974185943604,
0.966008007526397... |
func (m *SystemMutation) ClearUpdateByUser() {
m.update_by = nil
m.clearedFields[system.FieldUpdateByUser] = struct{}{}
} | [
0.025212731212377548,
-0.0392378568649292,
0.4356566071510315,
1.4031108617782593,
-1.7365436553955078,
0.18412913382053375,
0.25086814165115356,
-0.18432405591011047,
-0.252250075340271,
0.25927734375,
-0.3632274270057678,
-0.3714771568775177,
-0.05487419664859772,
-0.27688002586364746,
... |
func (m *SystemMutation) UpdateByUserCleared() bool {
_, ok := m.clearedFields[system.FieldUpdateByUser]
return ok
} | [
-0.11772129684686661,
-0.021583525463938713,
0.43193498253822327,
0.7221387624740601,
-1.0761345624923706,
0.10651074349880219,
0.46296820044517517,
-0.44769081473350525,
-0.39210471510887146,
0.32292523980140686,
-0.3672153651714325,
0.009647766128182411,
-0.7002606987953186,
-0.142757773... |
func (m *SystemMutation) ResetUpdateByUser() {
m.update_by = nil
delete(m.clearedFields, system.FieldUpdateByUser)
} | [
0.3124608099460602,
-0.2643112540245056,
0.2947300970554352,
1.5549880266189575,
-0.7929732203483582,
-0.7224704623222351,
0.6907075643539429,
-0.037717804312705994,
-0.8342539668083191,
0.14471448957920074,
-0.2688993513584137,
-0.25646454095840454,
-0.5923352241516113,
-0.502180457115173... |
func (m *SystemMutation) SetCreateTime(t time.Time) {
m.create_time = &t
} | [
-0.19419904053211212,
0.5266321897506714,
0.19508810341358185,
0.002004672773182392,
1.071984887123108,
-0.214782252907753,
-0.487291544675827,
-0.08773894608020782,
-0.2919248342514038,
0.6459170579910278,
-0.7999950051307678,
-1.1642440557479858,
-0.15172375738620758,
1.7228679656982422,... |
func (m *SystemMutation) CreateTime() (r time.Time, exists bool) {
v := m.create_time
if v == nil {
return
}
return *v, true
} | [
-0.5528574585914612,
0.7138813734054565,
0.6253523230552673,
0.20077678561210632,
1.0871498584747314,
-0.4375072121620178,
-0.5993143320083618,
-0.3997669219970703,
0.11400776356458664,
0.9890079498291016,
-0.6471145749092102,
-2.115342140197754,
-1.0121508836746216,
0.8061840534210205,
... |
func (m *SystemMutation) 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")
}
ol... | [
-0.8990032076835632,
0.20767910778522491,
0.34297510981559753,
-0.3349606692790985,
0.32555463910102844,
-0.6475538611412048,
-0.09087888896465302,
-0.6265576481819153,
0.8737770318984985,
0.9564969539642334,
-0.2716938257217407,
-1.1517537832260132,
-0.42734047770500183,
1.327440023422241... |
func (m *SystemMutation) ResetCreateTime() {
m.create_time = nil
} | [
0.034212663769721985,
0.36977922916412354,
0.12887796759605408,
0.256142258644104,
0.9881784319877625,
-0.5485313534736633,
-0.15772581100463867,
-0.23042790591716766,
-0.43465089797973633,
0.8282654285430908,
-0.8601894974708557,
0.033481698483228683,
-0.8993017673492432,
1.00010919570922... |
func (m *SystemMutation) SetUpdateTime(t time.Time) {
m.update_time = &t
} | [
-0.5611622333526611,
0.03301965445280075,
0.461363822221756,
0.3366576135158539,
-0.20494075119495392,
0.07477309554815292,
-0.8758249878883362,
0.6563610434532166,
0.5328719019889832,
1.0688632726669312,
-0.40138787031173706,
-0.8724281191825867,
0.041250795125961304,
1.041612982749939,
... |
func (m *SystemMutation) UpdateTime() (r time.Time, exists bool) {
v := m.update_time
if v == nil {
return
}
return *v, true
} | [
-1.0611004829406738,
0.49110841751098633,
0.7623457908630371,
0.6019261479377747,
0.03560485318303108,
-0.4291461110115051,
-0.6666674613952637,
0.05288458615541458,
0.24859805405139923,
1.3402780294418335,
-0.6452423334121704,
-1.650865912437439,
-0.8697383403778076,
0.5203853249549866,
... |
func (m *SystemMutation) 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")
}
o... | [
-1.6054476499557495,
0.04454352706670761,
0.4395405650138855,
0.15504226088523865,
-0.64359050989151,
-0.604685366153717,
-0.2826218605041504,
-0.45253849029541016,
0.7234023213386536,
0.7147074341773987,
-0.23937654495239258,
-1.0496824979782104,
-0.17705653607845306,
1.200470209121704,
... |
func (m *SystemMutation) ClearUpdateTime() {
m.update_time = nil
m.clearedFields[system.FieldUpdateTime] = struct{}{}
} | [
-0.575645923614502,
-0.03756488114595413,
0.368055135011673,
0.3151896595954895,
-1.0287522077560425,
0.40153467655181885,
-0.8061649799346924,
-0.3296853303909302,
0.3389320969581604,
1.2891504764556885,
-0.30662110447883606,
-0.4353313148021698,
0.23947221040725708,
0.5331788063049316,
... |
func (m *SystemMutation) UpdateTimeCleared() bool {
_, ok := m.clearedFields[system.FieldUpdateTime]
return ok
} | [
-0.953565239906311,
0.1438126266002655,
0.5439332723617554,
0.19838586449623108,
-0.7759882211685181,
0.12803024053573608,
-0.796981930732727,
-0.9497103691101074,
0.06641370803117752,
1.0117905139923096,
-0.2432878464460373,
-0.31820541620254517,
-0.5657666325569153,
0.6836682558059692,
... |
func (m *SystemMutation) ResetUpdateTime() {
m.update_time = nil
delete(m.clearedFields, system.FieldUpdateTime)
} | [
-0.21644563972949982,
-0.20235204696655273,
0.20506279170513153,
0.6673656702041626,
-0.25311994552612305,
-0.5062976479530334,
-0.2952195405960083,
0.1275952309370041,
-0.013181522488594055,
0.9519880414009094,
-0.6514682769775391,
-0.4308452606201172,
-0.3451198637485504,
0.1835625022649... |
func (m *SystemMutation) SetName(s string) {
m.name = &s
} | [
-0.5180221199989319,
0.4299994111061096,
0.12320877611637115,
0.9358711242675781,
-0.7596703767776489,
-0.4629327058792114,
0.19301342964172363,
0.32682207226753235,
-0.2570907473564148,
-0.0237434022128582,
-0.761856198310852,
-0.6315912008285522,
-0.2896752655506134,
0.6267744898796082,
... |
func (m *SystemMutation) Name() (r string, exists bool) {
v := m.name
if v == nil {
return
}
return *v, true
} | [
-1.4834258556365967,
0.21899080276489258,
0.5693349242210388,
0.5831817984580994,
-0.44182488322257996,
-1.01291823387146,
0.18703435361385345,
-0.5860339403152466,
-0.04751131311058998,
0.9600368738174438,
-0.771236002445221,
-1.2799676656723022,
-0.5817076563835144,
-0.08689951151609421,... |
func (m *SystemMutation) OldName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldName is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldName requires an ID field in the mutation")
}
oldValue, err := m.oldV... | [
-0.3763086199760437,
-0.11877065151929855,
0.45438000559806824,
0.5800887942314148,
-0.20138834416866302,
-0.11528687924146652,
-0.07881266623735428,
-0.47152185440063477,
0.560242235660553,
0.5419767498970032,
0.6696094274520874,
-0.009996281936764717,
-0.09073632955551147,
0.137653961777... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.