Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProxyAds) predicate.ProxyAds
- func Content(v string) predicate.ProxyAds
- func ContentContains(v string) predicate.ProxyAds
- func ContentContainsFold(v string) predicate.ProxyAds
- func ContentEQ(v string) predicate.ProxyAds
- func ContentEqualFold(v string) predicate.ProxyAds
- func ContentGT(v string) predicate.ProxyAds
- func ContentGTE(v string) predicate.ProxyAds
- func ContentHasPrefix(v string) predicate.ProxyAds
- func ContentHasSuffix(v string) predicate.ProxyAds
- func ContentIn(vs ...string) predicate.ProxyAds
- func ContentIsNil() predicate.ProxyAds
- func ContentLT(v string) predicate.ProxyAds
- func ContentLTE(v string) predicate.ProxyAds
- func ContentNEQ(v string) predicate.ProxyAds
- func ContentNotIn(vs ...string) predicate.ProxyAds
- func ContentNotNil() predicate.ProxyAds
- func CreatedAt(v time.Time) predicate.ProxyAds
- func CreatedAtEQ(v time.Time) predicate.ProxyAds
- func CreatedAtGT(v time.Time) predicate.ProxyAds
- func CreatedAtGTE(v time.Time) predicate.ProxyAds
- func CreatedAtIn(vs ...time.Time) predicate.ProxyAds
- func CreatedAtLT(v time.Time) predicate.ProxyAds
- func CreatedAtLTE(v time.Time) predicate.ProxyAds
- func CreatedAtNEQ(v time.Time) predicate.ProxyAds
- func CreatedAtNotIn(vs ...time.Time) predicate.ProxyAds
- func Description(v string) predicate.ProxyAds
- func DescriptionContains(v string) predicate.ProxyAds
- func DescriptionContainsFold(v string) predicate.ProxyAds
- func DescriptionEQ(v string) predicate.ProxyAds
- func DescriptionEqualFold(v string) predicate.ProxyAds
- func DescriptionGT(v string) predicate.ProxyAds
- func DescriptionGTE(v string) predicate.ProxyAds
- func DescriptionHasPrefix(v string) predicate.ProxyAds
- func DescriptionHasSuffix(v string) predicate.ProxyAds
- func DescriptionIn(vs ...string) predicate.ProxyAds
- func DescriptionIsNil() predicate.ProxyAds
- func DescriptionLT(v string) predicate.ProxyAds
- func DescriptionLTE(v string) predicate.ProxyAds
- func DescriptionNEQ(v string) predicate.ProxyAds
- func DescriptionNotIn(vs ...string) predicate.ProxyAds
- func DescriptionNotNil() predicate.ProxyAds
- func EndTime(v time.Time) predicate.ProxyAds
- func EndTimeEQ(v time.Time) predicate.ProxyAds
- func EndTimeGT(v time.Time) predicate.ProxyAds
- func EndTimeGTE(v time.Time) predicate.ProxyAds
- func EndTimeIn(vs ...time.Time) predicate.ProxyAds
- func EndTimeLT(v time.Time) predicate.ProxyAds
- func EndTimeLTE(v time.Time) predicate.ProxyAds
- func EndTimeNEQ(v time.Time) predicate.ProxyAds
- func EndTimeNotIn(vs ...time.Time) predicate.ProxyAds
- func ID(id int64) predicate.ProxyAds
- func IDEQ(id int64) predicate.ProxyAds
- func IDGT(id int64) predicate.ProxyAds
- func IDGTE(id int64) predicate.ProxyAds
- func IDIn(ids ...int64) predicate.ProxyAds
- func IDLT(id int64) predicate.ProxyAds
- func IDLTE(id int64) predicate.ProxyAds
- func IDNEQ(id int64) predicate.ProxyAds
- func IDNotIn(ids ...int64) predicate.ProxyAds
- func Not(p predicate.ProxyAds) predicate.ProxyAds
- func Or(predicates ...predicate.ProxyAds) predicate.ProxyAds
- func StartTime(v time.Time) predicate.ProxyAds
- func StartTimeEQ(v time.Time) predicate.ProxyAds
- func StartTimeGT(v time.Time) predicate.ProxyAds
- func StartTimeGTE(v time.Time) predicate.ProxyAds
- func StartTimeIn(vs ...time.Time) predicate.ProxyAds
- func StartTimeLT(v time.Time) predicate.ProxyAds
- func StartTimeLTE(v time.Time) predicate.ProxyAds
- func StartTimeNEQ(v time.Time) predicate.ProxyAds
- func StartTimeNotIn(vs ...time.Time) predicate.ProxyAds
- func Status(v int) predicate.ProxyAds
- func StatusEQ(v int) predicate.ProxyAds
- func StatusGT(v int) predicate.ProxyAds
- func StatusGTE(v int) predicate.ProxyAds
- func StatusIn(vs ...int) predicate.ProxyAds
- func StatusLT(v int) predicate.ProxyAds
- func StatusLTE(v int) predicate.ProxyAds
- func StatusNEQ(v int) predicate.ProxyAds
- func StatusNotIn(vs ...int) predicate.ProxyAds
- func TargetURL(v string) predicate.ProxyAds
- func TargetURLContains(v string) predicate.ProxyAds
- func TargetURLContainsFold(v string) predicate.ProxyAds
- func TargetURLEQ(v string) predicate.ProxyAds
- func TargetURLEqualFold(v string) predicate.ProxyAds
- func TargetURLGT(v string) predicate.ProxyAds
- func TargetURLGTE(v string) predicate.ProxyAds
- func TargetURLHasPrefix(v string) predicate.ProxyAds
- func TargetURLHasSuffix(v string) predicate.ProxyAds
- func TargetURLIn(vs ...string) predicate.ProxyAds
- func TargetURLLT(v string) predicate.ProxyAds
- func TargetURLLTE(v string) predicate.ProxyAds
- func TargetURLNEQ(v string) predicate.ProxyAds
- func TargetURLNotIn(vs ...string) predicate.ProxyAds
- func Title(v string) predicate.ProxyAds
- func TitleContains(v string) predicate.ProxyAds
- func TitleContainsFold(v string) predicate.ProxyAds
- func TitleEQ(v string) predicate.ProxyAds
- func TitleEqualFold(v string) predicate.ProxyAds
- func TitleGT(v string) predicate.ProxyAds
- func TitleGTE(v string) predicate.ProxyAds
- func TitleHasPrefix(v string) predicate.ProxyAds
- func TitleHasSuffix(v string) predicate.ProxyAds
- func TitleIn(vs ...string) predicate.ProxyAds
- func TitleLT(v string) predicate.ProxyAds
- func TitleLTE(v string) predicate.ProxyAds
- func TitleNEQ(v string) predicate.ProxyAds
- func TitleNotIn(vs ...string) predicate.ProxyAds
- func Type(v string) predicate.ProxyAds
- func TypeContains(v string) predicate.ProxyAds
- func TypeContainsFold(v string) predicate.ProxyAds
- func TypeEQ(v string) predicate.ProxyAds
- func TypeEqualFold(v string) predicate.ProxyAds
- func TypeGT(v string) predicate.ProxyAds
- func TypeGTE(v string) predicate.ProxyAds
- func TypeHasPrefix(v string) predicate.ProxyAds
- func TypeHasSuffix(v string) predicate.ProxyAds
- func TypeIn(vs ...string) predicate.ProxyAds
- func TypeLT(v string) predicate.ProxyAds
- func TypeLTE(v string) predicate.ProxyAds
- func TypeNEQ(v string) predicate.ProxyAds
- func TypeNotIn(vs ...string) predicate.ProxyAds
- func UpdatedAt(v time.Time) predicate.ProxyAds
- func UpdatedAtEQ(v time.Time) predicate.ProxyAds
- func UpdatedAtGT(v time.Time) predicate.ProxyAds
- func UpdatedAtGTE(v time.Time) predicate.ProxyAds
- func UpdatedAtIn(vs ...time.Time) predicate.ProxyAds
- func UpdatedAtLT(v time.Time) predicate.ProxyAds
- func UpdatedAtLTE(v time.Time) predicate.ProxyAds
- func UpdatedAtNEQ(v time.Time) predicate.ProxyAds
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyAds
- func ValidColumn(column string) bool
- type OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEndTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByStartTime(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTargetURL(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the proxyads type in the database. Label = "proxy_ads" // 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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldTargetURL holds the string denoting the target_url field in the database. FieldTargetURL = "target_url" // FieldStartTime holds the string denoting the start_time field in the database. FieldStartTime = "start_time" // FieldEndTime holds the string denoting the end_time field in the database. FieldEndTime = "end_time" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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 proxyads in the database. Table = "ads" )
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 // DefaultType holds the default value on creation for the "type" field. DefaultType string // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultTargetURL holds the default value on creation for the "target_url" field. DefaultTargetURL string // TargetURLValidator is a validator for the "target_url" field. It is called by the builders before save. TargetURLValidator func(string) error // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus int // 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, FieldType, FieldContent, FieldDescription, FieldTargetURL, FieldStartTime, FieldEndTime, FieldStatus, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for proxyads fields.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIsNil ¶
ContentIsNil applies the IsNil predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func ContentNotNil ¶
ContentNotNil applies the NotNil predicate on the "content" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func EndTime ¶
EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.
func EndTimeGTE ¶
EndTimeGTE applies the GTE predicate on the "end_time" field.
func EndTimeLTE ¶
EndTimeLTE applies the LTE predicate on the "end_time" field.
func EndTimeNEQ ¶
EndTimeNEQ applies the NEQ predicate on the "end_time" field.
func EndTimeNotIn ¶
EndTimeNotIn applies the NotIn predicate on the "end_time" field.
func StartTime ¶
StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.
func StartTimeEQ ¶
StartTimeEQ applies the EQ predicate on the "start_time" field.
func StartTimeGT ¶
StartTimeGT applies the GT predicate on the "start_time" field.
func StartTimeGTE ¶
StartTimeGTE applies the GTE predicate on the "start_time" field.
func StartTimeIn ¶
StartTimeIn applies the In predicate on the "start_time" field.
func StartTimeLT ¶
StartTimeLT applies the LT predicate on the "start_time" field.
func StartTimeLTE ¶
StartTimeLTE applies the LTE predicate on the "start_time" field.
func StartTimeNEQ ¶
StartTimeNEQ applies the NEQ predicate on the "start_time" field.
func StartTimeNotIn ¶
StartTimeNotIn applies the NotIn predicate on the "start_time" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func TargetURL ¶
TargetURL applies equality check predicate on the "target_url" field. It's identical to TargetURLEQ.
func TargetURLContains ¶
TargetURLContains applies the Contains predicate on the "target_url" field.
func TargetURLContainsFold ¶
TargetURLContainsFold applies the ContainsFold predicate on the "target_url" field.
func TargetURLEQ ¶
TargetURLEQ applies the EQ predicate on the "target_url" field.
func TargetURLEqualFold ¶
TargetURLEqualFold applies the EqualFold predicate on the "target_url" field.
func TargetURLGT ¶
TargetURLGT applies the GT predicate on the "target_url" field.
func TargetURLGTE ¶
TargetURLGTE applies the GTE predicate on the "target_url" field.
func TargetURLHasPrefix ¶
TargetURLHasPrefix applies the HasPrefix predicate on the "target_url" field.
func TargetURLHasSuffix ¶
TargetURLHasSuffix applies the HasSuffix predicate on the "target_url" field.
func TargetURLIn ¶
TargetURLIn applies the In predicate on the "target_url" field.
func TargetURLLT ¶
TargetURLLT applies the LT predicate on the "target_url" field.
func TargetURLLTE ¶
TargetURLLTE applies the LTE predicate on the "target_url" field.
func TargetURLNEQ ¶
TargetURLNEQ applies the NEQ predicate on the "target_url" field.
func TargetURLNotIn ¶
TargetURLNotIn applies the NotIn predicate on the "target_url" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
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 ProxyAds 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 ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEndTime ¶
func ByEndTime(opts ...sql.OrderTermOption) OrderOption
ByEndTime orders the results by the end_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByStartTime ¶
func ByStartTime(opts ...sql.OrderTermOption) OrderOption
ByStartTime orders the results by the start_time field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTargetURL ¶
func ByTargetURL(opts ...sql.OrderTermOption) OrderOption
ByTargetURL orders the results by the target_url field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.