Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Property) predicate.Property
- func CreatedAt(v time.Time) predicate.Property
- func CreatedAtEQ(v time.Time) predicate.Property
- func CreatedAtGT(v time.Time) predicate.Property
- func CreatedAtGTE(v time.Time) predicate.Property
- func CreatedAtIn(vs ...time.Time) predicate.Property
- func CreatedAtLT(v time.Time) predicate.Property
- func CreatedAtLTE(v time.Time) predicate.Property
- func CreatedAtNEQ(v time.Time) predicate.Property
- func CreatedAtNotIn(vs ...time.Time) predicate.Property
- func DeletedAt(v time.Time) predicate.Property
- func DeletedAtEQ(v time.Time) predicate.Property
- func DeletedAtGT(v time.Time) predicate.Property
- func DeletedAtGTE(v time.Time) predicate.Property
- func DeletedAtIn(vs ...time.Time) predicate.Property
- func DeletedAtIsNil() predicate.Property
- func DeletedAtLT(v time.Time) predicate.Property
- func DeletedAtLTE(v time.Time) predicate.Property
- func DeletedAtNEQ(v time.Time) predicate.Property
- func DeletedAtNotIn(vs ...time.Time) predicate.Property
- func DeletedAtNotNil() predicate.Property
- func HasPropertyValues() predicate.Property
- func HasPropertyValuesWith(preds ...predicate.PropertyValue) predicate.Property
- func ID(id uint64) predicate.Property
- func IDEQ(id uint64) predicate.Property
- func IDGT(id uint64) predicate.Property
- func IDGTE(id uint64) predicate.Property
- func IDIn(ids ...uint64) predicate.Property
- func IDLT(id uint64) predicate.Property
- func IDLTE(id uint64) predicate.Property
- func IDNEQ(id uint64) predicate.Property
- func IDNotIn(ids ...uint64) predicate.Property
- func Name(v string) predicate.Property
- func NameContains(v string) predicate.Property
- func NameContainsFold(v string) predicate.Property
- func NameEQ(v string) predicate.Property
- func NameEqualFold(v string) predicate.Property
- func NameGT(v string) predicate.Property
- func NameGTE(v string) predicate.Property
- func NameHasPrefix(v string) predicate.Property
- func NameHasSuffix(v string) predicate.Property
- func NameIn(vs ...string) predicate.Property
- func NameIsNil() predicate.Property
- func NameLT(v string) predicate.Property
- func NameLTE(v string) predicate.Property
- func NameNEQ(v string) predicate.Property
- func NameNotIn(vs ...string) predicate.Property
- func NameNotNil() predicate.Property
- func Not(p predicate.Property) predicate.Property
- func Or(predicates ...predicate.Property) predicate.Property
- func Remark(v string) predicate.Property
- func RemarkContains(v string) predicate.Property
- func RemarkContainsFold(v string) predicate.Property
- func RemarkEQ(v string) predicate.Property
- func RemarkEqualFold(v string) predicate.Property
- func RemarkGT(v string) predicate.Property
- func RemarkGTE(v string) predicate.Property
- func RemarkHasPrefix(v string) predicate.Property
- func RemarkHasSuffix(v string) predicate.Property
- func RemarkIn(vs ...string) predicate.Property
- func RemarkIsNil() predicate.Property
- func RemarkLT(v string) predicate.Property
- func RemarkLTE(v string) predicate.Property
- func RemarkNEQ(v string) predicate.Property
- func RemarkNotIn(vs ...string) predicate.Property
- func RemarkNotNil() predicate.Property
- func Status(v uint8) predicate.Property
- func StatusEQ(v uint8) predicate.Property
- func StatusGT(v uint8) predicate.Property
- func StatusGTE(v uint8) predicate.Property
- func StatusIn(vs ...uint8) predicate.Property
- func StatusIsNil() predicate.Property
- func StatusLT(v uint8) predicate.Property
- func StatusLTE(v uint8) predicate.Property
- func StatusNEQ(v uint8) predicate.Property
- func StatusNotIn(vs ...uint8) predicate.Property
- func StatusNotNil() predicate.Property
- func UpdatedAt(v time.Time) predicate.Property
- func UpdatedAtEQ(v time.Time) predicate.Property
- func UpdatedAtGT(v time.Time) predicate.Property
- func UpdatedAtGTE(v time.Time) predicate.Property
- func UpdatedAtIn(vs ...time.Time) predicate.Property
- func UpdatedAtLT(v time.Time) predicate.Property
- func UpdatedAtLTE(v time.Time) predicate.Property
- func UpdatedAtNEQ(v time.Time) predicate.Property
- func UpdatedAtNotIn(vs ...time.Time) predicate.Property
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPropertyValues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPropertyValuesCount(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the property type in the database. Label = "property" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // EdgePropertyValues holds the string denoting the property_values edge name in mutations. EdgePropertyValues = "property_values" // Table holds the table name of the property in the database. Table = "product_property" // PropertyValuesTable is the table that holds the property_values relation/edge. PropertyValuesTable = "product_property_value" // PropertyValuesInverseTable is the table name for the PropertyValue entity. // It exists in this package in order to avoid circular dependency with the "propertyvalue" package. PropertyValuesInverseTable = "product_property_value" // PropertyValuesColumn is the table column denoting the property_values relation/edge. PropertyValuesColumn = "property_id" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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 // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus uint8 )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/agui-coder/simple-admin-product-rpc/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldDeletedAt, FieldName, FieldRemark, }
Columns holds all SQL columns for property fields.
Functions ¶
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasPropertyValues ¶
HasPropertyValues applies the HasEdge predicate on the "property_values" edge.
func HasPropertyValuesWith ¶
func HasPropertyValuesWith(preds ...predicate.PropertyValue) predicate.Property
HasPropertyValuesWith applies the HasEdge predicate on the "property_values" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func Remark ¶
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEqualFold ¶
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkHasPrefix ¶
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkIsNil ¶
RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkNotIn ¶
RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotNil ¶
RemarkNotNil applies the NotNil predicate on the "remark" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" 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 Property queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPropertyValues ¶
func ByPropertyValues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPropertyValues orders the results by property_values terms.
func ByPropertyValuesCount ¶
func ByPropertyValuesCount(opts ...sql.OrderTermOption) OrderOption
ByPropertyValuesCount orders the results by property_values count.
func ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.