diff --git a/entc/gen/template/client.tmpl b/entc/gen/template/client.tmpl index 577e5e511..b82700e86 100644 --- a/entc/gen/template/client.tmpl +++ b/entc/gen/template/client.tmpl @@ -213,7 +213,7 @@ func (c *{{ $client }}) Delete() *{{ $n.DeleteName }} { return c.DeleteOneID({{ $rec }}.ID) } - // DeleteOne returns a builder for deleting the given entity by its id. + // DeleteOneID returns a builder for deleting the given entity by its id. func (c *{{ $client }}) DeleteOneID(id {{ $n.ID.Type }}) *{{ $n.DeleteOneName }} { builder := c.Delete().Where({{ $n.Package }}.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/cascadelete/ent/client.go b/entc/integration/cascadelete/ent/client.go index 67020473a..c1f0ab397 100644 --- a/entc/integration/cascadelete/ent/client.go +++ b/entc/integration/cascadelete/ent/client.go @@ -197,7 +197,7 @@ func (c *CommentClient) DeleteOne(co *Comment) *CommentDeleteOne { return c.DeleteOneID(co.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CommentClient) DeleteOneID(id int) *CommentDeleteOne { builder := c.Delete().Where(comment.ID(id)) builder.mutation.id = &id @@ -303,7 +303,7 @@ func (c *PostClient) DeleteOne(po *Post) *PostDeleteOne { return c.DeleteOneID(po.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PostClient) DeleteOneID(id int) *PostDeleteOne { builder := c.Delete().Where(post.ID(id)) builder.mutation.id = &id @@ -425,7 +425,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/config/ent/client.go b/entc/integration/config/ent/client.go index ff3212641..7a72877d6 100644 --- a/entc/integration/config/ent/client.go +++ b/entc/integration/config/ent/client.go @@ -182,7 +182,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/customid/ent/client.go b/entc/integration/customid/ent/client.go index a343392af..a992624d8 100644 --- a/entc/integration/customid/ent/client.go +++ b/entc/integration/customid/ent/client.go @@ -299,7 +299,7 @@ func (c *AccountClient) DeleteOne(a *Account) *AccountDeleteOne { return c.DeleteOneID(a.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *AccountClient) DeleteOneID(id sid.ID) *AccountDeleteOne { builder := c.Delete().Where(account.ID(id)) builder.mutation.id = &id @@ -405,7 +405,7 @@ func (c *BlobClient) DeleteOne(b *Blob) *BlobDeleteOne { return c.DeleteOneID(b.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *BlobClient) DeleteOneID(id uuid.UUID) *BlobDeleteOne { builder := c.Delete().Where(blob.ID(id)) builder.mutation.id = &id @@ -616,7 +616,7 @@ func (c *CarClient) DeleteOne(ca *Car) *CarDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CarClient) DeleteOneID(id int) *CarDeleteOne { builder := c.Delete().Where(car.ID(id)) builder.mutation.id = &id @@ -722,7 +722,7 @@ func (c *DeviceClient) DeleteOne(d *Device) *DeviceDeleteOne { return c.DeleteOneID(d.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *DeviceClient) DeleteOneID(id schema.ID) *DeviceDeleteOne { builder := c.Delete().Where(device.ID(id)) builder.mutation.id = &id @@ -844,7 +844,7 @@ func (c *DocClient) DeleteOne(d *Doc) *DocDeleteOne { return c.DeleteOneID(d.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *DocClient) DeleteOneID(id schema.DocID) *DocDeleteOne { builder := c.Delete().Where(doc.ID(id)) builder.mutation.id = &id @@ -982,7 +982,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -1088,7 +1088,7 @@ func (c *IntSIDClient) DeleteOne(is *IntSID) *IntSIDDeleteOne { return c.DeleteOneID(is.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *IntSIDClient) DeleteOneID(id sid.ID) *IntSIDDeleteOne { builder := c.Delete().Where(intsid.ID(id)) builder.mutation.id = &id @@ -1210,7 +1210,7 @@ func (c *LinkClient) DeleteOne(l *Link) *LinkDeleteOne { return c.DeleteOneID(l.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *LinkClient) DeleteOneID(id uuidc.UUIDC) *LinkDeleteOne { builder := c.Delete().Where(link.ID(id)) builder.mutation.id = &id @@ -1300,7 +1300,7 @@ func (c *MixinIDClient) DeleteOne(mi *MixinID) *MixinIDDeleteOne { return c.DeleteOneID(mi.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *MixinIDClient) DeleteOneID(id uuid.UUID) *MixinIDDeleteOne { builder := c.Delete().Where(mixinid.ID(id)) builder.mutation.id = &id @@ -1390,7 +1390,7 @@ func (c *NoteClient) DeleteOne(n *Note) *NoteDeleteOne { return c.DeleteOneID(n.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *NoteClient) DeleteOneID(id schema.NoteID) *NoteDeleteOne { builder := c.Delete().Where(note.ID(id)) builder.mutation.id = &id @@ -1512,7 +1512,7 @@ func (c *OtherClient) DeleteOne(o *Other) *OtherDeleteOne { return c.DeleteOneID(o.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *OtherClient) DeleteOneID(id sid.ID) *OtherDeleteOne { builder := c.Delete().Where(other.ID(id)) builder.mutation.id = &id @@ -1602,7 +1602,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id string) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -1756,7 +1756,7 @@ func (c *RevisionClient) DeleteOne(r *Revision) *RevisionDeleteOne { return c.DeleteOneID(r.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *RevisionClient) DeleteOneID(id string) *RevisionDeleteOne { builder := c.Delete().Where(revision.ID(id)) builder.mutation.id = &id @@ -1846,7 +1846,7 @@ func (c *SessionClient) DeleteOne(s *Session) *SessionDeleteOne { return c.DeleteOneID(s.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *SessionClient) DeleteOneID(id schema.ID) *SessionDeleteOne { builder := c.Delete().Where(session.ID(id)) builder.mutation.id = &id @@ -1952,7 +1952,7 @@ func (c *TokenClient) DeleteOne(t *Token) *TokenDeleteOne { return c.DeleteOneID(t.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TokenClient) DeleteOneID(id sid.ID) *TokenDeleteOne { builder := c.Delete().Where(token.ID(id)) builder.mutation.id = &id @@ -2058,7 +2058,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/edgefield/ent/client.go b/entc/integration/edgefield/ent/client.go index d34cb7b22..862b01163 100644 --- a/entc/integration/edgefield/ent/client.go +++ b/entc/integration/edgefield/ent/client.go @@ -240,7 +240,7 @@ func (c *CarClient) DeleteOne(ca *Car) *CarDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CarClient) DeleteOneID(id uuid.UUID) *CarDeleteOne { builder := c.Delete().Where(car.ID(id)) builder.mutation.id = &id @@ -346,7 +346,7 @@ func (c *CardClient) DeleteOne(ca *Card) *CardDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CardClient) DeleteOneID(id int) *CardDeleteOne { builder := c.Delete().Where(card.ID(id)) builder.mutation.id = &id @@ -452,7 +452,7 @@ func (c *InfoClient) DeleteOne(i *Info) *InfoDeleteOne { return c.DeleteOneID(i.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *InfoClient) DeleteOneID(id int) *InfoDeleteOne { builder := c.Delete().Where(info.ID(id)) builder.mutation.id = &id @@ -558,7 +558,7 @@ func (c *MetadataClient) DeleteOne(m *Metadata) *MetadataDeleteOne { return c.DeleteOneID(m.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *MetadataClient) DeleteOneID(id int) *MetadataDeleteOne { builder := c.Delete().Where(metadata.ID(id)) builder.mutation.id = &id @@ -696,7 +696,7 @@ func (c *NodeClient) DeleteOne(n *Node) *NodeDeleteOne { return c.DeleteOneID(n.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *NodeClient) DeleteOneID(id int) *NodeDeleteOne { builder := c.Delete().Where(node.ID(id)) builder.mutation.id = &id @@ -818,7 +818,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id int) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -924,7 +924,7 @@ func (c *PostClient) DeleteOne(po *Post) *PostDeleteOne { return c.DeleteOneID(po.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PostClient) DeleteOneID(id int) *PostDeleteOne { builder := c.Delete().Where(post.ID(id)) builder.mutation.id = &id @@ -1030,7 +1030,7 @@ func (c *RentalClient) DeleteOne(r *Rental) *RentalDeleteOne { return c.DeleteOneID(r.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *RentalClient) DeleteOneID(id int) *RentalDeleteOne { builder := c.Delete().Where(rental.ID(id)) builder.mutation.id = &id @@ -1152,7 +1152,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/edgeschema/ent/client.go b/entc/integration/edgeschema/ent/client.go index eb4f20a63..e9dbef1cf 100644 --- a/entc/integration/edgeschema/ent/client.go +++ b/entc/integration/edgeschema/ent/client.go @@ -268,7 +268,7 @@ func (c *FriendshipClient) DeleteOne(f *Friendship) *FriendshipDeleteOne { return c.DeleteOneID(f.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *FriendshipClient) DeleteOneID(id int) *FriendshipDeleteOne { builder := c.Delete().Where(friendship.ID(id)) builder.mutation.id = &id @@ -390,7 +390,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -592,7 +592,7 @@ func (c *RelationshipInfoClient) DeleteOne(ri *RelationshipInfo) *RelationshipIn return c.DeleteOneID(ri.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *RelationshipInfoClient) DeleteOneID(id int) *RelationshipInfoDeleteOne { builder := c.Delete().Where(relationshipinfo.ID(id)) builder.mutation.id = &id @@ -682,7 +682,7 @@ func (c *RoleClient) DeleteOne(r *Role) *RoleDeleteOne { return c.DeleteOneID(r.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *RoleClient) DeleteOneID(id int) *RoleDeleteOne { builder := c.Delete().Where(role.ID(id)) builder.mutation.id = &id @@ -877,7 +877,7 @@ func (c *TagClient) DeleteOne(t *Tag) *TagDeleteOne { return c.DeleteOneID(t.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TagClient) DeleteOneID(id int) *TagDeleteOne { builder := c.Delete().Where(tag.ID(id)) builder.mutation.id = &id @@ -999,7 +999,7 @@ func (c *TweetClient) DeleteOne(t *Tweet) *TweetDeleteOne { return c.DeleteOneID(t.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TweetClient) DeleteOneID(id int) *TweetDeleteOne { builder := c.Delete().Where(tweet.ID(id)) builder.mutation.id = &id @@ -1259,7 +1259,7 @@ func (c *TweetTagClient) DeleteOne(tt *TweetTag) *TweetTagDeleteOne { return c.DeleteOneID(tt.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TweetTagClient) DeleteOneID(id uuid.UUID) *TweetTagDeleteOne { builder := c.Delete().Where(tweettag.ID(id)) builder.mutation.id = &id @@ -1381,7 +1381,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id @@ -1664,7 +1664,7 @@ func (c *UserGroupClient) DeleteOne(ug *UserGroup) *UserGroupDeleteOne { return c.DeleteOneID(ug.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserGroupClient) DeleteOneID(id int) *UserGroupDeleteOne { builder := c.Delete().Where(usergroup.ID(id)) builder.mutation.id = &id @@ -1786,7 +1786,7 @@ func (c *UserTweetClient) DeleteOne(ut *UserTweet) *UserTweetDeleteOne { return c.DeleteOneID(ut.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserTweetClient) DeleteOneID(id int) *UserTweetDeleteOne { builder := c.Delete().Where(usertweet.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/ent/client.go b/entc/integration/ent/client.go index 0f63081cd..a1858e388 100644 --- a/entc/integration/ent/client.go +++ b/entc/integration/ent/client.go @@ -292,7 +292,7 @@ func (c *CardClient) DeleteOne(ca *Card) *CardDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CardClient) DeleteOneID(id int) *CardDeleteOne { builder := c.Delete().Where(card.ID(id)) builder.mutation.id = &id @@ -414,7 +414,7 @@ func (c *CommentClient) DeleteOne(co *Comment) *CommentDeleteOne { return c.DeleteOneID(co.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CommentClient) DeleteOneID(id int) *CommentDeleteOne { builder := c.Delete().Where(comment.ID(id)) builder.mutation.id = &id @@ -504,7 +504,7 @@ func (c *FieldTypeClient) DeleteOne(ft *FieldType) *FieldTypeDeleteOne { return c.DeleteOneID(ft.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *FieldTypeClient) DeleteOneID(id int) *FieldTypeDeleteOne { builder := c.Delete().Where(fieldtype.ID(id)) builder.mutation.id = &id @@ -594,7 +594,7 @@ func (c *FileClient) DeleteOne(f *File) *FileDeleteOne { return c.DeleteOneID(f.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *FileClient) DeleteOneID(id int) *FileDeleteOne { builder := c.Delete().Where(file.ID(id)) builder.mutation.id = &id @@ -732,7 +732,7 @@ func (c *FileTypeClient) DeleteOne(ft *FileType) *FileTypeDeleteOne { return c.DeleteOneID(ft.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *FileTypeClient) DeleteOneID(id int) *FileTypeDeleteOne { builder := c.Delete().Where(filetype.ID(id)) builder.mutation.id = &id @@ -838,7 +838,7 @@ func (c *GoodsClient) DeleteOne(_go *Goods) *GoodsDeleteOne { return c.DeleteOneID(_go.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GoodsClient) DeleteOneID(id int) *GoodsDeleteOne { builder := c.Delete().Where(goods.ID(id)) builder.mutation.id = &id @@ -928,7 +928,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -1082,7 +1082,7 @@ func (c *GroupInfoClient) DeleteOne(gi *GroupInfo) *GroupInfoDeleteOne { return c.DeleteOneID(gi.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupInfoClient) DeleteOneID(id int) *GroupInfoDeleteOne { builder := c.Delete().Where(groupinfo.ID(id)) builder.mutation.id = &id @@ -1188,7 +1188,7 @@ func (c *ItemClient) DeleteOne(i *Item) *ItemDeleteOne { return c.DeleteOneID(i.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *ItemClient) DeleteOneID(id string) *ItemDeleteOne { builder := c.Delete().Where(item.ID(id)) builder.mutation.id = &id @@ -1278,7 +1278,7 @@ func (c *LicenseClient) DeleteOne(l *License) *LicenseDeleteOne { return c.DeleteOneID(l.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *LicenseClient) DeleteOneID(id int) *LicenseDeleteOne { builder := c.Delete().Where(license.ID(id)) builder.mutation.id = &id @@ -1368,7 +1368,7 @@ func (c *NodeClient) DeleteOne(n *Node) *NodeDeleteOne { return c.DeleteOneID(n.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *NodeClient) DeleteOneID(id int) *NodeDeleteOne { builder := c.Delete().Where(node.ID(id)) builder.mutation.id = &id @@ -1490,7 +1490,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id int) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -1612,7 +1612,7 @@ func (c *SpecClient) DeleteOne(s *Spec) *SpecDeleteOne { return c.DeleteOneID(s.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *SpecClient) DeleteOneID(id int) *SpecDeleteOne { builder := c.Delete().Where(spec.ID(id)) builder.mutation.id = &id @@ -1718,7 +1718,7 @@ func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne { return c.DeleteOneID(t.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TaskClient) DeleteOneID(id int) *TaskDeleteOne { builder := c.Delete().Where(enttask.ID(id)) builder.mutation.id = &id @@ -1808,7 +1808,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/gremlin/ent/client.go b/entc/integration/gremlin/ent/client.go index 2e4d3a4ca..c568b384d 100644 --- a/entc/integration/gremlin/ent/client.go +++ b/entc/integration/gremlin/ent/client.go @@ -264,7 +264,7 @@ func (c *CardClient) DeleteOne(ca *Card) *CardDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CardClient) DeleteOneID(id string) *CardDeleteOne { builder := c.Delete().Where(card.ID(id)) builder.mutation.id = &id @@ -376,7 +376,7 @@ func (c *CommentClient) DeleteOne(co *Comment) *CommentDeleteOne { return c.DeleteOneID(co.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CommentClient) DeleteOneID(id string) *CommentDeleteOne { builder := c.Delete().Where(comment.ID(id)) builder.mutation.id = &id @@ -466,7 +466,7 @@ func (c *FieldTypeClient) DeleteOne(ft *FieldType) *FieldTypeDeleteOne { return c.DeleteOneID(ft.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *FieldTypeClient) DeleteOneID(id string) *FieldTypeDeleteOne { builder := c.Delete().Where(fieldtype.ID(id)) builder.mutation.id = &id @@ -556,7 +556,7 @@ func (c *FileClient) DeleteOne(f *File) *FileDeleteOne { return c.DeleteOneID(f.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *FileClient) DeleteOneID(id string) *FileDeleteOne { builder := c.Delete().Where(file.ID(id)) builder.mutation.id = &id @@ -679,7 +679,7 @@ func (c *FileTypeClient) DeleteOne(ft *FileType) *FileTypeDeleteOne { return c.DeleteOneID(ft.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *FileTypeClient) DeleteOneID(id string) *FileTypeDeleteOne { builder := c.Delete().Where(filetype.ID(id)) builder.mutation.id = &id @@ -780,7 +780,7 @@ func (c *GoodsClient) DeleteOne(_go *Goods) *GoodsDeleteOne { return c.DeleteOneID(_go.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GoodsClient) DeleteOneID(id string) *GoodsDeleteOne { builder := c.Delete().Where(goods.ID(id)) builder.mutation.id = &id @@ -870,7 +870,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id string) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -1004,7 +1004,7 @@ func (c *GroupInfoClient) DeleteOne(gi *GroupInfo) *GroupInfoDeleteOne { return c.DeleteOneID(gi.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupInfoClient) DeleteOneID(id string) *GroupInfoDeleteOne { builder := c.Delete().Where(groupinfo.ID(id)) builder.mutation.id = &id @@ -1105,7 +1105,7 @@ func (c *ItemClient) DeleteOne(i *Item) *ItemDeleteOne { return c.DeleteOneID(i.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *ItemClient) DeleteOneID(id string) *ItemDeleteOne { builder := c.Delete().Where(item.ID(id)) builder.mutation.id = &id @@ -1195,7 +1195,7 @@ func (c *LicenseClient) DeleteOne(l *License) *LicenseDeleteOne { return c.DeleteOneID(l.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *LicenseClient) DeleteOneID(id int) *LicenseDeleteOne { builder := c.Delete().Where(license.ID(id)) builder.mutation.id = &id @@ -1285,7 +1285,7 @@ func (c *NodeClient) DeleteOne(n *Node) *NodeDeleteOne { return c.DeleteOneID(n.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *NodeClient) DeleteOneID(id string) *NodeDeleteOne { builder := c.Delete().Where(node.ID(id)) builder.mutation.id = &id @@ -1397,7 +1397,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id string) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -1509,7 +1509,7 @@ func (c *SpecClient) DeleteOne(s *Spec) *SpecDeleteOne { return c.DeleteOneID(s.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *SpecClient) DeleteOneID(id string) *SpecDeleteOne { builder := c.Delete().Where(spec.ID(id)) builder.mutation.id = &id @@ -1610,7 +1610,7 @@ func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne { return c.DeleteOneID(t.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TaskClient) DeleteOneID(id string) *TaskDeleteOne { builder := c.Delete().Where(enttask.ID(id)) builder.mutation.id = &id @@ -1700,7 +1700,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id string) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/hooks/ent/client.go b/entc/integration/hooks/ent/client.go index 868b08be2..8a609beef 100644 --- a/entc/integration/hooks/ent/client.go +++ b/entc/integration/hooks/ent/client.go @@ -190,7 +190,7 @@ func (c *CardClient) DeleteOne(ca *Card) *CardDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CardClient) DeleteOneID(id int) *CardDeleteOne { builder := c.Delete().Where(card.ID(id)) builder.mutation.id = &id @@ -297,7 +297,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/idtype/ent/client.go b/entc/integration/idtype/ent/client.go index 7468daf59..899c6604d 100644 --- a/entc/integration/idtype/ent/client.go +++ b/entc/integration/idtype/ent/client.go @@ -183,7 +183,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id uint64) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/json/ent/client.go b/entc/integration/json/ent/client.go index a1c2f7da2..55cc0563c 100644 --- a/entc/integration/json/ent/client.go +++ b/entc/integration/json/ent/client.go @@ -182,7 +182,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/migrate/entv1/client.go b/entc/integration/migrate/entv1/client.go index 78240c121..dad30dd81 100644 --- a/entc/integration/migrate/entv1/client.go +++ b/entc/integration/migrate/entv1/client.go @@ -204,7 +204,7 @@ func (c *CarClient) DeleteOne(ca *Car) *CarDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CarClient) DeleteOneID(id int) *CarDeleteOne { builder := c.Delete().Where(car.ID(id)) builder.mutation.id = &id @@ -310,7 +310,7 @@ func (c *ConversionClient) DeleteOne(co *Conversion) *ConversionDeleteOne { return c.DeleteOneID(co.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *ConversionClient) DeleteOneID(id int) *ConversionDeleteOne { builder := c.Delete().Where(conversion.ID(id)) builder.mutation.id = &id @@ -400,7 +400,7 @@ func (c *CustomTypeClient) DeleteOne(ct *CustomType) *CustomTypeDeleteOne { return c.DeleteOneID(ct.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CustomTypeClient) DeleteOneID(id int) *CustomTypeDeleteOne { builder := c.Delete().Where(customtype.ID(id)) builder.mutation.id = &id @@ -490,7 +490,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/migrate/entv2/client.go b/entc/integration/migrate/entv2/client.go index 241fce88d..8ad720f97 100644 --- a/entc/integration/migrate/entv2/client.go +++ b/entc/integration/migrate/entv2/client.go @@ -232,7 +232,7 @@ func (c *BlogClient) DeleteOne(b *Blog) *BlogDeleteOne { return c.DeleteOneID(b.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *BlogClient) DeleteOneID(id int) *BlogDeleteOne { builder := c.Delete().Where(blog.ID(id)) builder.mutation.id = &id @@ -338,7 +338,7 @@ func (c *CarClient) DeleteOne(ca *Car) *CarDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CarClient) DeleteOneID(id int) *CarDeleteOne { builder := c.Delete().Where(car.ID(id)) builder.mutation.id = &id @@ -444,7 +444,7 @@ func (c *ConversionClient) DeleteOne(co *Conversion) *ConversionDeleteOne { return c.DeleteOneID(co.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *ConversionClient) DeleteOneID(id int) *ConversionDeleteOne { builder := c.Delete().Where(conversion.ID(id)) builder.mutation.id = &id @@ -534,7 +534,7 @@ func (c *CustomTypeClient) DeleteOne(ct *CustomType) *CustomTypeDeleteOne { return c.DeleteOneID(ct.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CustomTypeClient) DeleteOneID(id int) *CustomTypeDeleteOne { builder := c.Delete().Where(customtype.ID(id)) builder.mutation.id = &id @@ -624,7 +624,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -714,7 +714,7 @@ func (c *MediaClient) DeleteOne(m *Media) *MediaDeleteOne { return c.DeleteOneID(m.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *MediaClient) DeleteOneID(id int) *MediaDeleteOne { builder := c.Delete().Where(media.ID(id)) builder.mutation.id = &id @@ -804,7 +804,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id int) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -910,7 +910,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/migrate/versioned/client.go b/entc/integration/migrate/versioned/client.go index dc64e9693..a03bf2508 100644 --- a/entc/integration/migrate/versioned/client.go +++ b/entc/integration/migrate/versioned/client.go @@ -189,7 +189,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -279,7 +279,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/multischema/ent/client.go b/entc/integration/multischema/ent/client.go index a95861a94..848b488fb 100644 --- a/entc/integration/multischema/ent/client.go +++ b/entc/integration/multischema/ent/client.go @@ -197,7 +197,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -306,7 +306,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id int) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -415,7 +415,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/privacy/ent/client.go b/entc/integration/privacy/ent/client.go index 3f8294ea2..d5f63b32d 100644 --- a/entc/integration/privacy/ent/client.go +++ b/entc/integration/privacy/ent/client.go @@ -197,7 +197,7 @@ func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne { return c.DeleteOneID(t.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TaskClient) DeleteOneID(id int) *TaskDeleteOne { builder := c.Delete().Where(task.ID(id)) builder.mutation.id = &id @@ -320,7 +320,7 @@ func (c *TeamClient) DeleteOne(t *Team) *TeamDeleteOne { return c.DeleteOneID(t.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TeamClient) DeleteOneID(id int) *TeamDeleteOne { builder := c.Delete().Where(team.ID(id)) builder.mutation.id = &id @@ -443,7 +443,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/entc/integration/template/ent/client.go b/entc/integration/template/ent/client.go index 1333f611e..e28218033 100644 --- a/entc/integration/template/ent/client.go +++ b/entc/integration/template/ent/client.go @@ -206,7 +206,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -297,7 +297,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id int) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -404,7 +404,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/edgeindex/ent/client.go b/examples/edgeindex/ent/client.go index 5422fe73c..f93038333 100644 --- a/examples/edgeindex/ent/client.go +++ b/examples/edgeindex/ent/client.go @@ -190,7 +190,7 @@ func (c *CityClient) DeleteOne(ci *City) *CityDeleteOne { return c.DeleteOneID(ci.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CityClient) DeleteOneID(id int) *CityDeleteOne { builder := c.Delete().Where(city.ID(id)) builder.mutation.id = &id @@ -296,7 +296,7 @@ func (c *StreetClient) DeleteOne(s *Street) *StreetDeleteOne { return c.DeleteOneID(s.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *StreetClient) DeleteOneID(id int) *StreetDeleteOne { builder := c.Delete().Where(street.ID(id)) builder.mutation.id = &id diff --git a/examples/entcpkg/ent/client.go b/examples/entcpkg/ent/client.go index a48bd1e1d..c3cbedc02 100644 --- a/examples/entcpkg/ent/client.go +++ b/examples/entcpkg/ent/client.go @@ -182,7 +182,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/fs/ent/client.go b/examples/fs/ent/client.go index e1133d750..659062e1b 100644 --- a/examples/fs/ent/client.go +++ b/examples/fs/ent/client.go @@ -183,7 +183,7 @@ func (c *FileClient) DeleteOne(f *File) *FileDeleteOne { return c.DeleteOneID(f.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *FileClient) DeleteOneID(id int) *FileDeleteOne { builder := c.Delete().Where(file.ID(id)) builder.mutation.id = &id diff --git a/examples/m2m2types/ent/client.go b/examples/m2m2types/ent/client.go index 087490a82..040ef96d7 100644 --- a/examples/m2m2types/ent/client.go +++ b/examples/m2m2types/ent/client.go @@ -190,7 +190,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -296,7 +296,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/m2mbidi/ent/client.go b/examples/m2mbidi/ent/client.go index 8526e92eb..d523e8c9c 100644 --- a/examples/m2mbidi/ent/client.go +++ b/examples/m2mbidi/ent/client.go @@ -183,7 +183,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/m2mrecur/ent/client.go b/examples/m2mrecur/ent/client.go index 566c96a19..1020e4f1e 100644 --- a/examples/m2mrecur/ent/client.go +++ b/examples/m2mrecur/ent/client.go @@ -183,7 +183,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/migration/ent/client.go b/examples/migration/ent/client.go index 0fc887242..3de4ffeca 100644 --- a/examples/migration/ent/client.go +++ b/examples/migration/ent/client.go @@ -182,7 +182,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/o2m2types/ent/client.go b/examples/o2m2types/ent/client.go index 5b202bb12..ed099aeeb 100644 --- a/examples/o2m2types/ent/client.go +++ b/examples/o2m2types/ent/client.go @@ -190,7 +190,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id int) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -296,7 +296,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/o2mrecur/ent/client.go b/examples/o2mrecur/ent/client.go index 2ba96c6f6..6e02c6ac1 100644 --- a/examples/o2mrecur/ent/client.go +++ b/examples/o2mrecur/ent/client.go @@ -183,7 +183,7 @@ func (c *NodeClient) DeleteOne(n *Node) *NodeDeleteOne { return c.DeleteOneID(n.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *NodeClient) DeleteOneID(id int) *NodeDeleteOne { builder := c.Delete().Where(node.ID(id)) builder.mutation.id = &id diff --git a/examples/o2o2types/ent/client.go b/examples/o2o2types/ent/client.go index a90c7c019..aeb1d4afb 100644 --- a/examples/o2o2types/ent/client.go +++ b/examples/o2o2types/ent/client.go @@ -190,7 +190,7 @@ func (c *CardClient) DeleteOne(ca *Card) *CardDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CardClient) DeleteOneID(id int) *CardDeleteOne { builder := c.Delete().Where(card.ID(id)) builder.mutation.id = &id @@ -296,7 +296,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/o2obidi/ent/client.go b/examples/o2obidi/ent/client.go index 4f8697b59..72f8e3d6b 100644 --- a/examples/o2obidi/ent/client.go +++ b/examples/o2obidi/ent/client.go @@ -183,7 +183,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/o2orecur/ent/client.go b/examples/o2orecur/ent/client.go index ebc92cd7f..c5c7dab16 100644 --- a/examples/o2orecur/ent/client.go +++ b/examples/o2orecur/ent/client.go @@ -183,7 +183,7 @@ func (c *NodeClient) DeleteOne(n *Node) *NodeDeleteOne { return c.DeleteOneID(n.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *NodeClient) DeleteOneID(id int) *NodeDeleteOne { builder := c.Delete().Where(node.ID(id)) builder.mutation.id = &id diff --git a/examples/privacyadmin/ent/client.go b/examples/privacyadmin/ent/client.go index 1246d9858..2ac5b7cac 100644 --- a/examples/privacyadmin/ent/client.go +++ b/examples/privacyadmin/ent/client.go @@ -182,7 +182,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/privacytenant/ent/client.go b/examples/privacytenant/ent/client.go index bc57dae2c..57a5dec45 100644 --- a/examples/privacytenant/ent/client.go +++ b/examples/privacytenant/ent/client.go @@ -197,7 +197,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -320,7 +320,7 @@ func (c *TenantClient) DeleteOne(t *Tenant) *TenantDeleteOne { return c.DeleteOneID(t.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *TenantClient) DeleteOneID(id int) *TenantDeleteOne { builder := c.Delete().Where(tenant.ID(id)) builder.mutation.id = &id @@ -411,7 +411,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/start/ent/client.go b/examples/start/ent/client.go index 0367f7378..c0d3324e1 100644 --- a/examples/start/ent/client.go +++ b/examples/start/ent/client.go @@ -197,7 +197,7 @@ func (c *CarClient) DeleteOne(ca *Car) *CarDeleteOne { return c.DeleteOneID(ca.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *CarClient) DeleteOneID(id int) *CarDeleteOne { builder := c.Delete().Where(car.ID(id)) builder.mutation.id = &id @@ -303,7 +303,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -409,7 +409,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/traversal/ent/client.go b/examples/traversal/ent/client.go index e13ad4138..80a821e73 100644 --- a/examples/traversal/ent/client.go +++ b/examples/traversal/ent/client.go @@ -197,7 +197,7 @@ func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { return c.DeleteOneID(gr.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne { builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id @@ -319,7 +319,7 @@ func (c *PetClient) DeleteOne(pe *Pet) *PetDeleteOne { return c.DeleteOneID(pe.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *PetClient) DeleteOneID(id int) *PetDeleteOne { builder := c.Delete().Where(pet.ID(id)) builder.mutation.id = &id @@ -441,7 +441,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id diff --git a/examples/version/ent/client.go b/examples/version/ent/client.go index c20647b51..762a84c6d 100644 --- a/examples/version/ent/client.go +++ b/examples/version/ent/client.go @@ -182,7 +182,7 @@ func (c *UserClient) DeleteOne(u *User) *UserDeleteOne { return c.DeleteOneID(u.ID) } -// DeleteOne returns a builder for deleting the given entity by its id. +// DeleteOneID returns a builder for deleting the given entity by its id. func (c *UserClient) DeleteOneID(id int) *UserDeleteOne { builder := c.Delete().Where(user.ID(id)) builder.mutation.id = &id