Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProxyTicket) predicate.ProxyTicket
- func CreatedAt(v time.Time) predicate.ProxyTicket
- func CreatedAtEQ(v time.Time) predicate.ProxyTicket
- func CreatedAtGT(v time.Time) predicate.ProxyTicket
- func CreatedAtGTE(v time.Time) predicate.ProxyTicket
- func CreatedAtIn(vs ...time.Time) predicate.ProxyTicket
- func CreatedAtLT(v time.Time) predicate.ProxyTicket
- func CreatedAtLTE(v time.Time) predicate.ProxyTicket
- func CreatedAtNEQ(v time.Time) predicate.ProxyTicket
- func CreatedAtNotIn(vs ...time.Time) predicate.ProxyTicket
- func Description(v string) predicate.ProxyTicket
- func DescriptionContains(v string) predicate.ProxyTicket
- func DescriptionContainsFold(v string) predicate.ProxyTicket
- func DescriptionEQ(v string) predicate.ProxyTicket
- func DescriptionEqualFold(v string) predicate.ProxyTicket
- func DescriptionGT(v string) predicate.ProxyTicket
- func DescriptionGTE(v string) predicate.ProxyTicket
- func DescriptionHasPrefix(v string) predicate.ProxyTicket
- func DescriptionHasSuffix(v string) predicate.ProxyTicket
- func DescriptionIn(vs ...string) predicate.ProxyTicket
- func DescriptionIsNil() predicate.ProxyTicket
- func DescriptionLT(v string) predicate.ProxyTicket
- func DescriptionLTE(v string) predicate.ProxyTicket
- func DescriptionNEQ(v string) predicate.ProxyTicket
- func DescriptionNotIn(vs ...string) predicate.ProxyTicket
- func DescriptionNotNil() predicate.ProxyTicket
- func ID(id int64) predicate.ProxyTicket
- func IDEQ(id int64) predicate.ProxyTicket
- func IDGT(id int64) predicate.ProxyTicket
- func IDGTE(id int64) predicate.ProxyTicket
- func IDIn(ids ...int64) predicate.ProxyTicket
- func IDLT(id int64) predicate.ProxyTicket
- func IDLTE(id int64) predicate.ProxyTicket
- func IDNEQ(id int64) predicate.ProxyTicket
- func IDNotIn(ids ...int64) predicate.ProxyTicket
- func Not(p predicate.ProxyTicket) predicate.ProxyTicket
- func Or(predicates ...predicate.ProxyTicket) predicate.ProxyTicket
- func Status(v int8) predicate.ProxyTicket
- func StatusEQ(v int8) predicate.ProxyTicket
- func StatusGT(v int8) predicate.ProxyTicket
- func StatusGTE(v int8) predicate.ProxyTicket
- func StatusIn(vs ...int8) predicate.ProxyTicket
- func StatusLT(v int8) predicate.ProxyTicket
- func StatusLTE(v int8) predicate.ProxyTicket
- func StatusNEQ(v int8) predicate.ProxyTicket
- func StatusNotIn(vs ...int8) predicate.ProxyTicket
- func Title(v string) predicate.ProxyTicket
- func TitleContains(v string) predicate.ProxyTicket
- func TitleContainsFold(v string) predicate.ProxyTicket
- func TitleEQ(v string) predicate.ProxyTicket
- func TitleEqualFold(v string) predicate.ProxyTicket
- func TitleGT(v string) predicate.ProxyTicket
- func TitleGTE(v string) predicate.ProxyTicket
- func TitleHasPrefix(v string) predicate.ProxyTicket
- func TitleHasSuffix(v string) predicate.ProxyTicket
- func TitleIn(vs ...string) predicate.ProxyTicket
- func TitleLT(v string) predicate.ProxyTicket
- func TitleLTE(v string) predicate.ProxyTicket
- func TitleNEQ(v string) predicate.ProxyTicket
- func TitleNotIn(vs ...string) predicate.ProxyTicket
- func UpdatedAt(v time.Time) predicate.ProxyTicket
- func UpdatedAtEQ(v time.Time) predicate.ProxyTicket
- func UpdatedAtGT(v time.Time) predicate.ProxyTicket
- func UpdatedAtGTE(v time.Time) predicate.ProxyTicket
- func UpdatedAtIn(vs ...time.Time) predicate.ProxyTicket
- func UpdatedAtLT(v time.Time) predicate.ProxyTicket
- func UpdatedAtLTE(v time.Time) predicate.ProxyTicket
- func UpdatedAtNEQ(v time.Time) predicate.ProxyTicket
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyTicket
- func UserID(v int64) predicate.ProxyTicket
- func UserIDEQ(v int64) predicate.ProxyTicket
- func UserIDGT(v int64) predicate.ProxyTicket
- func UserIDGTE(v int64) predicate.ProxyTicket
- func UserIDIn(vs ...int64) predicate.ProxyTicket
- func UserIDLT(v int64) predicate.ProxyTicket
- func UserIDLTE(v int64) predicate.ProxyTicket
- func UserIDNEQ(v int64) predicate.ProxyTicket
- func UserIDNotIn(vs ...int64) predicate.ProxyTicket
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the proxyticket type in the database. Label = "proxy_ticket" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // 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 proxyticket in the database. Table = "ticket" )
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 // DefaultUserID holds the default value on creation for the "user_id" field. DefaultUserID int64 // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus int8 // 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, FieldDescription, FieldUserID, FieldStatus, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for proxyticket fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProxyTicket) predicate.ProxyTicket
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProxyTicket
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProxyTicket
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProxyTicket
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProxyTicket
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProxyTicket
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProxyTicket
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProxyTicket
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProxyTicket
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProxyTicket
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
func Description(v string) predicate.ProxyTicket
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.ProxyTicket
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.ProxyTicket
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.ProxyTicket
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.ProxyTicket
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.ProxyTicket
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.ProxyTicket
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.ProxyTicket
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.ProxyTicket
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.ProxyTicket
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.ProxyTicket
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.ProxyTicket
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.ProxyTicket
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.ProxyTicket
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.ProxyTicket
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.ProxyTicket
DescriptionNotNil applies the NotNil predicate on the "description" field.
func IDEQ ¶
func IDEQ(id int64) predicate.ProxyTicket
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.ProxyTicket
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.ProxyTicket
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.ProxyTicket
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.ProxyTicket
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.ProxyTicket
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.ProxyTicket
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.ProxyTicket
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ProxyTicket) predicate.ProxyTicket
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProxyTicket) predicate.ProxyTicket
Or groups predicates with the OR operator between them.
func Status ¶
func Status(v int8) predicate.ProxyTicket
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusEQ ¶
func StatusEQ(v int8) predicate.ProxyTicket
StatusEQ applies the EQ predicate on the "status" field.
func StatusGT ¶
func StatusGT(v int8) predicate.ProxyTicket
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v int8) predicate.ProxyTicket
StatusGTE applies the GTE predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...int8) predicate.ProxyTicket
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v int8) predicate.ProxyTicket
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v int8) predicate.ProxyTicket
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v int8) predicate.ProxyTicket
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...int8) predicate.ProxyTicket
StatusNotIn applies the NotIn predicate on the "status" field.
func Title ¶
func Title(v string) predicate.ProxyTicket
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
func TitleContains(v string) predicate.ProxyTicket
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
func TitleContainsFold(v string) predicate.ProxyTicket
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEQ ¶
func TitleEQ(v string) predicate.ProxyTicket
TitleEQ applies the EQ predicate on the "title" field.
func TitleEqualFold ¶
func TitleEqualFold(v string) predicate.ProxyTicket
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleGT ¶
func TitleGT(v string) predicate.ProxyTicket
TitleGT applies the GT predicate on the "title" field.
func TitleGTE ¶
func TitleGTE(v string) predicate.ProxyTicket
TitleGTE applies the GTE predicate on the "title" field.
func TitleHasPrefix ¶
func TitleHasPrefix(v string) predicate.ProxyTicket
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
func TitleHasSuffix(v string) predicate.ProxyTicket
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIn ¶
func TitleIn(vs ...string) predicate.ProxyTicket
TitleIn applies the In predicate on the "title" field.
func TitleLT ¶
func TitleLT(v string) predicate.ProxyTicket
TitleLT applies the LT predicate on the "title" field.
func TitleLTE ¶
func TitleLTE(v string) predicate.ProxyTicket
TitleLTE applies the LTE predicate on the "title" field.
func TitleNEQ ¶
func TitleNEQ(v string) predicate.ProxyTicket
TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNotIn ¶
func TitleNotIn(vs ...string) predicate.ProxyTicket
TitleNotIn applies the NotIn predicate on the "title" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ProxyTicket
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ProxyTicket
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ProxyTicket
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ProxyTicket
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ProxyTicket
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ProxyTicket
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ProxyTicket
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ProxyTicket
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyTicket
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
func UserID(v int64) predicate.ProxyTicket
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int64) predicate.ProxyTicket
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v int64) predicate.ProxyTicket
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v int64) predicate.ProxyTicket
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int64) predicate.ProxyTicket
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v int64) predicate.ProxyTicket
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v int64) predicate.ProxyTicket
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int64) predicate.ProxyTicket
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int64) predicate.ProxyTicket
UserIDNotIn applies the NotIn predicate on the "user_id" 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 ProxyTicket queries.
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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status 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.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.