Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProxyAnnouncement) predicate.ProxyAnnouncement
- func Content(v string) predicate.ProxyAnnouncement
- func ContentContains(v string) predicate.ProxyAnnouncement
- func ContentContainsFold(v string) predicate.ProxyAnnouncement
- func ContentEQ(v string) predicate.ProxyAnnouncement
- func ContentEqualFold(v string) predicate.ProxyAnnouncement
- func ContentGT(v string) predicate.ProxyAnnouncement
- func ContentGTE(v string) predicate.ProxyAnnouncement
- func ContentHasPrefix(v string) predicate.ProxyAnnouncement
- func ContentHasSuffix(v string) predicate.ProxyAnnouncement
- func ContentIn(vs ...string) predicate.ProxyAnnouncement
- func ContentIsNil() predicate.ProxyAnnouncement
- func ContentLT(v string) predicate.ProxyAnnouncement
- func ContentLTE(v string) predicate.ProxyAnnouncement
- func ContentNEQ(v string) predicate.ProxyAnnouncement
- func ContentNotIn(vs ...string) predicate.ProxyAnnouncement
- func ContentNotNil() predicate.ProxyAnnouncement
- func CreatedAt(v time.Time) predicate.ProxyAnnouncement
- func CreatedAtEQ(v time.Time) predicate.ProxyAnnouncement
- func CreatedAtGT(v time.Time) predicate.ProxyAnnouncement
- func CreatedAtGTE(v time.Time) predicate.ProxyAnnouncement
- func CreatedAtIn(vs ...time.Time) predicate.ProxyAnnouncement
- func CreatedAtLT(v time.Time) predicate.ProxyAnnouncement
- func CreatedAtLTE(v time.Time) predicate.ProxyAnnouncement
- func CreatedAtNEQ(v time.Time) predicate.ProxyAnnouncement
- func CreatedAtNotIn(vs ...time.Time) predicate.ProxyAnnouncement
- func ID(id int64) predicate.ProxyAnnouncement
- func IDEQ(id int64) predicate.ProxyAnnouncement
- func IDGT(id int64) predicate.ProxyAnnouncement
- func IDGTE(id int64) predicate.ProxyAnnouncement
- func IDIn(ids ...int64) predicate.ProxyAnnouncement
- func IDLT(id int64) predicate.ProxyAnnouncement
- func IDLTE(id int64) predicate.ProxyAnnouncement
- func IDNEQ(id int64) predicate.ProxyAnnouncement
- func IDNotIn(ids ...int64) predicate.ProxyAnnouncement
- func Not(p predicate.ProxyAnnouncement) predicate.ProxyAnnouncement
- func Or(predicates ...predicate.ProxyAnnouncement) predicate.ProxyAnnouncement
- func Pinned(v bool) predicate.ProxyAnnouncement
- func PinnedEQ(v bool) predicate.ProxyAnnouncement
- func PinnedNEQ(v bool) predicate.ProxyAnnouncement
- func Popup(v bool) predicate.ProxyAnnouncement
- func PopupEQ(v bool) predicate.ProxyAnnouncement
- func PopupNEQ(v bool) predicate.ProxyAnnouncement
- func Show(v bool) predicate.ProxyAnnouncement
- func ShowEQ(v bool) predicate.ProxyAnnouncement
- func ShowNEQ(v bool) predicate.ProxyAnnouncement
- func Title(v string) predicate.ProxyAnnouncement
- func TitleContains(v string) predicate.ProxyAnnouncement
- func TitleContainsFold(v string) predicate.ProxyAnnouncement
- func TitleEQ(v string) predicate.ProxyAnnouncement
- func TitleEqualFold(v string) predicate.ProxyAnnouncement
- func TitleGT(v string) predicate.ProxyAnnouncement
- func TitleGTE(v string) predicate.ProxyAnnouncement
- func TitleHasPrefix(v string) predicate.ProxyAnnouncement
- func TitleHasSuffix(v string) predicate.ProxyAnnouncement
- func TitleIn(vs ...string) predicate.ProxyAnnouncement
- func TitleLT(v string) predicate.ProxyAnnouncement
- func TitleLTE(v string) predicate.ProxyAnnouncement
- func TitleNEQ(v string) predicate.ProxyAnnouncement
- func TitleNotIn(vs ...string) predicate.ProxyAnnouncement
- func UpdatedAt(v time.Time) predicate.ProxyAnnouncement
- func UpdatedAtEQ(v time.Time) predicate.ProxyAnnouncement
- func UpdatedAtGT(v time.Time) predicate.ProxyAnnouncement
- func UpdatedAtGTE(v time.Time) predicate.ProxyAnnouncement
- func UpdatedAtIn(vs ...time.Time) predicate.ProxyAnnouncement
- func UpdatedAtLT(v time.Time) predicate.ProxyAnnouncement
- func UpdatedAtLTE(v time.Time) predicate.ProxyAnnouncement
- func UpdatedAtNEQ(v time.Time) predicate.ProxyAnnouncement
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyAnnouncement
- func ValidColumn(column string) bool
- type OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPinned(opts ...sql.OrderTermOption) OrderOption
- func ByPopup(opts ...sql.OrderTermOption) OrderOption
- func ByShow(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the proxyannouncement type in the database. Label = "proxy_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" // FieldShow holds the string denoting the show field in the database. FieldShow = "show" // FieldPinned holds the string denoting the pinned field in the database. FieldPinned = "pinned" // FieldPopup holds the string denoting the popup field in the database. FieldPopup = "popup" // 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" // Table holds the table name of the proxyannouncement in the database. Table = "announcement" )
Variables ¶
var ( // DefaultTitle holds the default value on creation for the "title" field. DefaultTitle string // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultShow holds the default value on creation for the "show" field. DefaultShow bool // DefaultPinned holds the default value on creation for the "pinned" field. DefaultPinned bool // DefaultPopup holds the default value on creation for the "popup" field. DefaultPopup bool // 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 )
var Columns = []string{ FieldID, FieldTitle, FieldContent, FieldShow, FieldPinned, FieldPopup, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for proxyannouncement fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProxyAnnouncement) predicate.ProxyAnnouncement
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.ProxyAnnouncement
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.ProxyAnnouncement
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.ProxyAnnouncement
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.ProxyAnnouncement
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.ProxyAnnouncement
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.ProxyAnnouncement
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.ProxyAnnouncement
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.ProxyAnnouncement
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.ProxyAnnouncement
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.ProxyAnnouncement
ContentIn applies the In predicate on the "content" field.
func ContentIsNil ¶
func ContentIsNil() predicate.ProxyAnnouncement
ContentIsNil applies the IsNil predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.ProxyAnnouncement
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.ProxyAnnouncement
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.ProxyAnnouncement
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.ProxyAnnouncement
ContentNotIn applies the NotIn predicate on the "content" field.
func ContentNotNil ¶
func ContentNotNil() predicate.ProxyAnnouncement
ContentNotNil applies the NotNil predicate on the "content" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProxyAnnouncement
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProxyAnnouncement
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProxyAnnouncement
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProxyAnnouncement
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProxyAnnouncement
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProxyAnnouncement
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProxyAnnouncement
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProxyAnnouncement
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProxyAnnouncement
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ID ¶
func ID(id int64) predicate.ProxyAnnouncement
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int64) predicate.ProxyAnnouncement
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.ProxyAnnouncement
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.ProxyAnnouncement
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.ProxyAnnouncement
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.ProxyAnnouncement
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.ProxyAnnouncement
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.ProxyAnnouncement
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.ProxyAnnouncement
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ProxyAnnouncement) predicate.ProxyAnnouncement
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProxyAnnouncement) predicate.ProxyAnnouncement
Or groups predicates with the OR operator between them.
func Pinned ¶
func Pinned(v bool) predicate.ProxyAnnouncement
Pinned applies equality check predicate on the "pinned" field. It's identical to PinnedEQ.
func PinnedEQ ¶
func PinnedEQ(v bool) predicate.ProxyAnnouncement
PinnedEQ applies the EQ predicate on the "pinned" field.
func PinnedNEQ ¶
func PinnedNEQ(v bool) predicate.ProxyAnnouncement
PinnedNEQ applies the NEQ predicate on the "pinned" field.
func Popup ¶
func Popup(v bool) predicate.ProxyAnnouncement
Popup applies equality check predicate on the "popup" field. It's identical to PopupEQ.
func PopupEQ ¶
func PopupEQ(v bool) predicate.ProxyAnnouncement
PopupEQ applies the EQ predicate on the "popup" field.
func PopupNEQ ¶
func PopupNEQ(v bool) predicate.ProxyAnnouncement
PopupNEQ applies the NEQ predicate on the "popup" field.
func Show ¶
func Show(v bool) predicate.ProxyAnnouncement
Show applies equality check predicate on the "show" field. It's identical to ShowEQ.
func ShowEQ ¶
func ShowEQ(v bool) predicate.ProxyAnnouncement
ShowEQ applies the EQ predicate on the "show" field.
func ShowNEQ ¶
func ShowNEQ(v bool) predicate.ProxyAnnouncement
ShowNEQ applies the NEQ predicate on the "show" field.
func Title ¶
func Title(v string) predicate.ProxyAnnouncement
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
func TitleContains(v string) predicate.ProxyAnnouncement
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
func TitleContainsFold(v string) predicate.ProxyAnnouncement
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEQ ¶
func TitleEQ(v string) predicate.ProxyAnnouncement
TitleEQ applies the EQ predicate on the "title" field.
func TitleEqualFold ¶
func TitleEqualFold(v string) predicate.ProxyAnnouncement
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleGT ¶
func TitleGT(v string) predicate.ProxyAnnouncement
TitleGT applies the GT predicate on the "title" field.
func TitleGTE ¶
func TitleGTE(v string) predicate.ProxyAnnouncement
TitleGTE applies the GTE predicate on the "title" field.
func TitleHasPrefix ¶
func TitleHasPrefix(v string) predicate.ProxyAnnouncement
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
func TitleHasSuffix(v string) predicate.ProxyAnnouncement
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIn ¶
func TitleIn(vs ...string) predicate.ProxyAnnouncement
TitleIn applies the In predicate on the "title" field.
func TitleLT ¶
func TitleLT(v string) predicate.ProxyAnnouncement
TitleLT applies the LT predicate on the "title" field.
func TitleLTE ¶
func TitleLTE(v string) predicate.ProxyAnnouncement
TitleLTE applies the LTE predicate on the "title" field.
func TitleNEQ ¶
func TitleNEQ(v string) predicate.ProxyAnnouncement
TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNotIn ¶
func TitleNotIn(vs ...string) predicate.ProxyAnnouncement
TitleNotIn applies the NotIn predicate on the "title" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ProxyAnnouncement
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ProxyAnnouncement
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ProxyAnnouncement
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ProxyAnnouncement
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ProxyAnnouncement
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ProxyAnnouncement
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ProxyAnnouncement
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ProxyAnnouncement
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyAnnouncement
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ProxyAnnouncement queries.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPinned ¶
func ByPinned(opts ...sql.OrderTermOption) OrderOption
ByPinned orders the results by the pinned field.
func ByPopup ¶
func ByPopup(opts ...sql.OrderTermOption) OrderOption
ByPopup orders the results by the popup field.
func ByShow ¶
func ByShow(opts ...sql.OrderTermOption) OrderOption
ByShow orders the results by the show field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.