From cb2f75932fd26638f793248fbd811c884c02fc51 Mon Sep 17 00:00:00 2001 From: Ariel Mashraki <7413593+a8m@users.noreply.github.com> Date: Wed, 1 Feb 2023 11:43:17 +0200 Subject: [PATCH] entc/gen: change typo from Use to Intercept (#3290) --- entc/gen/template/client.tmpl | 2 +- entc/integration/cascadelete/ent/client.go | 6 ++-- entc/integration/config/ent/client.go | 2 +- entc/integration/customid/ent/client.go | 34 ++++++++++---------- entc/integration/edgefield/ent/client.go | 18 +++++------ entc/integration/edgeschema/ent/client.go | 28 ++++++++-------- entc/integration/ent/client.go | 32 +++++++++--------- entc/integration/gremlin/ent/client.go | 32 +++++++++--------- entc/integration/hooks/ent/client.go | 6 ++-- entc/integration/idtype/ent/client.go | 2 +- entc/integration/json/ent/client.go | 2 +- entc/integration/migrate/entv1/client.go | 8 ++--- entc/integration/migrate/entv2/client.go | 18 +++++------ entc/integration/migrate/versioned/client.go | 4 +-- entc/integration/multischema/ent/client.go | 8 ++--- entc/integration/privacy/ent/client.go | 6 ++-- entc/integration/template/ent/client.go | 6 ++-- examples/edgeindex/ent/client.go | 4 +-- examples/encryptfield/ent/client.go | 2 +- examples/entcpkg/ent/client.go | 2 +- examples/fs/ent/client.go | 2 +- examples/jsonencode/ent/client.go | 6 ++-- examples/m2m2types/ent/client.go | 4 +-- examples/m2mbidi/ent/client.go | 2 +- examples/m2mrecur/ent/client.go | 2 +- examples/migration/ent/client.go | 6 ++-- examples/o2m2types/ent/client.go | 4 +-- examples/o2mrecur/ent/client.go | 2 +- examples/o2o2types/ent/client.go | 4 +-- examples/o2obidi/ent/client.go | 2 +- examples/o2orecur/ent/client.go | 2 +- examples/privacyadmin/ent/client.go | 2 +- examples/privacytenant/ent/client.go | 6 ++-- examples/start/ent/client.go | 6 ++-- examples/traversal/ent/client.go | 6 ++-- examples/version/ent/client.go | 2 +- 36 files changed, 140 insertions(+), 140 deletions(-) diff --git a/entc/gen/template/client.tmpl b/entc/gen/template/client.tmpl index 56f2f1670..03647675e 100644 --- a/entc/gen/template/client.tmpl +++ b/entc/gen/template/client.tmpl @@ -184,7 +184,7 @@ func (c *{{ $client }}) Use(hooks ...Hook) { c.hooks.{{ $n.Name }} = append(c.hooks.{{ $n.Name }}, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `{{ $n.Package }}.Intercept(f(g(h())))`. func (c *{{ $client }}) Intercept(interceptors ...Interceptor) { c.inters.{{ $n.Name }} = append(c.inters.{{ $n.Name }}, interceptors...) diff --git a/entc/integration/cascadelete/ent/client.go b/entc/integration/cascadelete/ent/client.go index 5b76495c5..7f2c3a6d6 100644 --- a/entc/integration/cascadelete/ent/client.go +++ b/entc/integration/cascadelete/ent/client.go @@ -179,7 +179,7 @@ func (c *CommentClient) Use(hooks ...Hook) { c.hooks.Comment = append(c.hooks.Comment, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `comment.Intercept(f(g(h())))`. func (c *CommentClient) Intercept(interceptors ...Interceptor) { c.inters.Comment = append(c.inters.Comment, interceptors...) @@ -313,7 +313,7 @@ func (c *PostClient) Use(hooks ...Hook) { c.hooks.Post = append(c.hooks.Post, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `post.Intercept(f(g(h())))`. func (c *PostClient) Intercept(interceptors ...Interceptor) { c.inters.Post = append(c.inters.Post, interceptors...) @@ -463,7 +463,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/config/ent/client.go b/entc/integration/config/ent/client.go index a1f1fefc0..d40d6441a 100644 --- a/entc/integration/config/ent/client.go +++ b/entc/integration/config/ent/client.go @@ -158,7 +158,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/customid/ent/client.go b/entc/integration/customid/ent/client.go index d0d3e4826..c1954c601 100644 --- a/entc/integration/customid/ent/client.go +++ b/entc/integration/customid/ent/client.go @@ -323,7 +323,7 @@ func (c *AccountClient) Use(hooks ...Hook) { c.hooks.Account = append(c.hooks.Account, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `account.Intercept(f(g(h())))`. func (c *AccountClient) Intercept(interceptors ...Interceptor) { c.inters.Account = append(c.inters.Account, interceptors...) @@ -457,7 +457,7 @@ func (c *BlobClient) Use(hooks ...Hook) { c.hooks.Blob = append(c.hooks.Blob, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `blob.Intercept(f(g(h())))`. func (c *BlobClient) Intercept(interceptors ...Interceptor) { c.inters.Blob = append(c.inters.Blob, interceptors...) @@ -623,7 +623,7 @@ func (c *BlobLinkClient) Use(hooks ...Hook) { c.hooks.BlobLink = append(c.hooks.BlobLink, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `bloblink.Intercept(f(g(h())))`. func (c *BlobLinkClient) Intercept(interceptors ...Interceptor) { c.inters.BlobLink = append(c.inters.BlobLink, interceptors...) @@ -724,7 +724,7 @@ func (c *CarClient) Use(hooks ...Hook) { c.hooks.Car = append(c.hooks.Car, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `car.Intercept(f(g(h())))`. func (c *CarClient) Intercept(interceptors ...Interceptor) { c.inters.Car = append(c.inters.Car, interceptors...) @@ -858,7 +858,7 @@ func (c *DeviceClient) Use(hooks ...Hook) { c.hooks.Device = append(c.hooks.Device, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `device.Intercept(f(g(h())))`. func (c *DeviceClient) Intercept(interceptors ...Interceptor) { c.inters.Device = append(c.inters.Device, interceptors...) @@ -1008,7 +1008,7 @@ func (c *DocClient) Use(hooks ...Hook) { c.hooks.Doc = append(c.hooks.Doc, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `doc.Intercept(f(g(h())))`. func (c *DocClient) Intercept(interceptors ...Interceptor) { c.inters.Doc = append(c.inters.Doc, interceptors...) @@ -1174,7 +1174,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -1308,7 +1308,7 @@ func (c *IntSIDClient) Use(hooks ...Hook) { c.hooks.IntSID = append(c.hooks.IntSID, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `intsid.Intercept(f(g(h())))`. func (c *IntSIDClient) Intercept(interceptors ...Interceptor) { c.inters.IntSID = append(c.inters.IntSID, interceptors...) @@ -1458,7 +1458,7 @@ func (c *LinkClient) Use(hooks ...Hook) { c.hooks.Link = append(c.hooks.Link, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `link.Intercept(f(g(h())))`. func (c *LinkClient) Intercept(interceptors ...Interceptor) { c.inters.Link = append(c.inters.Link, interceptors...) @@ -1576,7 +1576,7 @@ func (c *MixinIDClient) Use(hooks ...Hook) { c.hooks.MixinID = append(c.hooks.MixinID, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `mixinid.Intercept(f(g(h())))`. func (c *MixinIDClient) Intercept(interceptors ...Interceptor) { c.inters.MixinID = append(c.inters.MixinID, interceptors...) @@ -1694,7 +1694,7 @@ func (c *NoteClient) Use(hooks ...Hook) { c.hooks.Note = append(c.hooks.Note, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `note.Intercept(f(g(h())))`. func (c *NoteClient) Intercept(interceptors ...Interceptor) { c.inters.Note = append(c.inters.Note, interceptors...) @@ -1844,7 +1844,7 @@ func (c *OtherClient) Use(hooks ...Hook) { c.hooks.Other = append(c.hooks.Other, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `other.Intercept(f(g(h())))`. func (c *OtherClient) Intercept(interceptors ...Interceptor) { c.inters.Other = append(c.inters.Other, interceptors...) @@ -1962,7 +1962,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -2144,7 +2144,7 @@ func (c *RevisionClient) Use(hooks ...Hook) { c.hooks.Revision = append(c.hooks.Revision, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `revision.Intercept(f(g(h())))`. func (c *RevisionClient) Intercept(interceptors ...Interceptor) { c.inters.Revision = append(c.inters.Revision, interceptors...) @@ -2262,7 +2262,7 @@ func (c *SessionClient) Use(hooks ...Hook) { c.hooks.Session = append(c.hooks.Session, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `session.Intercept(f(g(h())))`. func (c *SessionClient) Intercept(interceptors ...Interceptor) { c.inters.Session = append(c.inters.Session, interceptors...) @@ -2396,7 +2396,7 @@ func (c *TokenClient) Use(hooks ...Hook) { c.hooks.Token = append(c.hooks.Token, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `token.Intercept(f(g(h())))`. func (c *TokenClient) Intercept(interceptors ...Interceptor) { c.inters.Token = append(c.inters.Token, interceptors...) @@ -2530,7 +2530,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/edgefield/ent/client.go b/entc/integration/edgefield/ent/client.go index 81d0ed7e9..5d3241a7c 100644 --- a/entc/integration/edgefield/ent/client.go +++ b/entc/integration/edgefield/ent/client.go @@ -240,7 +240,7 @@ func (c *CarClient) Use(hooks ...Hook) { c.hooks.Car = append(c.hooks.Car, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `car.Intercept(f(g(h())))`. func (c *CarClient) Intercept(interceptors ...Interceptor) { c.inters.Car = append(c.inters.Car, interceptors...) @@ -374,7 +374,7 @@ func (c *CardClient) Use(hooks ...Hook) { c.hooks.Card = append(c.hooks.Card, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `card.Intercept(f(g(h())))`. func (c *CardClient) Intercept(interceptors ...Interceptor) { c.inters.Card = append(c.inters.Card, interceptors...) @@ -508,7 +508,7 @@ func (c *InfoClient) Use(hooks ...Hook) { c.hooks.Info = append(c.hooks.Info, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `info.Intercept(f(g(h())))`. func (c *InfoClient) Intercept(interceptors ...Interceptor) { c.inters.Info = append(c.inters.Info, interceptors...) @@ -642,7 +642,7 @@ func (c *MetadataClient) Use(hooks ...Hook) { c.hooks.Metadata = append(c.hooks.Metadata, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `metadata.Intercept(f(g(h())))`. func (c *MetadataClient) Intercept(interceptors ...Interceptor) { c.inters.Metadata = append(c.inters.Metadata, interceptors...) @@ -808,7 +808,7 @@ func (c *NodeClient) Use(hooks ...Hook) { c.hooks.Node = append(c.hooks.Node, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `node.Intercept(f(g(h())))`. func (c *NodeClient) Intercept(interceptors ...Interceptor) { c.inters.Node = append(c.inters.Node, interceptors...) @@ -958,7 +958,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -1092,7 +1092,7 @@ func (c *PostClient) Use(hooks ...Hook) { c.hooks.Post = append(c.hooks.Post, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `post.Intercept(f(g(h())))`. func (c *PostClient) Intercept(interceptors ...Interceptor) { c.inters.Post = append(c.inters.Post, interceptors...) @@ -1226,7 +1226,7 @@ func (c *RentalClient) Use(hooks ...Hook) { c.hooks.Rental = append(c.hooks.Rental, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `rental.Intercept(f(g(h())))`. func (c *RentalClient) Intercept(interceptors ...Interceptor) { c.inters.Rental = append(c.inters.Rental, interceptors...) @@ -1376,7 +1376,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/edgeschema/ent/client.go b/entc/integration/edgeschema/ent/client.go index 89b97c857..97dc4728c 100644 --- a/entc/integration/edgeschema/ent/client.go +++ b/entc/integration/edgeschema/ent/client.go @@ -290,7 +290,7 @@ func (c *FriendshipClient) Use(hooks ...Hook) { c.hooks.Friendship = append(c.hooks.Friendship, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `friendship.Intercept(f(g(h())))`. func (c *FriendshipClient) Intercept(interceptors ...Interceptor) { c.inters.Friendship = append(c.inters.Friendship, interceptors...) @@ -440,7 +440,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -622,7 +622,7 @@ func (c *GroupTagClient) Use(hooks ...Hook) { c.hooks.GroupTag = append(c.hooks.GroupTag, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `grouptag.Intercept(f(g(h())))`. func (c *GroupTagClient) Intercept(interceptors ...Interceptor) { c.inters.GroupTag = append(c.inters.GroupTag, interceptors...) @@ -772,7 +772,7 @@ func (c *RelationshipClient) Use(hooks ...Hook) { c.hooks.Relationship = append(c.hooks.Relationship, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `relationship.Intercept(f(g(h())))`. func (c *RelationshipClient) Intercept(interceptors ...Interceptor) { c.inters.Relationship = append(c.inters.Relationship, interceptors...) @@ -881,7 +881,7 @@ func (c *RelationshipInfoClient) Use(hooks ...Hook) { c.hooks.RelationshipInfo = append(c.hooks.RelationshipInfo, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `relationshipinfo.Intercept(f(g(h())))`. func (c *RelationshipInfoClient) Intercept(interceptors ...Interceptor) { c.inters.RelationshipInfo = append(c.inters.RelationshipInfo, interceptors...) @@ -999,7 +999,7 @@ func (c *RoleClient) Use(hooks ...Hook) { c.hooks.Role = append(c.hooks.Role, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `role.Intercept(f(g(h())))`. func (c *RoleClient) Intercept(interceptors ...Interceptor) { c.inters.Role = append(c.inters.Role, interceptors...) @@ -1149,7 +1149,7 @@ func (c *RoleUserClient) Use(hooks ...Hook) { c.hooks.RoleUser = append(c.hooks.RoleUser, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `roleuser.Intercept(f(g(h())))`. func (c *RoleUserClient) Intercept(interceptors ...Interceptor) { c.inters.RoleUser = append(c.inters.RoleUser, interceptors...) @@ -1250,7 +1250,7 @@ func (c *TagClient) Use(hooks ...Hook) { c.hooks.Tag = append(c.hooks.Tag, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `tag.Intercept(f(g(h())))`. func (c *TagClient) Intercept(interceptors ...Interceptor) { c.inters.Tag = append(c.inters.Tag, interceptors...) @@ -1432,7 +1432,7 @@ func (c *TweetClient) Use(hooks ...Hook) { c.hooks.Tweet = append(c.hooks.Tweet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `tweet.Intercept(f(g(h())))`. func (c *TweetClient) Intercept(interceptors ...Interceptor) { c.inters.Tweet = append(c.inters.Tweet, interceptors...) @@ -1646,7 +1646,7 @@ func (c *TweetLikeClient) Use(hooks ...Hook) { c.hooks.TweetLike = append(c.hooks.TweetLike, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `tweetlike.Intercept(f(g(h())))`. func (c *TweetLikeClient) Intercept(interceptors ...Interceptor) { c.inters.TweetLike = append(c.inters.TweetLike, interceptors...) @@ -1748,7 +1748,7 @@ func (c *TweetTagClient) Use(hooks ...Hook) { c.hooks.TweetTag = append(c.hooks.TweetTag, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `tweettag.Intercept(f(g(h())))`. func (c *TweetTagClient) Intercept(interceptors ...Interceptor) { c.inters.TweetTag = append(c.inters.TweetTag, interceptors...) @@ -1898,7 +1898,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) @@ -2209,7 +2209,7 @@ func (c *UserGroupClient) Use(hooks ...Hook) { c.hooks.UserGroup = append(c.hooks.UserGroup, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `usergroup.Intercept(f(g(h())))`. func (c *UserGroupClient) Intercept(interceptors ...Interceptor) { c.inters.UserGroup = append(c.inters.UserGroup, interceptors...) @@ -2359,7 +2359,7 @@ func (c *UserTweetClient) Use(hooks ...Hook) { c.hooks.UserTweet = append(c.hooks.UserTweet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `usertweet.Intercept(f(g(h())))`. func (c *UserTweetClient) Intercept(interceptors ...Interceptor) { c.inters.UserTweet = append(c.inters.UserTweet, interceptors...) diff --git a/entc/integration/ent/client.go b/entc/integration/ent/client.go index 311316a1c..2fbd9eca4 100644 --- a/entc/integration/ent/client.go +++ b/entc/integration/ent/client.go @@ -320,7 +320,7 @@ func (c *APIClient) Use(hooks ...Hook) { c.hooks.Api = append(c.hooks.Api, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `api.Intercept(f(g(h())))`. func (c *APIClient) Intercept(interceptors ...Interceptor) { c.inters.Api = append(c.inters.Api, interceptors...) @@ -438,7 +438,7 @@ func (c *CardClient) Use(hooks ...Hook) { c.hooks.Card = append(c.hooks.Card, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `card.Intercept(f(g(h())))`. func (c *CardClient) Intercept(interceptors ...Interceptor) { c.inters.Card = append(c.inters.Card, interceptors...) @@ -588,7 +588,7 @@ func (c *CommentClient) Use(hooks ...Hook) { c.hooks.Comment = append(c.hooks.Comment, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `comment.Intercept(f(g(h())))`. func (c *CommentClient) Intercept(interceptors ...Interceptor) { c.inters.Comment = append(c.inters.Comment, interceptors...) @@ -706,7 +706,7 @@ func (c *FieldTypeClient) Use(hooks ...Hook) { c.hooks.FieldType = append(c.hooks.FieldType, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `fieldtype.Intercept(f(g(h())))`. func (c *FieldTypeClient) Intercept(interceptors ...Interceptor) { c.inters.FieldType = append(c.inters.FieldType, interceptors...) @@ -824,7 +824,7 @@ func (c *FileClient) Use(hooks ...Hook) { c.hooks.File = append(c.hooks.File, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `file.Intercept(f(g(h())))`. func (c *FileClient) Intercept(interceptors ...Interceptor) { c.inters.File = append(c.inters.File, interceptors...) @@ -990,7 +990,7 @@ func (c *FileTypeClient) Use(hooks ...Hook) { c.hooks.FileType = append(c.hooks.FileType, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `filetype.Intercept(f(g(h())))`. func (c *FileTypeClient) Intercept(interceptors ...Interceptor) { c.inters.FileType = append(c.inters.FileType, interceptors...) @@ -1124,7 +1124,7 @@ func (c *GoodsClient) Use(hooks ...Hook) { c.hooks.Goods = append(c.hooks.Goods, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `goods.Intercept(f(g(h())))`. func (c *GoodsClient) Intercept(interceptors ...Interceptor) { c.inters.Goods = append(c.inters.Goods, interceptors...) @@ -1242,7 +1242,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -1424,7 +1424,7 @@ func (c *GroupInfoClient) Use(hooks ...Hook) { c.hooks.GroupInfo = append(c.hooks.GroupInfo, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `groupinfo.Intercept(f(g(h())))`. func (c *GroupInfoClient) Intercept(interceptors ...Interceptor) { c.inters.GroupInfo = append(c.inters.GroupInfo, interceptors...) @@ -1558,7 +1558,7 @@ func (c *ItemClient) Use(hooks ...Hook) { c.hooks.Item = append(c.hooks.Item, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `item.Intercept(f(g(h())))`. func (c *ItemClient) Intercept(interceptors ...Interceptor) { c.inters.Item = append(c.inters.Item, interceptors...) @@ -1676,7 +1676,7 @@ func (c *LicenseClient) Use(hooks ...Hook) { c.hooks.License = append(c.hooks.License, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `license.Intercept(f(g(h())))`. func (c *LicenseClient) Intercept(interceptors ...Interceptor) { c.inters.License = append(c.inters.License, interceptors...) @@ -1794,7 +1794,7 @@ func (c *NodeClient) Use(hooks ...Hook) { c.hooks.Node = append(c.hooks.Node, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `node.Intercept(f(g(h())))`. func (c *NodeClient) Intercept(interceptors ...Interceptor) { c.inters.Node = append(c.inters.Node, interceptors...) @@ -1944,7 +1944,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -2094,7 +2094,7 @@ func (c *SpecClient) Use(hooks ...Hook) { c.hooks.Spec = append(c.hooks.Spec, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `spec.Intercept(f(g(h())))`. func (c *SpecClient) Intercept(interceptors ...Interceptor) { c.inters.Spec = append(c.inters.Spec, interceptors...) @@ -2228,7 +2228,7 @@ func (c *TaskClient) Use(hooks ...Hook) { c.hooks.Task = append(c.hooks.Task, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `enttask.Intercept(f(g(h())))`. func (c *TaskClient) Intercept(interceptors ...Interceptor) { c.inters.Task = append(c.inters.Task, interceptors...) @@ -2346,7 +2346,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/gremlin/ent/client.go b/entc/integration/gremlin/ent/client.go index e28f78628..bc6098c09 100644 --- a/entc/integration/gremlin/ent/client.go +++ b/entc/integration/gremlin/ent/client.go @@ -291,7 +291,7 @@ func (c *APIClient) Use(hooks ...Hook) { c.hooks.Api = append(c.hooks.Api, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `api.Intercept(f(g(h())))`. func (c *APIClient) Intercept(interceptors ...Interceptor) { c.inters.Api = append(c.inters.Api, interceptors...) @@ -409,7 +409,7 @@ func (c *CardClient) Use(hooks ...Hook) { c.hooks.Card = append(c.hooks.Card, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `card.Intercept(f(g(h())))`. func (c *CardClient) Intercept(interceptors ...Interceptor) { c.inters.Card = append(c.inters.Card, interceptors...) @@ -549,7 +549,7 @@ func (c *CommentClient) Use(hooks ...Hook) { c.hooks.Comment = append(c.hooks.Comment, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `comment.Intercept(f(g(h())))`. func (c *CommentClient) Intercept(interceptors ...Interceptor) { c.inters.Comment = append(c.inters.Comment, interceptors...) @@ -667,7 +667,7 @@ func (c *FieldTypeClient) Use(hooks ...Hook) { c.hooks.FieldType = append(c.hooks.FieldType, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `fieldtype.Intercept(f(g(h())))`. func (c *FieldTypeClient) Intercept(interceptors ...Interceptor) { c.inters.FieldType = append(c.inters.FieldType, interceptors...) @@ -785,7 +785,7 @@ func (c *FileClient) Use(hooks ...Hook) { c.hooks.File = append(c.hooks.File, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `file.Intercept(f(g(h())))`. func (c *FileClient) Intercept(interceptors ...Interceptor) { c.inters.File = append(c.inters.File, interceptors...) @@ -936,7 +936,7 @@ func (c *FileTypeClient) Use(hooks ...Hook) { c.hooks.FileType = append(c.hooks.FileType, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `filetype.Intercept(f(g(h())))`. func (c *FileTypeClient) Intercept(interceptors ...Interceptor) { c.inters.FileType = append(c.inters.FileType, interceptors...) @@ -1065,7 +1065,7 @@ func (c *GoodsClient) Use(hooks ...Hook) { c.hooks.Goods = append(c.hooks.Goods, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `goods.Intercept(f(g(h())))`. func (c *GoodsClient) Intercept(interceptors ...Interceptor) { c.inters.Goods = append(c.inters.Goods, interceptors...) @@ -1183,7 +1183,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -1345,7 +1345,7 @@ func (c *GroupInfoClient) Use(hooks ...Hook) { c.hooks.GroupInfo = append(c.hooks.GroupInfo, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `groupinfo.Intercept(f(g(h())))`. func (c *GroupInfoClient) Intercept(interceptors ...Interceptor) { c.inters.GroupInfo = append(c.inters.GroupInfo, interceptors...) @@ -1474,7 +1474,7 @@ func (c *ItemClient) Use(hooks ...Hook) { c.hooks.Item = append(c.hooks.Item, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `item.Intercept(f(g(h())))`. func (c *ItemClient) Intercept(interceptors ...Interceptor) { c.inters.Item = append(c.inters.Item, interceptors...) @@ -1592,7 +1592,7 @@ func (c *LicenseClient) Use(hooks ...Hook) { c.hooks.License = append(c.hooks.License, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `license.Intercept(f(g(h())))`. func (c *LicenseClient) Intercept(interceptors ...Interceptor) { c.inters.License = append(c.inters.License, interceptors...) @@ -1710,7 +1710,7 @@ func (c *NodeClient) Use(hooks ...Hook) { c.hooks.Node = append(c.hooks.Node, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `node.Intercept(f(g(h())))`. func (c *NodeClient) Intercept(interceptors ...Interceptor) { c.inters.Node = append(c.inters.Node, interceptors...) @@ -1850,7 +1850,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -1990,7 +1990,7 @@ func (c *SpecClient) Use(hooks ...Hook) { c.hooks.Spec = append(c.hooks.Spec, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `spec.Intercept(f(g(h())))`. func (c *SpecClient) Intercept(interceptors ...Interceptor) { c.inters.Spec = append(c.inters.Spec, interceptors...) @@ -2119,7 +2119,7 @@ func (c *TaskClient) Use(hooks ...Hook) { c.hooks.Task = append(c.hooks.Task, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `enttask.Intercept(f(g(h())))`. func (c *TaskClient) Intercept(interceptors ...Interceptor) { c.inters.Task = append(c.inters.Task, interceptors...) @@ -2237,7 +2237,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/hooks/ent/client.go b/entc/integration/hooks/ent/client.go index 1095202aa..ca0cbfd3a 100644 --- a/entc/integration/hooks/ent/client.go +++ b/entc/integration/hooks/ent/client.go @@ -179,7 +179,7 @@ func (c *CardClient) Use(hooks ...Hook) { c.hooks.Card = append(c.hooks.Card, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `card.Intercept(f(g(h())))`. func (c *CardClient) Intercept(interceptors ...Interceptor) { c.inters.Card = append(c.inters.Card, interceptors...) @@ -315,7 +315,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -451,7 +451,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/idtype/ent/client.go b/entc/integration/idtype/ent/client.go index c1955c4ad..b22a3a16f 100644 --- a/entc/integration/idtype/ent/client.go +++ b/entc/integration/idtype/ent/client.go @@ -159,7 +159,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/json/ent/client.go b/entc/integration/json/ent/client.go index a37376aee..303fe3564 100644 --- a/entc/integration/json/ent/client.go +++ b/entc/integration/json/ent/client.go @@ -158,7 +158,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/migrate/entv1/client.go b/entc/integration/migrate/entv1/client.go index 22ee2a9a4..16bd538d6 100644 --- a/entc/integration/migrate/entv1/client.go +++ b/entc/integration/migrate/entv1/client.go @@ -189,7 +189,7 @@ func (c *CarClient) Use(hooks ...Hook) { c.hooks.Car = append(c.hooks.Car, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `car.Intercept(f(g(h())))`. func (c *CarClient) Intercept(interceptors ...Interceptor) { c.inters.Car = append(c.inters.Car, interceptors...) @@ -323,7 +323,7 @@ func (c *ConversionClient) Use(hooks ...Hook) { c.hooks.Conversion = append(c.hooks.Conversion, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `conversion.Intercept(f(g(h())))`. func (c *ConversionClient) Intercept(interceptors ...Interceptor) { c.inters.Conversion = append(c.inters.Conversion, interceptors...) @@ -441,7 +441,7 @@ func (c *CustomTypeClient) Use(hooks ...Hook) { c.hooks.CustomType = append(c.hooks.CustomType, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `customtype.Intercept(f(g(h())))`. func (c *CustomTypeClient) Intercept(interceptors ...Interceptor) { c.inters.CustomType = append(c.inters.CustomType, interceptors...) @@ -559,7 +559,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/migrate/entv2/client.go b/entc/integration/migrate/entv2/client.go index 09508d315..df8ddbc70 100644 --- a/entc/integration/migrate/entv2/client.go +++ b/entc/integration/migrate/entv2/client.go @@ -239,7 +239,7 @@ func (c *BlogClient) Use(hooks ...Hook) { c.hooks.Blog = append(c.hooks.Blog, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `blog.Intercept(f(g(h())))`. func (c *BlogClient) Intercept(interceptors ...Interceptor) { c.inters.Blog = append(c.inters.Blog, interceptors...) @@ -373,7 +373,7 @@ func (c *CarClient) Use(hooks ...Hook) { c.hooks.Car = append(c.hooks.Car, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `car.Intercept(f(g(h())))`. func (c *CarClient) Intercept(interceptors ...Interceptor) { c.inters.Car = append(c.inters.Car, interceptors...) @@ -507,7 +507,7 @@ func (c *ConversionClient) Use(hooks ...Hook) { c.hooks.Conversion = append(c.hooks.Conversion, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `conversion.Intercept(f(g(h())))`. func (c *ConversionClient) Intercept(interceptors ...Interceptor) { c.inters.Conversion = append(c.inters.Conversion, interceptors...) @@ -625,7 +625,7 @@ func (c *CustomTypeClient) Use(hooks ...Hook) { c.hooks.CustomType = append(c.hooks.CustomType, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `customtype.Intercept(f(g(h())))`. func (c *CustomTypeClient) Intercept(interceptors ...Interceptor) { c.inters.CustomType = append(c.inters.CustomType, interceptors...) @@ -743,7 +743,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -861,7 +861,7 @@ func (c *MediaClient) Use(hooks ...Hook) { c.hooks.Media = append(c.hooks.Media, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `media.Intercept(f(g(h())))`. func (c *MediaClient) Intercept(interceptors ...Interceptor) { c.inters.Media = append(c.inters.Media, interceptors...) @@ -979,7 +979,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -1113,7 +1113,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) @@ -1279,7 +1279,7 @@ func (c *ZooClient) Use(hooks ...Hook) { c.hooks.Zoo = append(c.hooks.Zoo, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `zoo.Intercept(f(g(h())))`. func (c *ZooClient) Intercept(interceptors ...Interceptor) { c.inters.Zoo = append(c.inters.Zoo, interceptors...) diff --git a/entc/integration/migrate/versioned/client.go b/entc/integration/migrate/versioned/client.go index 10913af7f..2208abba5 100644 --- a/entc/integration/migrate/versioned/client.go +++ b/entc/integration/migrate/versioned/client.go @@ -168,7 +168,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -286,7 +286,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/multischema/ent/client.go b/entc/integration/multischema/ent/client.go index f53d56fcc..e309624d2 100644 --- a/entc/integration/multischema/ent/client.go +++ b/entc/integration/multischema/ent/client.go @@ -189,7 +189,7 @@ func (c *FriendshipClient) Use(hooks ...Hook) { c.hooks.Friendship = append(c.hooks.Friendship, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `friendship.Intercept(f(g(h())))`. func (c *FriendshipClient) Intercept(interceptors ...Interceptor) { c.inters.Friendship = append(c.inters.Friendship, interceptors...) @@ -345,7 +345,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -482,7 +482,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -619,7 +619,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/privacy/ent/client.go b/entc/integration/privacy/ent/client.go index a07be1ffb..40d637cc6 100644 --- a/entc/integration/privacy/ent/client.go +++ b/entc/integration/privacy/ent/client.go @@ -179,7 +179,7 @@ func (c *TaskClient) Use(hooks ...Hook) { c.hooks.Task = append(c.hooks.Task, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `task.Intercept(f(g(h())))`. func (c *TaskClient) Intercept(interceptors ...Interceptor) { c.inters.Task = append(c.inters.Task, interceptors...) @@ -330,7 +330,7 @@ func (c *TeamClient) Use(hooks ...Hook) { c.hooks.Team = append(c.hooks.Team, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `team.Intercept(f(g(h())))`. func (c *TeamClient) Intercept(interceptors ...Interceptor) { c.inters.Team = append(c.inters.Team, interceptors...) @@ -481,7 +481,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/entc/integration/template/ent/client.go b/entc/integration/template/ent/client.go index 94b62790f..47aca182d 100644 --- a/entc/integration/template/ent/client.go +++ b/entc/integration/template/ent/client.go @@ -188,7 +188,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -307,7 +307,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -442,7 +442,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/edgeindex/ent/client.go b/examples/edgeindex/ent/client.go index 31bf57c55..b0a9f9e3e 100644 --- a/examples/edgeindex/ent/client.go +++ b/examples/edgeindex/ent/client.go @@ -169,7 +169,7 @@ func (c *CityClient) Use(hooks ...Hook) { c.hooks.City = append(c.hooks.City, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `city.Intercept(f(g(h())))`. func (c *CityClient) Intercept(interceptors ...Interceptor) { c.inters.City = append(c.inters.City, interceptors...) @@ -303,7 +303,7 @@ func (c *StreetClient) Use(hooks ...Hook) { c.hooks.Street = append(c.hooks.Street, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `street.Intercept(f(g(h())))`. func (c *StreetClient) Intercept(interceptors ...Interceptor) { c.inters.Street = append(c.inters.Street, interceptors...) diff --git a/examples/encryptfield/ent/client.go b/examples/encryptfield/ent/client.go index 1e0ce14b2..148db9de9 100644 --- a/examples/encryptfield/ent/client.go +++ b/examples/encryptfield/ent/client.go @@ -158,7 +158,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/entcpkg/ent/client.go b/examples/entcpkg/ent/client.go index 4adc379d2..cb1d4b6f7 100644 --- a/examples/entcpkg/ent/client.go +++ b/examples/entcpkg/ent/client.go @@ -158,7 +158,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/fs/ent/client.go b/examples/fs/ent/client.go index 9ab994f43..289048822 100644 --- a/examples/fs/ent/client.go +++ b/examples/fs/ent/client.go @@ -159,7 +159,7 @@ func (c *FileClient) Use(hooks ...Hook) { c.hooks.File = append(c.hooks.File, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `file.Intercept(f(g(h())))`. func (c *FileClient) Intercept(interceptors ...Interceptor) { c.inters.File = append(c.inters.File, interceptors...) diff --git a/examples/jsonencode/ent/client.go b/examples/jsonencode/ent/client.go index 94b773bcd..af20e1bd2 100644 --- a/examples/jsonencode/ent/client.go +++ b/examples/jsonencode/ent/client.go @@ -179,7 +179,7 @@ func (c *CardClient) Use(hooks ...Hook) { c.hooks.Card = append(c.hooks.Card, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `card.Intercept(f(g(h())))`. func (c *CardClient) Intercept(interceptors ...Interceptor) { c.inters.Card = append(c.inters.Card, interceptors...) @@ -297,7 +297,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -431,7 +431,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/m2m2types/ent/client.go b/examples/m2m2types/ent/client.go index 9ca8ecb67..32b662601 100644 --- a/examples/m2m2types/ent/client.go +++ b/examples/m2m2types/ent/client.go @@ -169,7 +169,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -303,7 +303,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/m2mbidi/ent/client.go b/examples/m2mbidi/ent/client.go index 3923cbbf0..e437c38e1 100644 --- a/examples/m2mbidi/ent/client.go +++ b/examples/m2mbidi/ent/client.go @@ -159,7 +159,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/m2mrecur/ent/client.go b/examples/m2mrecur/ent/client.go index bda7f4991..186315bc4 100644 --- a/examples/m2mrecur/ent/client.go +++ b/examples/m2mrecur/ent/client.go @@ -159,7 +159,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/migration/ent/client.go b/examples/migration/ent/client.go index 03531d8ff..ebd0ee1a4 100644 --- a/examples/migration/ent/client.go +++ b/examples/migration/ent/client.go @@ -180,7 +180,7 @@ func (c *CardClient) Use(hooks ...Hook) { c.hooks.Card = append(c.hooks.Card, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `card.Intercept(f(g(h())))`. func (c *CardClient) Intercept(interceptors ...Interceptor) { c.inters.Card = append(c.inters.Card, interceptors...) @@ -314,7 +314,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -464,7 +464,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/o2m2types/ent/client.go b/examples/o2m2types/ent/client.go index 933136532..6a5814a74 100644 --- a/examples/o2m2types/ent/client.go +++ b/examples/o2m2types/ent/client.go @@ -169,7 +169,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -303,7 +303,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/o2mrecur/ent/client.go b/examples/o2mrecur/ent/client.go index 46cfb1ac6..dcc4398fe 100644 --- a/examples/o2mrecur/ent/client.go +++ b/examples/o2mrecur/ent/client.go @@ -159,7 +159,7 @@ func (c *NodeClient) Use(hooks ...Hook) { c.hooks.Node = append(c.hooks.Node, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `node.Intercept(f(g(h())))`. func (c *NodeClient) Intercept(interceptors ...Interceptor) { c.inters.Node = append(c.inters.Node, interceptors...) diff --git a/examples/o2o2types/ent/client.go b/examples/o2o2types/ent/client.go index ff0414f16..4068ff7c7 100644 --- a/examples/o2o2types/ent/client.go +++ b/examples/o2o2types/ent/client.go @@ -169,7 +169,7 @@ func (c *CardClient) Use(hooks ...Hook) { c.hooks.Card = append(c.hooks.Card, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `card.Intercept(f(g(h())))`. func (c *CardClient) Intercept(interceptors ...Interceptor) { c.inters.Card = append(c.inters.Card, interceptors...) @@ -303,7 +303,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/o2obidi/ent/client.go b/examples/o2obidi/ent/client.go index d5d54bcd0..3e94bea60 100644 --- a/examples/o2obidi/ent/client.go +++ b/examples/o2obidi/ent/client.go @@ -159,7 +159,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/o2orecur/ent/client.go b/examples/o2orecur/ent/client.go index c2f18f853..c6fda58ee 100644 --- a/examples/o2orecur/ent/client.go +++ b/examples/o2orecur/ent/client.go @@ -159,7 +159,7 @@ func (c *NodeClient) Use(hooks ...Hook) { c.hooks.Node = append(c.hooks.Node, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `node.Intercept(f(g(h())))`. func (c *NodeClient) Intercept(interceptors ...Interceptor) { c.inters.Node = append(c.inters.Node, interceptors...) diff --git a/examples/privacyadmin/ent/client.go b/examples/privacyadmin/ent/client.go index 9b4ac264a..0e0462c72 100644 --- a/examples/privacyadmin/ent/client.go +++ b/examples/privacyadmin/ent/client.go @@ -158,7 +158,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/privacytenant/ent/client.go b/examples/privacytenant/ent/client.go index 407ae6520..fd684da94 100644 --- a/examples/privacytenant/ent/client.go +++ b/examples/privacytenant/ent/client.go @@ -179,7 +179,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -330,7 +330,7 @@ func (c *TenantClient) Use(hooks ...Hook) { c.hooks.Tenant = append(c.hooks.Tenant, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `tenant.Intercept(f(g(h())))`. func (c *TenantClient) Intercept(interceptors ...Interceptor) { c.inters.Tenant = append(c.inters.Tenant, interceptors...) @@ -449,7 +449,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/start/ent/client.go b/examples/start/ent/client.go index c48174641..647757acb 100644 --- a/examples/start/ent/client.go +++ b/examples/start/ent/client.go @@ -179,7 +179,7 @@ func (c *CarClient) Use(hooks ...Hook) { c.hooks.Car = append(c.hooks.Car, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `car.Intercept(f(g(h())))`. func (c *CarClient) Intercept(interceptors ...Interceptor) { c.inters.Car = append(c.inters.Car, interceptors...) @@ -313,7 +313,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -447,7 +447,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/traversal/ent/client.go b/examples/traversal/ent/client.go index 002f59ed1..4a1b95ce9 100644 --- a/examples/traversal/ent/client.go +++ b/examples/traversal/ent/client.go @@ -179,7 +179,7 @@ func (c *GroupClient) Use(hooks ...Hook) { c.hooks.Group = append(c.hooks.Group, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. func (c *GroupClient) Intercept(interceptors ...Interceptor) { c.inters.Group = append(c.inters.Group, interceptors...) @@ -329,7 +329,7 @@ func (c *PetClient) Use(hooks ...Hook) { c.hooks.Pet = append(c.hooks.Pet, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `pet.Intercept(f(g(h())))`. func (c *PetClient) Intercept(interceptors ...Interceptor) { c.inters.Pet = append(c.inters.Pet, interceptors...) @@ -479,7 +479,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...) diff --git a/examples/version/ent/client.go b/examples/version/ent/client.go index 5ecaae363..244aa0d61 100644 --- a/examples/version/ent/client.go +++ b/examples/version/ent/client.go @@ -158,7 +158,7 @@ func (c *UserClient) Use(hooks ...Hook) { c.hooks.User = append(c.hooks.User, hooks...) } -// Use adds a list of query interceptors to the interceptors stack. +// Intercept adds a list of query interceptors to the interceptors stack. // A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`. func (c *UserClient) Intercept(interceptors ...Interceptor) { c.inters.User = append(c.inters.User, interceptors...)