1092 lines
34 KiB
Go
1092 lines
34 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package ma
|
|
|
|
import (
|
|
"api/ent/predicate"
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
|
|
func Password(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldPassword, v))
|
|
}
|
|
|
|
// Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
|
|
func Token(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldToken, v))
|
|
}
|
|
|
|
// Limit applies equality check predicate on the "limit" field. It's identical to LimitEQ.
|
|
func Limit(v bool) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldLimit, v))
|
|
}
|
|
|
|
// Count applies equality check predicate on the "count" field. It's identical to CountEQ.
|
|
func Count(v int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldCount, v))
|
|
}
|
|
|
|
// Handle applies equality check predicate on the "handle" field. It's identical to HandleEQ.
|
|
func Handle(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldHandle, v))
|
|
}
|
|
|
|
// Text applies equality check predicate on the "text" field. It's identical to TextEQ.
|
|
func Text(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldText, v))
|
|
}
|
|
|
|
// Did applies equality check predicate on the "did" field. It's identical to DidEQ.
|
|
func Did(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldDid, v))
|
|
}
|
|
|
|
// Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
|
|
func Avatar(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// Cid applies equality check predicate on the "cid" field. It's identical to CidEQ.
|
|
func Cid(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldCid, v))
|
|
}
|
|
|
|
// URI applies equality check predicate on the "uri" field. It's identical to URIEQ.
|
|
func URI(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldURI, 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))
|
|
}
|
|
|
|
// BskyURL applies equality check predicate on the "bsky_url" field. It's identical to BskyURLEQ.
|
|
func BskyURL(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldBskyURL, 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))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// PasswordEQ applies the EQ predicate on the "password" field.
|
|
func PasswordEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordNEQ applies the NEQ predicate on the "password" field.
|
|
func PasswordNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordIn applies the In predicate on the "password" field.
|
|
func PasswordIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldPassword, vs...))
|
|
}
|
|
|
|
// PasswordNotIn applies the NotIn predicate on the "password" field.
|
|
func PasswordNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldPassword, vs...))
|
|
}
|
|
|
|
// PasswordGT applies the GT predicate on the "password" field.
|
|
func PasswordGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordGTE applies the GTE predicate on the "password" field.
|
|
func PasswordGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordLT applies the LT predicate on the "password" field.
|
|
func PasswordLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordLTE applies the LTE predicate on the "password" field.
|
|
func PasswordLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordContains applies the Contains predicate on the "password" field.
|
|
func PasswordContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
|
|
func PasswordHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
|
|
func PasswordHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordEqualFold applies the EqualFold predicate on the "password" field.
|
|
func PasswordEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordContainsFold applies the ContainsFold predicate on the "password" field.
|
|
func PasswordContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldPassword, v))
|
|
}
|
|
|
|
// TokenEQ applies the EQ predicate on the "token" field.
|
|
func TokenEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldToken, v))
|
|
}
|
|
|
|
// TokenNEQ applies the NEQ predicate on the "token" field.
|
|
func TokenNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldToken, v))
|
|
}
|
|
|
|
// TokenIn applies the In predicate on the "token" field.
|
|
func TokenIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldToken, vs...))
|
|
}
|
|
|
|
// TokenNotIn applies the NotIn predicate on the "token" field.
|
|
func TokenNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldToken, vs...))
|
|
}
|
|
|
|
// TokenGT applies the GT predicate on the "token" field.
|
|
func TokenGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldToken, v))
|
|
}
|
|
|
|
// TokenGTE applies the GTE predicate on the "token" field.
|
|
func TokenGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldToken, v))
|
|
}
|
|
|
|
// TokenLT applies the LT predicate on the "token" field.
|
|
func TokenLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldToken, v))
|
|
}
|
|
|
|
// TokenLTE applies the LTE predicate on the "token" field.
|
|
func TokenLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldToken, v))
|
|
}
|
|
|
|
// TokenContains applies the Contains predicate on the "token" field.
|
|
func TokenContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldToken, v))
|
|
}
|
|
|
|
// TokenHasPrefix applies the HasPrefix predicate on the "token" field.
|
|
func TokenHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldToken, v))
|
|
}
|
|
|
|
// TokenHasSuffix applies the HasSuffix predicate on the "token" field.
|
|
func TokenHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldToken, v))
|
|
}
|
|
|
|
// TokenIsNil applies the IsNil predicate on the "token" field.
|
|
func TokenIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldToken))
|
|
}
|
|
|
|
// TokenNotNil applies the NotNil predicate on the "token" field.
|
|
func TokenNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldToken))
|
|
}
|
|
|
|
// TokenEqualFold applies the EqualFold predicate on the "token" field.
|
|
func TokenEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldToken, v))
|
|
}
|
|
|
|
// TokenContainsFold applies the ContainsFold predicate on the "token" field.
|
|
func TokenContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldToken, v))
|
|
}
|
|
|
|
// LimitEQ applies the EQ predicate on the "limit" field.
|
|
func LimitEQ(v bool) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldLimit, v))
|
|
}
|
|
|
|
// LimitNEQ applies the NEQ predicate on the "limit" field.
|
|
func LimitNEQ(v bool) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldLimit, v))
|
|
}
|
|
|
|
// LimitIsNil applies the IsNil predicate on the "limit" field.
|
|
func LimitIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldLimit))
|
|
}
|
|
|
|
// LimitNotNil applies the NotNil predicate on the "limit" field.
|
|
func LimitNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldLimit))
|
|
}
|
|
|
|
// CountEQ applies the EQ predicate on the "count" field.
|
|
func CountEQ(v int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldCount, v))
|
|
}
|
|
|
|
// CountNEQ applies the NEQ predicate on the "count" field.
|
|
func CountNEQ(v int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldCount, v))
|
|
}
|
|
|
|
// CountIn applies the In predicate on the "count" field.
|
|
func CountIn(vs ...int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldCount, vs...))
|
|
}
|
|
|
|
// CountNotIn applies the NotIn predicate on the "count" field.
|
|
func CountNotIn(vs ...int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldCount, vs...))
|
|
}
|
|
|
|
// CountGT applies the GT predicate on the "count" field.
|
|
func CountGT(v int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldCount, v))
|
|
}
|
|
|
|
// CountGTE applies the GTE predicate on the "count" field.
|
|
func CountGTE(v int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldCount, v))
|
|
}
|
|
|
|
// CountLT applies the LT predicate on the "count" field.
|
|
func CountLT(v int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldCount, v))
|
|
}
|
|
|
|
// CountLTE applies the LTE predicate on the "count" field.
|
|
func CountLTE(v int) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldCount, v))
|
|
}
|
|
|
|
// CountIsNil applies the IsNil predicate on the "count" field.
|
|
func CountIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldCount))
|
|
}
|
|
|
|
// CountNotNil applies the NotNil predicate on the "count" field.
|
|
func CountNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldCount))
|
|
}
|
|
|
|
// HandleEQ applies the EQ predicate on the "handle" field.
|
|
func HandleEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldHandle, v))
|
|
}
|
|
|
|
// HandleNEQ applies the NEQ predicate on the "handle" field.
|
|
func HandleNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldHandle, v))
|
|
}
|
|
|
|
// HandleIn applies the In predicate on the "handle" field.
|
|
func HandleIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldHandle, vs...))
|
|
}
|
|
|
|
// HandleNotIn applies the NotIn predicate on the "handle" field.
|
|
func HandleNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldHandle, vs...))
|
|
}
|
|
|
|
// HandleGT applies the GT predicate on the "handle" field.
|
|
func HandleGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldHandle, v))
|
|
}
|
|
|
|
// HandleGTE applies the GTE predicate on the "handle" field.
|
|
func HandleGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldHandle, v))
|
|
}
|
|
|
|
// HandleLT applies the LT predicate on the "handle" field.
|
|
func HandleLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldHandle, v))
|
|
}
|
|
|
|
// HandleLTE applies the LTE predicate on the "handle" field.
|
|
func HandleLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldHandle, v))
|
|
}
|
|
|
|
// HandleContains applies the Contains predicate on the "handle" field.
|
|
func HandleContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldHandle, v))
|
|
}
|
|
|
|
// HandleHasPrefix applies the HasPrefix predicate on the "handle" field.
|
|
func HandleHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldHandle, v))
|
|
}
|
|
|
|
// HandleHasSuffix applies the HasSuffix predicate on the "handle" field.
|
|
func HandleHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldHandle, v))
|
|
}
|
|
|
|
// HandleIsNil applies the IsNil predicate on the "handle" field.
|
|
func HandleIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldHandle))
|
|
}
|
|
|
|
// HandleNotNil applies the NotNil predicate on the "handle" field.
|
|
func HandleNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldHandle))
|
|
}
|
|
|
|
// HandleEqualFold applies the EqualFold predicate on the "handle" field.
|
|
func HandleEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldHandle, v))
|
|
}
|
|
|
|
// HandleContainsFold applies the ContainsFold predicate on the "handle" field.
|
|
func HandleContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldHandle, v))
|
|
}
|
|
|
|
// TextEQ applies the EQ predicate on the "text" field.
|
|
func TextEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldText, v))
|
|
}
|
|
|
|
// TextNEQ applies the NEQ predicate on the "text" field.
|
|
func TextNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldText, v))
|
|
}
|
|
|
|
// TextIn applies the In predicate on the "text" field.
|
|
func TextIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldText, vs...))
|
|
}
|
|
|
|
// TextNotIn applies the NotIn predicate on the "text" field.
|
|
func TextNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldText, vs...))
|
|
}
|
|
|
|
// TextGT applies the GT predicate on the "text" field.
|
|
func TextGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldText, v))
|
|
}
|
|
|
|
// TextGTE applies the GTE predicate on the "text" field.
|
|
func TextGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldText, v))
|
|
}
|
|
|
|
// TextLT applies the LT predicate on the "text" field.
|
|
func TextLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldText, v))
|
|
}
|
|
|
|
// TextLTE applies the LTE predicate on the "text" field.
|
|
func TextLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldText, v))
|
|
}
|
|
|
|
// TextContains applies the Contains predicate on the "text" field.
|
|
func TextContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldText, v))
|
|
}
|
|
|
|
// TextHasPrefix applies the HasPrefix predicate on the "text" field.
|
|
func TextHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldText, v))
|
|
}
|
|
|
|
// TextHasSuffix applies the HasSuffix predicate on the "text" field.
|
|
func TextHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldText, v))
|
|
}
|
|
|
|
// TextIsNil applies the IsNil predicate on the "text" field.
|
|
func TextIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldText))
|
|
}
|
|
|
|
// TextNotNil applies the NotNil predicate on the "text" field.
|
|
func TextNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldText))
|
|
}
|
|
|
|
// TextEqualFold applies the EqualFold predicate on the "text" field.
|
|
func TextEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldText, v))
|
|
}
|
|
|
|
// TextContainsFold applies the ContainsFold predicate on the "text" field.
|
|
func TextContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldText, v))
|
|
}
|
|
|
|
// DidEQ applies the EQ predicate on the "did" field.
|
|
func DidEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldDid, v))
|
|
}
|
|
|
|
// DidNEQ applies the NEQ predicate on the "did" field.
|
|
func DidNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldDid, v))
|
|
}
|
|
|
|
// DidIn applies the In predicate on the "did" field.
|
|
func DidIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldDid, vs...))
|
|
}
|
|
|
|
// DidNotIn applies the NotIn predicate on the "did" field.
|
|
func DidNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldDid, vs...))
|
|
}
|
|
|
|
// DidGT applies the GT predicate on the "did" field.
|
|
func DidGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldDid, v))
|
|
}
|
|
|
|
// DidGTE applies the GTE predicate on the "did" field.
|
|
func DidGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldDid, v))
|
|
}
|
|
|
|
// DidLT applies the LT predicate on the "did" field.
|
|
func DidLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldDid, v))
|
|
}
|
|
|
|
// DidLTE applies the LTE predicate on the "did" field.
|
|
func DidLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldDid, v))
|
|
}
|
|
|
|
// DidContains applies the Contains predicate on the "did" field.
|
|
func DidContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldDid, v))
|
|
}
|
|
|
|
// DidHasPrefix applies the HasPrefix predicate on the "did" field.
|
|
func DidHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldDid, v))
|
|
}
|
|
|
|
// DidHasSuffix applies the HasSuffix predicate on the "did" field.
|
|
func DidHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldDid, v))
|
|
}
|
|
|
|
// DidIsNil applies the IsNil predicate on the "did" field.
|
|
func DidIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldDid))
|
|
}
|
|
|
|
// DidNotNil applies the NotNil predicate on the "did" field.
|
|
func DidNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldDid))
|
|
}
|
|
|
|
// DidEqualFold applies the EqualFold predicate on the "did" field.
|
|
func DidEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldDid, v))
|
|
}
|
|
|
|
// DidContainsFold applies the ContainsFold predicate on the "did" field.
|
|
func DidContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldDid, v))
|
|
}
|
|
|
|
// AvatarEQ applies the EQ predicate on the "avatar" field.
|
|
func AvatarEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarNEQ applies the NEQ predicate on the "avatar" field.
|
|
func AvatarNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarIn applies the In predicate on the "avatar" field.
|
|
func AvatarIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldAvatar, vs...))
|
|
}
|
|
|
|
// AvatarNotIn applies the NotIn predicate on the "avatar" field.
|
|
func AvatarNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldAvatar, vs...))
|
|
}
|
|
|
|
// AvatarGT applies the GT predicate on the "avatar" field.
|
|
func AvatarGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarGTE applies the GTE predicate on the "avatar" field.
|
|
func AvatarGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarLT applies the LT predicate on the "avatar" field.
|
|
func AvatarLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarLTE applies the LTE predicate on the "avatar" field.
|
|
func AvatarLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarContains applies the Contains predicate on the "avatar" field.
|
|
func AvatarContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
|
|
func AvatarHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
|
|
func AvatarHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarIsNil applies the IsNil predicate on the "avatar" field.
|
|
func AvatarIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldAvatar))
|
|
}
|
|
|
|
// AvatarNotNil applies the NotNil predicate on the "avatar" field.
|
|
func AvatarNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldAvatar))
|
|
}
|
|
|
|
// AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
|
|
func AvatarEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
|
|
func AvatarContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldAvatar, v))
|
|
}
|
|
|
|
// CidEQ applies the EQ predicate on the "cid" field.
|
|
func CidEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldCid, v))
|
|
}
|
|
|
|
// CidNEQ applies the NEQ predicate on the "cid" field.
|
|
func CidNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldCid, v))
|
|
}
|
|
|
|
// CidIn applies the In predicate on the "cid" field.
|
|
func CidIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldCid, vs...))
|
|
}
|
|
|
|
// CidNotIn applies the NotIn predicate on the "cid" field.
|
|
func CidNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldCid, vs...))
|
|
}
|
|
|
|
// CidGT applies the GT predicate on the "cid" field.
|
|
func CidGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldCid, v))
|
|
}
|
|
|
|
// CidGTE applies the GTE predicate on the "cid" field.
|
|
func CidGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldCid, v))
|
|
}
|
|
|
|
// CidLT applies the LT predicate on the "cid" field.
|
|
func CidLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldCid, v))
|
|
}
|
|
|
|
// CidLTE applies the LTE predicate on the "cid" field.
|
|
func CidLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldCid, v))
|
|
}
|
|
|
|
// CidContains applies the Contains predicate on the "cid" field.
|
|
func CidContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldCid, v))
|
|
}
|
|
|
|
// CidHasPrefix applies the HasPrefix predicate on the "cid" field.
|
|
func CidHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldCid, v))
|
|
}
|
|
|
|
// CidHasSuffix applies the HasSuffix predicate on the "cid" field.
|
|
func CidHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldCid, v))
|
|
}
|
|
|
|
// CidIsNil applies the IsNil predicate on the "cid" field.
|
|
func CidIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldCid))
|
|
}
|
|
|
|
// CidNotNil applies the NotNil predicate on the "cid" field.
|
|
func CidNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldCid))
|
|
}
|
|
|
|
// CidEqualFold applies the EqualFold predicate on the "cid" field.
|
|
func CidEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldCid, v))
|
|
}
|
|
|
|
// CidContainsFold applies the ContainsFold predicate on the "cid" field.
|
|
func CidContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldCid, v))
|
|
}
|
|
|
|
// URIEQ applies the EQ predicate on the "uri" field.
|
|
func URIEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldURI, v))
|
|
}
|
|
|
|
// URINEQ applies the NEQ predicate on the "uri" field.
|
|
func URINEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldURI, v))
|
|
}
|
|
|
|
// URIIn applies the In predicate on the "uri" field.
|
|
func URIIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldURI, vs...))
|
|
}
|
|
|
|
// URINotIn applies the NotIn predicate on the "uri" field.
|
|
func URINotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldURI, vs...))
|
|
}
|
|
|
|
// URIGT applies the GT predicate on the "uri" field.
|
|
func URIGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldURI, v))
|
|
}
|
|
|
|
// URIGTE applies the GTE predicate on the "uri" field.
|
|
func URIGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldURI, v))
|
|
}
|
|
|
|
// URILT applies the LT predicate on the "uri" field.
|
|
func URILT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldURI, v))
|
|
}
|
|
|
|
// URILTE applies the LTE predicate on the "uri" field.
|
|
func URILTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldURI, v))
|
|
}
|
|
|
|
// URIContains applies the Contains predicate on the "uri" field.
|
|
func URIContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldURI, v))
|
|
}
|
|
|
|
// URIHasPrefix applies the HasPrefix predicate on the "uri" field.
|
|
func URIHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldURI, v))
|
|
}
|
|
|
|
// URIHasSuffix applies the HasSuffix predicate on the "uri" field.
|
|
func URIHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldURI, v))
|
|
}
|
|
|
|
// URIIsNil applies the IsNil predicate on the "uri" field.
|
|
func URIIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldURI))
|
|
}
|
|
|
|
// URINotNil applies the NotNil predicate on the "uri" field.
|
|
func URINotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldURI))
|
|
}
|
|
|
|
// URIEqualFold applies the EqualFold predicate on the "uri" field.
|
|
func URIEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldURI, v))
|
|
}
|
|
|
|
// URIContainsFold applies the ContainsFold predicate on the "uri" field.
|
|
func URIContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldURI, v))
|
|
}
|
|
|
|
// RkeyEQ applies the EQ predicate on the "rkey" field.
|
|
func RkeyEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyNEQ applies the NEQ predicate on the "rkey" field.
|
|
func RkeyNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyIn applies the In predicate on the "rkey" field.
|
|
func RkeyIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldRkey, vs...))
|
|
}
|
|
|
|
// RkeyNotIn applies the NotIn predicate on the "rkey" field.
|
|
func RkeyNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldRkey, vs...))
|
|
}
|
|
|
|
// RkeyGT applies the GT predicate on the "rkey" field.
|
|
func RkeyGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyGTE applies the GTE predicate on the "rkey" field.
|
|
func RkeyGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyLT applies the LT predicate on the "rkey" field.
|
|
func RkeyLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyLTE applies the LTE predicate on the "rkey" field.
|
|
func RkeyLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyContains applies the Contains predicate on the "rkey" field.
|
|
func RkeyContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyHasPrefix applies the HasPrefix predicate on the "rkey" field.
|
|
func RkeyHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyHasSuffix applies the HasSuffix predicate on the "rkey" field.
|
|
func RkeyHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyIsNil applies the IsNil predicate on the "rkey" field.
|
|
func RkeyIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldRkey))
|
|
}
|
|
|
|
// RkeyNotNil applies the NotNil predicate on the "rkey" field.
|
|
func RkeyNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldRkey))
|
|
}
|
|
|
|
// RkeyEqualFold applies the EqualFold predicate on the "rkey" field.
|
|
func RkeyEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldRkey, v))
|
|
}
|
|
|
|
// RkeyContainsFold applies the ContainsFold predicate on the "rkey" field.
|
|
func RkeyContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldRkey, v))
|
|
}
|
|
|
|
// BskyURLEQ applies the EQ predicate on the "bsky_url" field.
|
|
func BskyURLEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLNEQ applies the NEQ predicate on the "bsky_url" field.
|
|
func BskyURLNEQ(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLIn applies the In predicate on the "bsky_url" field.
|
|
func BskyURLIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldBskyURL, vs...))
|
|
}
|
|
|
|
// BskyURLNotIn applies the NotIn predicate on the "bsky_url" field.
|
|
func BskyURLNotIn(vs ...string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldBskyURL, vs...))
|
|
}
|
|
|
|
// BskyURLGT applies the GT predicate on the "bsky_url" field.
|
|
func BskyURLGT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLGTE applies the GTE predicate on the "bsky_url" field.
|
|
func BskyURLGTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLLT applies the LT predicate on the "bsky_url" field.
|
|
func BskyURLLT(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLLTE applies the LTE predicate on the "bsky_url" field.
|
|
func BskyURLLTE(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLContains applies the Contains predicate on the "bsky_url" field.
|
|
func BskyURLContains(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContains(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLHasPrefix applies the HasPrefix predicate on the "bsky_url" field.
|
|
func BskyURLHasPrefix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasPrefix(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLHasSuffix applies the HasSuffix predicate on the "bsky_url" field.
|
|
func BskyURLHasSuffix(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldHasSuffix(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLIsNil applies the IsNil predicate on the "bsky_url" field.
|
|
func BskyURLIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldBskyURL))
|
|
}
|
|
|
|
// BskyURLNotNil applies the NotNil predicate on the "bsky_url" field.
|
|
func BskyURLNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldBskyURL))
|
|
}
|
|
|
|
// BskyURLEqualFold applies the EqualFold predicate on the "bsky_url" field.
|
|
func BskyURLEqualFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEqualFold(FieldBskyURL, v))
|
|
}
|
|
|
|
// BskyURLContainsFold applies the ContainsFold predicate on the "bsky_url" field.
|
|
func BskyURLContainsFold(v string) predicate.Ma {
|
|
return predicate.Ma(sql.FieldContainsFold(FieldBskyURL, 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))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
|
|
func UpdatedAtIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldUpdatedAt))
|
|
}
|
|
|
|
// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
|
|
func UpdatedAtNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldUpdatedAt))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.Ma {
|
|
return predicate.Ma(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
|
|
func CreatedAtIsNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldIsNull(FieldCreatedAt))
|
|
}
|
|
|
|
// CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
|
|
func CreatedAtNotNil() predicate.Ma {
|
|
return predicate.Ma(sql.FieldNotNull(FieldCreatedAt))
|
|
}
|
|
|
|
// HasOwner applies the HasEdge predicate on the "owner" edge.
|
|
func HasOwner() predicate.Ma {
|
|
return predicate.Ma(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
|
|
func HasOwnerWith(preds ...predicate.User) predicate.Ma {
|
|
return predicate.Ma(func(s *sql.Selector) {
|
|
step := newOwnerStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Ma) predicate.Ma {
|
|
return predicate.Ma(func(s *sql.Selector) {
|
|
s1 := s.Clone().SetP(nil)
|
|
for _, p := range predicates {
|
|
p(s1)
|
|
}
|
|
s.Where(s1.P())
|
|
})
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Ma) predicate.Ma {
|
|
return predicate.Ma(func(s *sql.Selector) {
|
|
s1 := s.Clone().SetP(nil)
|
|
for i, p := range predicates {
|
|
if i > 0 {
|
|
s1.Or()
|
|
}
|
|
p(s1)
|
|
}
|
|
s.Where(s1.P())
|
|
})
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Ma) predicate.Ma {
|
|
return predicate.Ma(func(s *sql.Selector) {
|
|
p(s.Not())
|
|
})
|
|
}
|