Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Wechat) predicate.Wechat
- func AppTypeEQ(v AppType) predicate.Wechat
- func AppTypeIn(vs ...AppType) predicate.Wechat
- func AppTypeNEQ(v AppType) predicate.Wechat
- func AppTypeNotIn(vs ...AppType) predicate.Wechat
- func AppTypeValidator(at AppType) error
- func CreateTime(v time.Time) predicate.Wechat
- func CreateTimeEQ(v time.Time) predicate.Wechat
- func CreateTimeGT(v time.Time) predicate.Wechat
- func CreateTimeGTE(v time.Time) predicate.Wechat
- func CreateTimeIn(vs ...time.Time) predicate.Wechat
- func CreateTimeLT(v time.Time) predicate.Wechat
- func CreateTimeLTE(v time.Time) predicate.Wechat
- func CreateTimeNEQ(v time.Time) predicate.Wechat
- func CreateTimeNotIn(vs ...time.Time) predicate.Wechat
- func HasCustomers() predicate.Wechat
- func HasCustomersWith(preds ...predicate.Customer) predicate.Wechat
- func ID(id int) predicate.Wechat
- func IDEQ(id int) predicate.Wechat
- func IDGT(id int) predicate.Wechat
- func IDGTE(id int) predicate.Wechat
- func IDIn(ids ...int) predicate.Wechat
- func IDLT(id int) predicate.Wechat
- func IDLTE(id int) predicate.Wechat
- func IDNEQ(id int) predicate.Wechat
- func IDNotIn(ids ...int) predicate.Wechat
- func MetaData(v []byte) predicate.Wechat
- func MetaDataEQ(v []byte) predicate.Wechat
- func MetaDataGT(v []byte) predicate.Wechat
- func MetaDataGTE(v []byte) predicate.Wechat
- func MetaDataIn(vs ...[]byte) predicate.Wechat
- func MetaDataIsNil() predicate.Wechat
- func MetaDataLT(v []byte) predicate.Wechat
- func MetaDataLTE(v []byte) predicate.Wechat
- func MetaDataNEQ(v []byte) predicate.Wechat
- func MetaDataNotIn(vs ...[]byte) predicate.Wechat
- func MetaDataNotNil() predicate.Wechat
- func Not(p predicate.Wechat) predicate.Wechat
- func Openid(v string) predicate.Wechat
- func OpenidContains(v string) predicate.Wechat
- func OpenidContainsFold(v string) predicate.Wechat
- func OpenidEQ(v string) predicate.Wechat
- func OpenidEqualFold(v string) predicate.Wechat
- func OpenidGT(v string) predicate.Wechat
- func OpenidGTE(v string) predicate.Wechat
- func OpenidHasPrefix(v string) predicate.Wechat
- func OpenidHasSuffix(v string) predicate.Wechat
- func OpenidIn(vs ...string) predicate.Wechat
- func OpenidLT(v string) predicate.Wechat
- func OpenidLTE(v string) predicate.Wechat
- func OpenidNEQ(v string) predicate.Wechat
- func OpenidNotIn(vs ...string) predicate.Wechat
- func Or(predicates ...predicate.Wechat) predicate.Wechat
- func UnionId(v string) predicate.Wechat
- func UnionIdContains(v string) predicate.Wechat
- func UnionIdContainsFold(v string) predicate.Wechat
- func UnionIdEQ(v string) predicate.Wechat
- func UnionIdEqualFold(v string) predicate.Wechat
- func UnionIdGT(v string) predicate.Wechat
- func UnionIdGTE(v string) predicate.Wechat
- func UnionIdHasPrefix(v string) predicate.Wechat
- func UnionIdHasSuffix(v string) predicate.Wechat
- func UnionIdIn(vs ...string) predicate.Wechat
- func UnionIdLT(v string) predicate.Wechat
- func UnionIdLTE(v string) predicate.Wechat
- func UnionIdNEQ(v string) predicate.Wechat
- func UnionIdNotIn(vs ...string) predicate.Wechat
- func UpdateTime(v time.Time) predicate.Wechat
- func UpdateTimeEQ(v time.Time) predicate.Wechat
- func UpdateTimeGT(v time.Time) predicate.Wechat
- func UpdateTimeGTE(v time.Time) predicate.Wechat
- func UpdateTimeIn(vs ...time.Time) predicate.Wechat
- func UpdateTimeLT(v time.Time) predicate.Wechat
- func UpdateTimeLTE(v time.Time) predicate.Wechat
- func UpdateTimeNEQ(v time.Time) predicate.Wechat
- func UpdateTimeNotIn(vs ...time.Time) predicate.Wechat
- func ValidColumn(column string) bool
- type AppType
Constants ¶
const ( // Label holds the string label denoting the wechat type in the database. Label = "wechat" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldOpenid holds the string denoting the openid field in the database. FieldOpenid = "openid" // FieldUnionId holds the string denoting the unionid field in the database. FieldUnionId = "union_id" // FieldAppType holds the string denoting the app_type field in the database. FieldAppType = "app_type" // FieldMetaData holds the string denoting the meta_data field in the database. FieldMetaData = "meta_data" // EdgeCustomers holds the string denoting the customers edge name in mutations. EdgeCustomers = "customers" // Table holds the table name of the wechat in the database. Table = "wechats" // CustomersTable is the table the holds the customers relation/edge. CustomersTable = "wechats" // CustomersInverseTable is the table name for the Customer entity. // It exists in this package in order to avoid circular dependency with the "customer" package. CustomersInverseTable = "customers" // CustomersColumn is the table column denoting the customers relation/edge. CustomersColumn = "customer_wechats" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // OpenidValidator is a validator for the "openid" field. It is called by the builders before save. OpenidValidator func(string) error // UnionIdValidator is a validator for the "unionId" field. It is called by the builders before save. UnionIdValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldOpenid, FieldUnionId, FieldAppType, FieldMetaData, }
Columns holds all SQL columns for wechat fields.
var ForeignKeys = []string{
"customer_wechats",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "wechats" table and are not defined as standalone fields in the schema.
Functions ¶
func AppTypeNEQ ¶
AppTypeNEQ applies the NEQ predicate on the "app_type" field.
func AppTypeNotIn ¶
AppTypeNotIn applies the NotIn predicate on the "app_type" field.
func AppTypeValidator ¶
AppTypeValidator is a validator for the "app_type" field enum values. It is called by the builders before save.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasCustomers ¶
HasCustomers applies the HasEdge predicate on the "customers" edge.
func HasCustomersWith ¶
HasCustomersWith applies the HasEdge predicate on the "customers" edge with a given conditions (other predicates).
func MetaData ¶
MetaData applies equality check predicate on the "meta_data" field. It's identical to MetaDataEQ.
func MetaDataEQ ¶
MetaDataEQ applies the EQ predicate on the "meta_data" field.
func MetaDataGT ¶
MetaDataGT applies the GT predicate on the "meta_data" field.
func MetaDataGTE ¶
MetaDataGTE applies the GTE predicate on the "meta_data" field.
func MetaDataIn ¶
MetaDataIn applies the In predicate on the "meta_data" field.
func MetaDataIsNil ¶
MetaDataIsNil applies the IsNil predicate on the "meta_data" field.
func MetaDataLT ¶
MetaDataLT applies the LT predicate on the "meta_data" field.
func MetaDataLTE ¶
MetaDataLTE applies the LTE predicate on the "meta_data" field.
func MetaDataNEQ ¶
MetaDataNEQ applies the NEQ predicate on the "meta_data" field.
func MetaDataNotIn ¶
MetaDataNotIn applies the NotIn predicate on the "meta_data" field.
func MetaDataNotNil ¶
MetaDataNotNil applies the NotNil predicate on the "meta_data" field.
func Openid ¶
Openid applies equality check predicate on the "openid" field. It's identical to OpenidEQ.
func OpenidContains ¶
OpenidContains applies the Contains predicate on the "openid" field.
func OpenidContainsFold ¶
OpenidContainsFold applies the ContainsFold predicate on the "openid" field.
func OpenidEqualFold ¶
OpenidEqualFold applies the EqualFold predicate on the "openid" field.
func OpenidHasPrefix ¶
OpenidHasPrefix applies the HasPrefix predicate on the "openid" field.
func OpenidHasSuffix ¶
OpenidHasSuffix applies the HasSuffix predicate on the "openid" field.
func OpenidNotIn ¶
OpenidNotIn applies the NotIn predicate on the "openid" field.
func UnionId ¶
UnionId applies equality check predicate on the "unionId" field. It's identical to UnionIdEQ.
func UnionIdContains ¶
UnionIdContains applies the Contains predicate on the "unionId" field.
func UnionIdContainsFold ¶
UnionIdContainsFold applies the ContainsFold predicate on the "unionId" field.
func UnionIdEqualFold ¶
UnionIdEqualFold applies the EqualFold predicate on the "unionId" field.
func UnionIdGTE ¶
UnionIdGTE applies the GTE predicate on the "unionId" field.
func UnionIdHasPrefix ¶
UnionIdHasPrefix applies the HasPrefix predicate on the "unionId" field.
func UnionIdHasSuffix ¶
UnionIdHasSuffix applies the HasSuffix predicate on the "unionId" field.
func UnionIdLTE ¶
UnionIdLTE applies the LTE predicate on the "unionId" field.
func UnionIdNEQ ¶
UnionIdNEQ applies the NEQ predicate on the "unionId" field.
func UnionIdNotIn ¶
UnionIdNotIn applies the NotIn predicate on the "unionId" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).