1
0

fix comment system

This commit is contained in:
2024-04-12 01:54:12 +09:00
parent 336827433e
commit b3df3250bb
17 changed files with 4503 additions and 174 deletions

View File

@ -34,10 +34,28 @@ const (
FieldCid = "cid"
// FieldURI holds the string denoting the uri field in the database.
FieldURI = "uri"
// FieldCidRoot holds the string denoting the cid_root field in the database.
FieldCidRoot = "cid_root"
// FieldURIRoot holds the string denoting the uri_root field in the database.
FieldURIRoot = "uri_root"
// FieldRoot holds the string denoting the root field in the database.
FieldRoot = "root"
// FieldRkey holds the string denoting the rkey field in the database.
FieldRkey = "rkey"
// FieldBskyURL holds the string denoting the bsky_url field in the database.
FieldBskyURL = "bsky_url"
// FieldComment holds the string denoting the comment field in the database.
FieldComment = "comment"
// FieldBlog holds the string denoting the blog field in the database.
FieldBlog = "blog"
// FieldBlogURL holds the string denoting the blog_url field in the database.
FieldBlogURL = "blog_url"
// FieldDomain holds the string denoting the domain field in the database.
FieldDomain = "domain"
// FieldHost holds the string denoting the host field in the database.
FieldHost = "host"
// FieldFeed holds the string denoting the feed field in the database.
FieldFeed = "feed"
// FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldUpdatedAt = "updated_at"
// FieldCreatedAt holds the string denoting the created_at field in the database.
@ -68,8 +86,17 @@ var Columns = []string{
FieldAvatar,
FieldCid,
FieldURI,
FieldCidRoot,
FieldURIRoot,
FieldRoot,
FieldRkey,
FieldBskyURL,
FieldComment,
FieldBlog,
FieldBlogURL,
FieldDomain,
FieldHost,
FieldFeed,
FieldUpdatedAt,
FieldCreatedAt,
}
@ -162,6 +189,21 @@ func ByURI(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldURI, opts...).ToFunc()
}
// ByCidRoot orders the results by the cid_root field.
func ByCidRoot(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCidRoot, opts...).ToFunc()
}
// ByURIRoot orders the results by the uri_root field.
func ByURIRoot(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldURIRoot, opts...).ToFunc()
}
// ByRoot orders the results by the root field.
func ByRoot(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRoot, opts...).ToFunc()
}
// ByRkey orders the results by the rkey field.
func ByRkey(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRkey, opts...).ToFunc()
@ -172,6 +214,36 @@ func ByBskyURL(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldBskyURL, opts...).ToFunc()
}
// ByComment orders the results by the comment field.
func ByComment(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldComment, opts...).ToFunc()
}
// ByBlog orders the results by the blog field.
func ByBlog(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldBlog, opts...).ToFunc()
}
// ByBlogURL orders the results by the blog_url field.
func ByBlogURL(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldBlogURL, opts...).ToFunc()
}
// ByDomain orders the results by the domain field.
func ByDomain(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDomain, opts...).ToFunc()
}
// ByHost orders the results by the host field.
func ByHost(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldHost, opts...).ToFunc()
}
// ByFeed orders the results by the feed field.
func ByFeed(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldFeed, opts...).ToFunc()
}
// ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()

View File

