Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Announcement) predicate.Announcement
- func Content(v string) predicate.Announcement
- func ContentContains(v string) predicate.Announcement
- func ContentContainsFold(v string) predicate.Announcement
- func ContentEQ(v string) predicate.Announcement
- func ContentEqualFold(v string) predicate.Announcement
- func ContentGT(v string) predicate.Announcement
- func ContentGTE(v string) predicate.Announcement
- func ContentHasPrefix(v string) predicate.Announcement
- func ContentHasSuffix(v string) predicate.Announcement
- func ContentIn(vs ...string) predicate.Announcement
- func ContentLT(v string) predicate.Announcement
- func ContentLTE(v string) predicate.Announcement
- func ContentNEQ(v string) predicate.Announcement
- func ContentNotIn(vs ...string) predicate.Announcement
- func CreatedTime(v time.Time) predicate.Announcement
- func CreatedTimeEQ(v time.Time) predicate.Announcement
- func CreatedTimeGT(v time.Time) predicate.Announcement
- func CreatedTimeGTE(v time.Time) predicate.Announcement
- func CreatedTimeIn(vs ...time.Time) predicate.Announcement
- func CreatedTimeLT(v time.Time) predicate.Announcement
- func CreatedTimeLTE(v time.Time) predicate.Announcement
- func CreatedTimeNEQ(v time.Time) predicate.Announcement
- func CreatedTimeNotIn(vs ...time.Time) predicate.Announcement
- func HasAuthor() predicate.Announcement
- func HasAuthorWith(preds ...predicate.User) predicate.Announcement
- func HasTeam() predicate.Announcement
- func HasTeamWith(preds ...predicate.Team) predicate.Announcement
- func ID(id int64) predicate.Announcement
- func IDEQ(id int64) predicate.Announcement
- func IDGT(id int64) predicate.Announcement
- func IDGTE(id int64) predicate.Announcement
- func IDIn(ids ...int64) predicate.Announcement
- func IDLT(id int64) predicate.Announcement
- func IDLTE(id int64) predicate.Announcement
- func IDNEQ(id int64) predicate.Announcement
- func IDNotIn(ids ...int64) predicate.Announcement
- func ModifiedTime(v time.Time) predicate.Announcement
- func ModifiedTimeEQ(v time.Time) predicate.Announcement
- func ModifiedTimeGT(v time.Time) predicate.Announcement
- func ModifiedTimeGTE(v time.Time) predicate.Announcement
- func ModifiedTimeIn(vs ...time.Time) predicate.Announcement
- func ModifiedTimeLT(v time.Time) predicate.Announcement
- func ModifiedTimeLTE(v time.Time) predicate.Announcement
- func ModifiedTimeNEQ(v time.Time) predicate.Announcement
- func ModifiedTimeNotIn(vs ...time.Time) predicate.Announcement
- func Not(p predicate.Announcement) predicate.Announcement
- func Or(predicates ...predicate.Announcement) predicate.Announcement
- func Title(v string) predicate.Announcement
- func TitleContains(v string) predicate.Announcement
- func TitleContainsFold(v string) predicate.Announcement
- func TitleEQ(v string) predicate.Announcement
- func TitleEqualFold(v string) predicate.Announcement
- func TitleGT(v string) predicate.Announcement
- func TitleGTE(v string) predicate.Announcement
- func TitleHasPrefix(v string) predicate.Announcement
- func TitleHasSuffix(v string) predicate.Announcement
- func TitleIn(vs ...string) predicate.Announcement
- func TitleLT(v string) predicate.Announcement
- func TitleLTE(v string) predicate.Announcement
- func TitleNEQ(v string) predicate.Announcement
- func TitleNotIn(vs ...string) predicate.Announcement
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the announcement type in the database. Label = "announcement" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldCreatedTime holds the string denoting the createdtime field in the database. FieldCreatedTime = "created_time" // FieldModifiedTime holds the string denoting the modifiedtime field in the database. FieldModifiedTime = "modified_time" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // EdgeTeam holds the string denoting the team edge name in mutations. EdgeTeam = "team" // Table holds the table name of the announcement in the database. Table = "announcements" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "users" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "announcement_author" // TeamTable is the table that holds the team relation/edge. TeamTable = "announcements" // TeamInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamInverseTable = "teams" // TeamColumn is the table column denoting the team relation/edge. TeamColumn = "announcement_team" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultCreatedTime holds the default value on creation for the "createdTime" field. DefaultCreatedTime time.Time // DefaultModifiedTime holds the default value on creation for the "modifiedTime" field. DefaultModifiedTime time.Time )
var Columns = []string{ FieldID, FieldTitle, FieldContent, FieldCreatedTime, FieldModifiedTime, }
Columns holds all SQL columns for announcement fields.
var ForeignKeys = []string{
"announcement_team",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "announcements" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Announcement) predicate.Announcement
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.Announcement
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.Announcement
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.Announcement
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.Announcement
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.Announcement
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.Announcement
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.Announcement
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.Announcement
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.Announcement
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.Announcement
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.Announcement
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.Announcement
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.Announcement
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.Announcement
ContentNotIn applies the NotIn predicate on the "content" field.
func CreatedTime ¶
func CreatedTime(v time.Time) predicate.Announcement
CreatedTime applies equality check predicate on the "createdTime" field. It's identical to CreatedTimeEQ.
func CreatedTimeEQ ¶
func CreatedTimeEQ(v time.Time) predicate.Announcement
CreatedTimeEQ applies the EQ predicate on the "createdTime" field.
func CreatedTimeGT ¶
func CreatedTimeGT(v time.Time) predicate.Announcement
CreatedTimeGT applies the GT predicate on the "createdTime" field.
func CreatedTimeGTE ¶
func CreatedTimeGTE(v time.Time) predicate.Announcement
CreatedTimeGTE applies the GTE predicate on the "createdTime" field.
func CreatedTimeIn ¶
func CreatedTimeIn(vs ...time.Time) predicate.Announcement
CreatedTimeIn applies the In predicate on the "createdTime" field.
func CreatedTimeLT ¶
func CreatedTimeLT(v time.Time) predicate.Announcement
CreatedTimeLT applies the LT predicate on the "createdTime" field.
func CreatedTimeLTE ¶
func CreatedTimeLTE(v time.Time) predicate.Announcement
CreatedTimeLTE applies the LTE predicate on the "createdTime" field.
func CreatedTimeNEQ ¶
func CreatedTimeNEQ(v time.Time) predicate.Announcement
CreatedTimeNEQ applies the NEQ predicate on the "createdTime" field.
func CreatedTimeNotIn ¶
func CreatedTimeNotIn(vs ...time.Time) predicate.Announcement
CreatedTimeNotIn applies the NotIn predicate on the "createdTime" field.
func HasAuthor ¶
func HasAuthor() predicate.Announcement
HasAuthor applies the HasEdge predicate on the "author" edge.
func HasAuthorWith ¶
func HasAuthorWith(preds ...predicate.User) predicate.Announcement
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasTeam ¶
func HasTeam() predicate.Announcement
HasTeam applies the HasEdge predicate on the "team" edge.
func HasTeamWith ¶
func HasTeamWith(preds ...predicate.Team) predicate.Announcement
HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int64) predicate.Announcement
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.Announcement
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.Announcement
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.Announcement
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.Announcement
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.Announcement
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.Announcement
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.Announcement
IDNotIn applies the NotIn predicate on the ID field.
func ModifiedTime ¶
func ModifiedTime(v time.Time) predicate.Announcement
ModifiedTime applies equality check predicate on the "modifiedTime" field. It's identical to ModifiedTimeEQ.
func ModifiedTimeEQ ¶
func ModifiedTimeEQ(v time.Time) predicate.Announcement
ModifiedTimeEQ applies the EQ predicate on the "modifiedTime" field.
func ModifiedTimeGT ¶
func ModifiedTimeGT(v time.Time) predicate.Announcement
ModifiedTimeGT applies the GT predicate on the "modifiedTime" field.
func ModifiedTimeGTE ¶
func ModifiedTimeGTE(v time.Time) predicate.Announcement
ModifiedTimeGTE applies the GTE predicate on the "modifiedTime" field.
func ModifiedTimeIn ¶
func ModifiedTimeIn(vs ...time.Time) predicate.Announcement
ModifiedTimeIn applies the In predicate on the "modifiedTime" field.
func ModifiedTimeLT ¶
func ModifiedTimeLT(v time.Time) predicate.Announcement
ModifiedTimeLT applies the LT predicate on the "modifiedTime" field.
func ModifiedTimeLTE ¶
func ModifiedTimeLTE(v time.Time) predicate.Announcement
ModifiedTimeLTE applies the LTE predicate on the "modifiedTime" field.
func ModifiedTimeNEQ ¶
func ModifiedTimeNEQ(v time.Time) predicate.Announcement
ModifiedTimeNEQ applies the NEQ predicate on the "modifiedTime" field.
func ModifiedTimeNotIn ¶
func ModifiedTimeNotIn(vs ...time.Time) predicate.Announcement
ModifiedTimeNotIn applies the NotIn predicate on the "modifiedTime" field.
func Not ¶
func Not(p predicate.Announcement) predicate.Announcement
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Announcement) predicate.Announcement
Or groups predicates with the OR operator between them.
func Title ¶
func Title(v string) predicate.Announcement
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
func TitleContains(v string) predicate.Announcement
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
func TitleContainsFold(v string) predicate.Announcement
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEQ ¶
func TitleEQ(v string) predicate.Announcement
TitleEQ applies the EQ predicate on the "title" field.
func TitleEqualFold ¶
func TitleEqualFold(v string) predicate.Announcement
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleGT ¶
func TitleGT(v string) predicate.Announcement
TitleGT applies the GT predicate on the "title" field.
func TitleGTE ¶
func TitleGTE(v string) predicate.Announcement
TitleGTE applies the GTE predicate on the "title" field.
func TitleHasPrefix ¶
func TitleHasPrefix(v string) predicate.Announcement
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
func TitleHasSuffix(v string) predicate.Announcement
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIn ¶
func TitleIn(vs ...string) predicate.Announcement
TitleIn applies the In predicate on the "title" field.
func TitleLT ¶
func TitleLT(v string) predicate.Announcement
TitleLT applies the LT predicate on the "title" field.
func TitleLTE ¶
func TitleLTE(v string) predicate.Announcement
TitleLTE applies the LTE predicate on the "title" field.
func TitleNEQ ¶
func TitleNEQ(v string) predicate.Announcement
TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNotIn ¶
func TitleNotIn(vs ...string) predicate.Announcement
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.