Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NoteArticle) predicate.NoteArticle
- func Content(v string) predicate.NoteArticle
- func ContentContains(v string) predicate.NoteArticle
- func ContentContainsFold(v string) predicate.NoteArticle
- func ContentEQ(v string) predicate.NoteArticle
- func ContentEqualFold(v string) predicate.NoteArticle
- func ContentGT(v string) predicate.NoteArticle
- func ContentGTE(v string) predicate.NoteArticle
- func ContentHasPrefix(v string) predicate.NoteArticle
- func ContentHasSuffix(v string) predicate.NoteArticle
- func ContentIn(vs ...string) predicate.NoteArticle
- func ContentLT(v string) predicate.NoteArticle
- func ContentLTE(v string) predicate.NoteArticle
- func ContentNEQ(v string) predicate.NoteArticle
- func ContentNotIn(vs ...string) predicate.NoteArticle
- func CreatedAt(v time.Time) predicate.NoteArticle
- func CreatedAtEQ(v time.Time) predicate.NoteArticle
- func CreatedAtGT(v time.Time) predicate.NoteArticle
- func CreatedAtGTE(v time.Time) predicate.NoteArticle
- func CreatedAtIn(vs ...time.Time) predicate.NoteArticle
- func CreatedAtLT(v time.Time) predicate.NoteArticle
- func CreatedAtLTE(v time.Time) predicate.NoteArticle
- func CreatedAtNEQ(v time.Time) predicate.NoteArticle
- func CreatedAtNotIn(vs ...time.Time) predicate.NoteArticle
- func Gid(v uuid.UUID) predicate.NoteArticle
- func GidEQ(v uuid.UUID) predicate.NoteArticle
- func GidGT(v uuid.UUID) predicate.NoteArticle
- func GidGTE(v uuid.UUID) predicate.NoteArticle
- func GidIn(vs ...uuid.UUID) predicate.NoteArticle
- func GidLT(v uuid.UUID) predicate.NoteArticle
- func GidLTE(v uuid.UUID) predicate.NoteArticle
- func GidNEQ(v uuid.UUID) predicate.NoteArticle
- func GidNotIn(vs ...uuid.UUID) predicate.NoteArticle
- func HasOwner() predicate.NoteArticle
- func HasOwnerWith(preds ...predicate.Member) predicate.NoteArticle
- func ID(id int) predicate.NoteArticle
- func IDEQ(id int) predicate.NoteArticle
- func IDGT(id int) predicate.NoteArticle
- func IDGTE(id int) predicate.NoteArticle
- func IDIn(ids ...int) predicate.NoteArticle
- func IDLT(id int) predicate.NoteArticle
- func IDLTE(id int) predicate.NoteArticle
- func IDNEQ(id int) predicate.NoteArticle
- func IDNotIn(ids ...int) predicate.NoteArticle
- func MemberGid(v uuid.UUID) predicate.NoteArticle
- func MemberGidEQ(v uuid.UUID) predicate.NoteArticle
- func MemberGidGT(v uuid.UUID) predicate.NoteArticle
- func MemberGidGTE(v uuid.UUID) predicate.NoteArticle
- func MemberGidIn(vs ...uuid.UUID) predicate.NoteArticle
- func MemberGidLT(v uuid.UUID) predicate.NoteArticle
- func MemberGidLTE(v uuid.UUID) predicate.NoteArticle
- func MemberGidNEQ(v uuid.UUID) predicate.NoteArticle
- func MemberGidNotIn(vs ...uuid.UUID) predicate.NoteArticle
- func MimeEQ(v Mime) predicate.NoteArticle
- func MimeIn(vs ...Mime) predicate.NoteArticle
- func MimeNEQ(v Mime) predicate.NoteArticle
- func MimeNotIn(vs ...Mime) predicate.NoteArticle
- func MimeValidator(m Mime) error
- func Not(p predicate.NoteArticle) predicate.NoteArticle
- func Or(predicates ...predicate.NoteArticle) predicate.NoteArticle
- func UpdatedAt(v time.Time) predicate.NoteArticle
- func UpdatedAtEQ(v time.Time) predicate.NoteArticle
- func UpdatedAtGT(v time.Time) predicate.NoteArticle
- func UpdatedAtGTE(v time.Time) predicate.NoteArticle
- func UpdatedAtIn(vs ...time.Time) predicate.NoteArticle
- func UpdatedAtLT(v time.Time) predicate.NoteArticle
- func UpdatedAtLTE(v time.Time) predicate.NoteArticle
- func UpdatedAtNEQ(v time.Time) predicate.NoteArticle
- func UpdatedAtNotIn(vs ...time.Time) predicate.NoteArticle
- func ValidColumn(column string) bool
- type Mime
Constants ¶
const ( // Label holds the string label denoting the notearticle type in the database. Label = "note_article" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldGid holds the string denoting the gid field in the database. FieldGid = "gid" // FieldMemberGid holds the string denoting the member_gid field in the database. FieldMemberGid = "member_gid" // FieldMime holds the string denoting the mime field in the database. FieldMime = "mime" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the notearticle in the database. Table = "note_articles" // OwnerTable is the table the holds the owner relation/edge. OwnerTable = "note_articles" // OwnerInverseTable is the table name for the Member entity. // It exists in this package in order to avoid circular dependency with the "member" package. OwnerInverseTable = "member" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "member_note_articles" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the updated_at field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. UpdateDefaultUpdatedAt func() time.Time // DefaultGid holds the default value on creation for the gid field. DefaultGid func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldGid, FieldMemberGid, FieldMime, FieldContent, }
Columns holds all SQL columns for notearticle fields.
var ForeignKeys = []string{
"member_note_articles",
}
ForeignKeys holds the SQL foreign-keys that are owned by the NoteArticle type.
Functions ¶
func And ¶
func And(predicates ...predicate.NoteArticle) predicate.NoteArticle
And groups list of predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.NoteArticle
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.NoteArticle
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.NoteArticle
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.NoteArticle
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.NoteArticle
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.NoteArticle
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.NoteArticle
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.NoteArticle
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.NoteArticle
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.NoteArticle
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.NoteArticle
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.NoteArticle
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.NoteArticle
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.NoteArticle
ContentNotIn applies the NotIn predicate on the "content" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.NoteArticle
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.NoteArticle
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.NoteArticle
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.NoteArticle
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.NoteArticle
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.NoteArticle
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.NoteArticle
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.NoteArticle
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.NoteArticle
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Gid ¶
func Gid(v uuid.UUID) predicate.NoteArticle
Gid applies equality check predicate on the "gid" field. It's identical to GidEQ.
func GidEQ ¶
func GidEQ(v uuid.UUID) predicate.NoteArticle
GidEQ applies the EQ predicate on the "gid" field.
func GidGT ¶
func GidGT(v uuid.UUID) predicate.NoteArticle
GidGT applies the GT predicate on the "gid" field.
func GidGTE ¶
func GidGTE(v uuid.UUID) predicate.NoteArticle
GidGTE applies the GTE predicate on the "gid" field.
func GidIn ¶
func GidIn(vs ...uuid.UUID) predicate.NoteArticle
GidIn applies the In predicate on the "gid" field.
func GidLT ¶
func GidLT(v uuid.UUID) predicate.NoteArticle
GidLT applies the LT predicate on the "gid" field.
func GidLTE ¶
func GidLTE(v uuid.UUID) predicate.NoteArticle
GidLTE applies the LTE predicate on the "gid" field.
func GidNEQ ¶
func GidNEQ(v uuid.UUID) predicate.NoteArticle
GidNEQ applies the NEQ predicate on the "gid" field.
func GidNotIn ¶
func GidNotIn(vs ...uuid.UUID) predicate.NoteArticle
GidNotIn applies the NotIn predicate on the "gid" field.
func HasOwner ¶
func HasOwner() predicate.NoteArticle
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Member) predicate.NoteArticle
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.NoteArticle
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.NoteArticle
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.NoteArticle
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.NoteArticle
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.NoteArticle
IDNotIn applies the NotIn predicate on the ID field.
func MemberGid ¶
func MemberGid(v uuid.UUID) predicate.NoteArticle
MemberGid applies equality check predicate on the "member_gid" field. It's identical to MemberGidEQ.
func MemberGidEQ ¶
func MemberGidEQ(v uuid.UUID) predicate.NoteArticle
MemberGidEQ applies the EQ predicate on the "member_gid" field.
func MemberGidGT ¶
func MemberGidGT(v uuid.UUID) predicate.NoteArticle
MemberGidGT applies the GT predicate on the "member_gid" field.
func MemberGidGTE ¶
func MemberGidGTE(v uuid.UUID) predicate.NoteArticle
MemberGidGTE applies the GTE predicate on the "member_gid" field.
func MemberGidIn ¶
func MemberGidIn(vs ...uuid.UUID) predicate.NoteArticle
MemberGidIn applies the In predicate on the "member_gid" field.
func MemberGidLT ¶
func MemberGidLT(v uuid.UUID) predicate.NoteArticle
MemberGidLT applies the LT predicate on the "member_gid" field.
func MemberGidLTE ¶
func MemberGidLTE(v uuid.UUID) predicate.NoteArticle
MemberGidLTE applies the LTE predicate on the "member_gid" field.
func MemberGidNEQ ¶
func MemberGidNEQ(v uuid.UUID) predicate.NoteArticle
MemberGidNEQ applies the NEQ predicate on the "member_gid" field.
func MemberGidNotIn ¶
func MemberGidNotIn(vs ...uuid.UUID) predicate.NoteArticle
MemberGidNotIn applies the NotIn predicate on the "member_gid" field.
func MimeEQ ¶
func MimeEQ(v Mime) predicate.NoteArticle
MimeEQ applies the EQ predicate on the "mime" field.
func MimeIn ¶
func MimeIn(vs ...Mime) predicate.NoteArticle
MimeIn applies the In predicate on the "mime" field.
func MimeNEQ ¶
func MimeNEQ(v Mime) predicate.NoteArticle
MimeNEQ applies the NEQ predicate on the "mime" field.
func MimeNotIn ¶
func MimeNotIn(vs ...Mime) predicate.NoteArticle
MimeNotIn applies the NotIn predicate on the "mime" field.
func MimeValidator ¶
MimeValidator is a validator for the "mime" field enum values. It is called by the builders before save.
func Not ¶
func Not(p predicate.NoteArticle) predicate.NoteArticle
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.NoteArticle) predicate.NoteArticle
Or groups list of predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.NoteArticle
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.NoteArticle
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.NoteArticle
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.NoteArticle
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.NoteArticle
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.NoteArticle
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.NoteArticle
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.NoteArticle
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.NoteArticle
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).