@ -105,6 +105,21 @@ func URI(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldURI, v))
}
// CidRoot applies equality check predicate on the "cid_root" field. It's identical to CidRootEQ.
func CidRoot(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldCidRoot, v))
}
// URIRoot applies equality check predicate on the "uri_root" field. It's identical to URIRootEQ.
func URIRoot(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldURIRoot, v))
}
// Root applies equality check predicate on the "root" field. It's identical to RootEQ.
func Root(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldRoot, v))
}
// Rkey applies equality check predicate on the "rkey" field. It's identical to RkeyEQ.
func Rkey(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldRkey, v))
@ -115,6 +130,36 @@ func BskyURL(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldBskyURL, v))
}
// Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func Comment(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldComment, v))
}
// Blog applies equality check predicate on the "blog" field. It's identical to BlogEQ.
func Blog(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldBlog, v))
}
// BlogURL applies equality check predicate on the "blog_url" field. It's identical to BlogURLEQ.
func BlogURL(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldBlogURL, v))
}
// Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func Domain(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldDomain, v))
}
// Host applies equality check predicate on the "host" field. It's identical to HostEQ.
func Host(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldHost, v))
}
// Feed applies equality check predicate on the "feed" field. It's identical to FeedEQ.
func Feed(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldFeed, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldUpdatedAt, v))
@ -785,6 +830,231 @@ func URIContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldURI, v))
}
// CidRootEQ applies the EQ predicate on the "cid_root" field.
func CidRootEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldCidRoot, v))
}
// CidRootNEQ applies the NEQ predicate on the "cid_root" field.
func CidRootNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldCidRoot, v))
}
// CidRootIn applies the In predicate on the "cid_root" field.
func CidRootIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldCidRoot, vs...))
}
// CidRootNotIn applies the NotIn predicate on the "cid_root" field.
func CidRootNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldCidRoot, vs...))
}
// CidRootGT applies the GT predicate on the "cid_root" field.
func CidRootGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldCidRoot, v))
}
// CidRootGTE applies the GTE predicate on the "cid_root" field.
func CidRootGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldCidRoot, v))
}
// CidRootLT applies the LT predicate on the "cid_root" field.
func CidRootLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldCidRoot, v))
}
// CidRootLTE applies the LTE predicate on the "cid_root" field.
func CidRootLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldCidRoot, v))
}
// CidRootContains applies the Contains predicate on the "cid_root" field.
func CidRootContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldCidRoot, v))
}
// CidRootHasPrefix applies the HasPrefix predicate on the "cid_root" field.
func CidRootHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldCidRoot, v))
}
// CidRootHasSuffix applies the HasSuffix predicate on the "cid_root" field.
func CidRootHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldCidRoot, v))
}
// CidRootIsNil applies the IsNil predicate on the "cid_root" field.
func CidRootIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldCidRoot))
}
// CidRootNotNil applies the NotNil predicate on the "cid_root" field.
func CidRootNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldCidRoot))
}
// CidRootEqualFold applies the EqualFold predicate on the "cid_root" field.
func CidRootEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldCidRoot, v))
}
// CidRootContainsFold applies the ContainsFold predicate on the "cid_root" field.
func CidRootContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldCidRoot, v))
}
// URIRootEQ applies the EQ predicate on the "uri_root" field.
func URIRootEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldURIRoot, v))
}
// URIRootNEQ applies the NEQ predicate on the "uri_root" field.
func URIRootNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldURIRoot, v))
}
// URIRootIn applies the In predicate on the "uri_root" field.
func URIRootIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldURIRoot, vs...))
}
// URIRootNotIn applies the NotIn predicate on the "uri_root" field.
func URIRootNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldURIRoot, vs...))
}
// URIRootGT applies the GT predicate on the "uri_root" field.
func URIRootGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldURIRoot, v))
}
// URIRootGTE applies the GTE predicate on the "uri_root" field.
func URIRootGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldURIRoot, v))
}
// URIRootLT applies the LT predicate on the "uri_root" field.
func URIRootLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldURIRoot, v))
}
// URIRootLTE applies the LTE predicate on the "uri_root" field.
func URIRootLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldURIRoot, v))
}
// URIRootContains applies the Contains predicate on the "uri_root" field.
func URIRootContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldURIRoot, v))
}
// URIRootHasPrefix applies the HasPrefix predicate on the "uri_root" field.
func URIRootHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldURIRoot, v))
}
// URIRootHasSuffix applies the HasSuffix predicate on the "uri_root" field.
func URIRootHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldURIRoot, v))
}
// URIRootIsNil applies the IsNil predicate on the "uri_root" field.
func URIRootIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldURIRoot))
}
// URIRootNotNil applies the NotNil predicate on the "uri_root" field.
func URIRootNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldURIRoot))
}
// URIRootEqualFold applies the EqualFold predicate on the "uri_root" field.
func URIRootEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldURIRoot, v))
}
// URIRootContainsFold applies the ContainsFold predicate on the "uri_root" field.
func URIRootContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldURIRoot, v))
}
// RootEQ applies the EQ predicate on the "root" field.
func RootEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldRoot, v))
}
// RootNEQ applies the NEQ predicate on the "root" field.
func RootNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldRoot, v))
}
// RootIn applies the In predicate on the "root" field.
func RootIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldRoot, vs...))
}
// RootNotIn applies the NotIn predicate on the "root" field.
func RootNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldRoot, vs...))
}
// RootGT applies the GT predicate on the "root" field.
func RootGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldRoot, v))
}
// RootGTE applies the GTE predicate on the "root" field.
func RootGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldRoot, v))
}
// RootLT applies the LT predicate on the "root" field.
func RootLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldRoot, v))
}
// RootLTE applies the LTE predicate on the "root" field.
func RootLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldRoot, v))
}
// RootContains applies the Contains predicate on the "root" field.
func RootContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldRoot, v))
}
// RootHasPrefix applies the HasPrefix predicate on the "root" field.
func RootHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldRoot, v))
}
// RootHasSuffix applies the HasSuffix predicate on the "root" field.
func RootHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldRoot, v))
}
// RootIsNil applies the IsNil predicate on the "root" field.
func RootIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldRoot))
}
// RootNotNil applies the NotNil predicate on the "root" field.
func RootNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldRoot))
}
// RootEqualFold applies the EqualFold predicate on the "root" field.
func RootEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldRoot, v))
}
// RootContainsFold applies the ContainsFold predicate on the "root" field.
func RootContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldRoot, v))
}
// RkeyEQ applies the EQ predicate on the "rkey" field.
func RkeyEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldRkey, v))
@ -935,6 +1205,456 @@ func BskyURLContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldBskyURL, v))
}
// CommentEQ applies the EQ predicate on the "comment" field.
func CommentEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldComment, v))
}
// CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldComment, v))
}
// CommentIn applies the In predicate on the "comment" field.
func CommentIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldComment, vs...))
}
// CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldComment, vs...))
}
// CommentGT applies the GT predicate on the "comment" field.
func CommentGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldComment, v))
}
// CommentGTE applies the GTE predicate on the "comment" field.
func CommentGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldComment, v))
}
// CommentLT applies the LT predicate on the "comment" field.
func CommentLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldComment, v))
}
// CommentLTE applies the LTE predicate on the "comment" field.
func CommentLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldComment, v))
}
// CommentContains applies the Contains predicate on the "comment" field.
func CommentContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldComment, v))
}
// CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldComment, v))
}
// CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldComment, v))
}
// CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldComment))
}
// CommentNotNil applies the NotNil predicate on the "comment" field.
func CommentNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldComment))
}
// CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldComment, v))
}
// CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldComment, v))
}
// BlogEQ applies the EQ predicate on the "blog" field.
func BlogEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldBlog, v))
}
// BlogNEQ applies the NEQ predicate on the "blog" field.
func BlogNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldBlog, v))
}
// BlogIn applies the In predicate on the "blog" field.
func BlogIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldBlog, vs...))
}
// BlogNotIn applies the NotIn predicate on the "blog" field.
func BlogNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldBlog, vs...))
}
// BlogGT applies the GT predicate on the "blog" field.
func BlogGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldBlog, v))
}
// BlogGTE applies the GTE predicate on the "blog" field.
func BlogGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldBlog, v))
}
// BlogLT applies the LT predicate on the "blog" field.
func BlogLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldBlog, v))
}
// BlogLTE applies the LTE predicate on the "blog" field.
func BlogLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldBlog, v))
}
// BlogContains applies the Contains predicate on the "blog" field.
func BlogContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldBlog, v))
}
// BlogHasPrefix applies the HasPrefix predicate on the "blog" field.
func BlogHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldBlog, v))
}
// BlogHasSuffix applies the HasSuffix predicate on the "blog" field.
func BlogHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldBlog, v))
}
// BlogIsNil applies the IsNil predicate on the "blog" field.
func BlogIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldBlog))
}
// BlogNotNil applies the NotNil predicate on the "blog" field.
func BlogNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldBlog))
}
// BlogEqualFold applies the EqualFold predicate on the "blog" field.
func BlogEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldBlog, v))
}
// BlogContainsFold applies the ContainsFold predicate on the "blog" field.
func BlogContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldBlog, v))
}
// BlogURLEQ applies the EQ predicate on the "blog_url" field.
func BlogURLEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldBlogURL, v))
}
// BlogURLNEQ applies the NEQ predicate on the "blog_url" field.
func BlogURLNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldBlogURL, v))
}
// BlogURLIn applies the In predicate on the "blog_url" field.
func BlogURLIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldBlogURL, vs...))
}
// BlogURLNotIn applies the NotIn predicate on the "blog_url" field.
func BlogURLNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldBlogURL, vs...))
}
// BlogURLGT applies the GT predicate on the "blog_url" field.
func BlogURLGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldBlogURL, v))
}
// BlogURLGTE applies the GTE predicate on the "blog_url" field.
func BlogURLGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldBlogURL, v))
}
// BlogURLLT applies the LT predicate on the "blog_url" field.
func BlogURLLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldBlogURL, v))
}
// BlogURLLTE applies the LTE predicate on the "blog_url" field.
func BlogURLLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldBlogURL, v))
}
// BlogURLContains applies the Contains predicate on the "blog_url" field.
func BlogURLContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldBlogURL, v))
}
// BlogURLHasPrefix applies the HasPrefix predicate on the "blog_url" field.
func BlogURLHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldBlogURL, v))
}
// BlogURLHasSuffix applies the HasSuffix predicate on the "blog_url" field.
func BlogURLHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldBlogURL, v))
}
// BlogURLIsNil applies the IsNil predicate on the "blog_url" field.
func BlogURLIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldBlogURL))
}
// BlogURLNotNil applies the NotNil predicate on the "blog_url" field.
func BlogURLNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldBlogURL))
}
// BlogURLEqualFold applies the EqualFold predicate on the "blog_url" field.
func BlogURLEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldBlogURL, v))
}
// BlogURLContainsFold applies the ContainsFold predicate on the "blog_url" field.
func BlogURLContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldBlogURL, v))
}
// DomainEQ applies the EQ predicate on the "domain" field.
func DomainEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldDomain, v))
}
// DomainNEQ applies the NEQ predicate on the "domain" field.
func DomainNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldDomain, v))
}
// DomainIn applies the In predicate on the "domain" field.
func DomainIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldDomain, vs...))
}
// DomainNotIn applies the NotIn predicate on the "domain" field.
func DomainNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldDomain, vs...))
}
// DomainGT applies the GT predicate on the "domain" field.
func DomainGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldDomain, v))
}
// DomainGTE applies the GTE predicate on the "domain" field.
func DomainGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldDomain, v))
}
// DomainLT applies the LT predicate on the "domain" field.
func DomainLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldDomain, v))
}
// DomainLTE applies the LTE predicate on the "domain" field.
func DomainLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldDomain, v))
}
// DomainContains applies the Contains predicate on the "domain" field.
func DomainContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldDomain, v))
}
// DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldDomain, v))
}
// DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldDomain, v))
}
// DomainIsNil applies the IsNil predicate on the "domain" field.
func DomainIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldDomain))
}
// DomainNotNil applies the NotNil predicate on the "domain" field.
func DomainNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldDomain))
}
// DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldDomain, v))
}
// DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldDomain, v))
}
// HostEQ applies the EQ predicate on the "host" field.
func HostEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldHost, v))
}
// HostNEQ applies the NEQ predicate on the "host" field.
func HostNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldHost, v))
}
// HostIn applies the In predicate on the "host" field.
func HostIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldHost, vs...))
}
// HostNotIn applies the NotIn predicate on the "host" field.
func HostNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldHost, vs...))
}
// HostGT applies the GT predicate on the "host" field.
func HostGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldHost, v))
}
// HostGTE applies the GTE predicate on the "host" field.
func HostGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldHost, v))
}
// HostLT applies the LT predicate on the "host" field.
func HostLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldHost, v))
}
// HostLTE applies the LTE predicate on the "host" field.
func HostLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldHost, v))
}
// HostContains applies the Contains predicate on the "host" field.
func HostContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldHost, v))
}
// HostHasPrefix applies the HasPrefix predicate on the "host" field.
func HostHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldHost, v))
}
// HostHasSuffix applies the HasSuffix predicate on the "host" field.
func HostHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldHost, v))
}
// HostIsNil applies the IsNil predicate on the "host" field.
func HostIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldHost))
}
// HostNotNil applies the NotNil predicate on the "host" field.
func HostNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldHost))
}
// HostEqualFold applies the EqualFold predicate on the "host" field.
func HostEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldHost, v))
}
// HostContainsFold applies the ContainsFold predicate on the "host" field.
func HostContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldHost, v))
}
// FeedEQ applies the EQ predicate on the "feed" field.
func FeedEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldFeed, v))
}
// FeedNEQ applies the NEQ predicate on the "feed" field.
func FeedNEQ(v string) predicate.Ma {
return predicate.Ma(sql.FieldNEQ(FieldFeed, v))
}
// FeedIn applies the In predicate on the "feed" field.
func FeedIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldIn(FieldFeed, vs...))
}
// FeedNotIn applies the NotIn predicate on the "feed" field.
func FeedNotIn(vs ...string) predicate.Ma {
return predicate.Ma(sql.FieldNotIn(FieldFeed, vs...))
}
// FeedGT applies the GT predicate on the "feed" field.
func FeedGT(v string) predicate.Ma {
return predicate.Ma(sql.FieldGT(FieldFeed, v))
}
// FeedGTE applies the GTE predicate on the "feed" field.
func FeedGTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldGTE(FieldFeed, v))
}
// FeedLT applies the LT predicate on the "feed" field.
func FeedLT(v string) predicate.Ma {
return predicate.Ma(sql.FieldLT(FieldFeed, v))
}
// FeedLTE applies the LTE predicate on the "feed" field.
func FeedLTE(v string) predicate.Ma {
return predicate.Ma(sql.FieldLTE(FieldFeed, v))
}
// FeedContains applies the Contains predicate on the "feed" field.
func FeedContains(v string) predicate.Ma {
return predicate.Ma(sql.FieldContains(FieldFeed, v))
}
// FeedHasPrefix applies the HasPrefix predicate on the "feed" field.
func FeedHasPrefix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasPrefix(FieldFeed, v))
}
// FeedHasSuffix applies the HasSuffix predicate on the "feed" field.
func FeedHasSuffix(v string) predicate.Ma {
return predicate.Ma(sql.FieldHasSuffix(FieldFeed, v))
}
// FeedIsNil applies the IsNil predicate on the "feed" field.
func FeedIsNil() predicate.Ma {
return predicate.Ma(sql.FieldIsNull(FieldFeed))
}
// FeedNotNil applies the NotNil predicate on the "feed" field.
func FeedNotNil() predicate.Ma {
return predicate.Ma(sql.FieldNotNull(FieldFeed))
}
// FeedEqualFold applies the EqualFold predicate on the "feed" field.
func FeedEqualFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldEqualFold(FieldFeed, v))
}
// FeedContainsFold applies the ContainsFold predicate on the "feed" field.
func FeedContainsFold(v string) predicate.Ma {
return predicate.Ma(sql.FieldContainsFold(FieldFeed, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Ma {
return predicate.Ma(sql.FieldEQ(FieldUpdatedAt, v))