Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Member) predicate.Member
- func CreatedAt(v time.Time) predicate.Member
- func CreatedAtEQ(v time.Time) predicate.Member
- func CreatedAtGT(v time.Time) predicate.Member
- func CreatedAtGTE(v time.Time) predicate.Member
- func CreatedAtIn(vs ...time.Time) predicate.Member
- func CreatedAtLT(v time.Time) predicate.Member
- func CreatedAtLTE(v time.Time) predicate.Member
- func CreatedAtNEQ(v time.Time) predicate.Member
- func CreatedAtNotIn(vs ...time.Time) predicate.Member
- func DeletedAt(v time.Time) predicate.Member
- func DeletedAtEQ(v time.Time) predicate.Member
- func DeletedAtGT(v time.Time) predicate.Member
- func DeletedAtGTE(v time.Time) predicate.Member
- func DeletedAtIn(vs ...time.Time) predicate.Member
- func DeletedAtIsNil() predicate.Member
- func DeletedAtLT(v time.Time) predicate.Member
- func DeletedAtLTE(v time.Time) predicate.Member
- func DeletedAtNEQ(v time.Time) predicate.Member
- func DeletedAtNotIn(vs ...time.Time) predicate.Member
- func DeletedAtNotNil() predicate.Member
- func Email(v string) predicate.Member
- func EmailContains(v string) predicate.Member
- func EmailContainsFold(v string) predicate.Member
- func EmailEQ(v string) predicate.Member
- func EmailEqualFold(v string) predicate.Member
- func EmailGT(v string) predicate.Member
- func EmailGTE(v string) predicate.Member
- func EmailHasPrefix(v string) predicate.Member
- func EmailHasSuffix(v string) predicate.Member
- func EmailIn(vs ...string) predicate.Member
- func EmailLT(v string) predicate.Member
- func EmailLTE(v string) predicate.Member
- func EmailNEQ(v string) predicate.Member
- func EmailNotIn(vs ...string) predicate.Member
- func HasNamespace() predicate.Member
- func HasNamespaceWith(preds ...predicate.Namespace) predicate.Member
- func ID(id int) predicate.Member
- func IDEQ(id int) predicate.Member
- func IDGT(id int) predicate.Member
- func IDGTE(id int) predicate.Member
- func IDIn(ids ...int) predicate.Member
- func IDLT(id int) predicate.Member
- func IDLTE(id int) predicate.Member
- func IDNEQ(id int) predicate.Member
- func IDNotIn(ids ...int) predicate.Member
- func NamespaceID(v int) predicate.Member
- func NamespaceIDEQ(v int) predicate.Member
- func NamespaceIDIn(vs ...int) predicate.Member
- func NamespaceIDIsNil() predicate.Member
- func NamespaceIDNEQ(v int) predicate.Member
- func NamespaceIDNotIn(vs ...int) predicate.Member
- func NamespaceIDNotNil() predicate.Member
- func Not(p predicate.Member) predicate.Member
- func Or(predicates ...predicate.Member) predicate.Member
- func UpdatedAt(v time.Time) predicate.Member
- func UpdatedAtEQ(v time.Time) predicate.Member
- func UpdatedAtGT(v time.Time) predicate.Member
- func UpdatedAtGTE(v time.Time) predicate.Member
- func UpdatedAtIn(vs ...time.Time) predicate.Member
- func UpdatedAtLT(v time.Time) predicate.Member
- func UpdatedAtLTE(v time.Time) predicate.Member
- func UpdatedAtNEQ(v time.Time) predicate.Member
- func UpdatedAtNotIn(vs ...time.Time) predicate.Member
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNamespaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNamespaceID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the member type in the database. Label = "member" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldNamespaceID holds the string denoting the namespace_id field in the database. FieldNamespaceID = "namespace_id" // EdgeNamespace holds the string denoting the namespace edge name in mutations. EdgeNamespace = "namespace" // Table holds the table name of the member in the database. Table = "members" // NamespaceTable is the table that holds the namespace relation/edge. NamespaceTable = "members" // NamespaceInverseTable is the table name for the Namespace entity. // It exists in this package in order to avoid circular dependency with the "namespace" package. NamespaceInverseTable = "namespaces" // NamespaceColumn is the table column denoting the namespace relation/edge. NamespaceColumn = "namespace_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 // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error )
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/duc-cnzj/mars/v5/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldEmail, FieldNamespaceID, }
Columns holds all SQL columns for member 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 Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasNamespace ¶
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
func NamespaceID ¶
NamespaceID applies equality check predicate on the "namespace_id" field. It's identical to NamespaceIDEQ.
func NamespaceIDEQ ¶
NamespaceIDEQ applies the EQ predicate on the "namespace_id" field.
func NamespaceIDIn ¶
NamespaceIDIn applies the In predicate on the "namespace_id" field.
func NamespaceIDIsNil ¶
NamespaceIDIsNil applies the IsNil predicate on the "namespace_id" field.
func NamespaceIDNEQ ¶
NamespaceIDNEQ applies the NEQ predicate on the "namespace_id" field.
func NamespaceIDNotIn ¶
NamespaceIDNotIn applies the NotIn predicate on the "namespace_id" field.
func NamespaceIDNotNil ¶
NamespaceIDNotNil applies the NotNil predicate on the "namespace_id" 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 Member 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 ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNamespaceField ¶
func ByNamespaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByNamespaceField orders the results by namespace field.
func ByNamespaceID ¶
func ByNamespaceID(opts ...sql.OrderTermOption) OrderOption
ByNamespaceID orders the results by the namespace_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.