Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AppRolePolicy) predicate.AppRolePolicy
- func AppID(v int) predicate.AppRolePolicy
- func AppIDEQ(v int) predicate.AppRolePolicy
- func AppIDGT(v int) predicate.AppRolePolicy
- func AppIDGTE(v int) predicate.AppRolePolicy
- func AppIDIn(vs ...int) predicate.AppRolePolicy
- func AppIDLT(v int) predicate.AppRolePolicy
- func AppIDLTE(v int) predicate.AppRolePolicy
- func AppIDNEQ(v int) predicate.AppRolePolicy
- func AppIDNotIn(vs ...int) predicate.AppRolePolicy
- func AppPolicyID(v int) predicate.AppRolePolicy
- func AppPolicyIDEQ(v int) predicate.AppRolePolicy
- func AppPolicyIDIn(vs ...int) predicate.AppRolePolicy
- func AppPolicyIDNEQ(v int) predicate.AppRolePolicy
- func AppPolicyIDNotIn(vs ...int) predicate.AppRolePolicy
- func AppRoleID(v int) predicate.AppRolePolicy
- func AppRoleIDEQ(v int) predicate.AppRolePolicy
- func AppRoleIDIn(vs ...int) predicate.AppRolePolicy
- func AppRoleIDNEQ(v int) predicate.AppRolePolicy
- func AppRoleIDNotIn(vs ...int) predicate.AppRolePolicy
- func CreatedAt(v time.Time) predicate.AppRolePolicy
- func CreatedAtEQ(v time.Time) predicate.AppRolePolicy
- func CreatedAtGT(v time.Time) predicate.AppRolePolicy
- func CreatedAtGTE(v time.Time) predicate.AppRolePolicy
- func CreatedAtIn(vs ...time.Time) predicate.AppRolePolicy
- func CreatedAtLT(v time.Time) predicate.AppRolePolicy
- func CreatedAtLTE(v time.Time) predicate.AppRolePolicy
- func CreatedAtNEQ(v time.Time) predicate.AppRolePolicy
- func CreatedAtNotIn(vs ...time.Time) predicate.AppRolePolicy
- func CreatedBy(v int) predicate.AppRolePolicy
- func CreatedByEQ(v int) predicate.AppRolePolicy
- func CreatedByGT(v int) predicate.AppRolePolicy
- func CreatedByGTE(v int) predicate.AppRolePolicy
- func CreatedByIn(vs ...int) predicate.AppRolePolicy
- func CreatedByLT(v int) predicate.AppRolePolicy
- func CreatedByLTE(v int) predicate.AppRolePolicy
- func CreatedByNEQ(v int) predicate.AppRolePolicy
- func CreatedByNotIn(vs ...int) predicate.AppRolePolicy
- func HasPolicy() predicate.AppRolePolicy
- func HasPolicyWith(preds ...predicate.AppPolicy) predicate.AppRolePolicy
- func HasRole() predicate.AppRolePolicy
- func HasRoleWith(preds ...predicate.AppRole) predicate.AppRolePolicy
- func ID(id int) predicate.AppRolePolicy
- func IDEQ(id int) predicate.AppRolePolicy
- func IDGT(id int) predicate.AppRolePolicy
- func IDGTE(id int) predicate.AppRolePolicy
- func IDIn(ids ...int) predicate.AppRolePolicy
- func IDLT(id int) predicate.AppRolePolicy
- func IDLTE(id int) predicate.AppRolePolicy
- func IDNEQ(id int) predicate.AppRolePolicy
- func IDNotIn(ids ...int) predicate.AppRolePolicy
- func Not(p predicate.AppRolePolicy) predicate.AppRolePolicy
- func Or(predicates ...predicate.AppRolePolicy) predicate.AppRolePolicy
- func UpdatedAt(v time.Time) predicate.AppRolePolicy
- func UpdatedAtEQ(v time.Time) predicate.AppRolePolicy
- func UpdatedAtGT(v time.Time) predicate.AppRolePolicy
- func UpdatedAtGTE(v time.Time) predicate.AppRolePolicy
- func UpdatedAtIn(vs ...time.Time) predicate.AppRolePolicy
- func UpdatedAtIsNil() predicate.AppRolePolicy
- func UpdatedAtLT(v time.Time) predicate.AppRolePolicy
- func UpdatedAtLTE(v time.Time) predicate.AppRolePolicy
- func UpdatedAtNEQ(v time.Time) predicate.AppRolePolicy
- func UpdatedAtNotIn(vs ...time.Time) predicate.AppRolePolicy
- func UpdatedAtNotNil() predicate.AppRolePolicy
- func UpdatedBy(v int) predicate.AppRolePolicy
- func UpdatedByEQ(v int) predicate.AppRolePolicy
- func UpdatedByGT(v int) predicate.AppRolePolicy
- func UpdatedByGTE(v int) predicate.AppRolePolicy
- func UpdatedByIn(vs ...int) predicate.AppRolePolicy
- func UpdatedByIsNil() predicate.AppRolePolicy
- func UpdatedByLT(v int) predicate.AppRolePolicy
- func UpdatedByLTE(v int) predicate.AppRolePolicy
- func UpdatedByNEQ(v int) predicate.AppRolePolicy
- func UpdatedByNotIn(vs ...int) predicate.AppRolePolicy
- func UpdatedByNotNil() predicate.AppRolePolicy
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByAppPolicyID(opts ...sql.OrderTermOption) OrderOption
- func ByAppRoleID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPolicyField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRoleField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the approlepolicy type in the database. Label = "app_role_policy" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldAppRoleID holds the string denoting the app_role_id field in the database. FieldAppRoleID = "app_role_id" // FieldAppPolicyID holds the string denoting the app_policy_id field in the database. FieldAppPolicyID = "app_policy_id" // FieldAppID holds the string denoting the app_id field in the database. FieldAppID = "app_id" // EdgeRole holds the string denoting the role edge name in mutations. EdgeRole = "role" // EdgePolicy holds the string denoting the policy edge name in mutations. EdgePolicy = "policy" // Table holds the table name of the approlepolicy in the database. Table = "app_role_policy" // RoleTable is the table that holds the role relation/edge. RoleTable = "app_role_policy" // RoleInverseTable is the table name for the AppRole entity. // It exists in this package in order to avoid circular dependency with the "approle" package. RoleInverseTable = "app_role" // RoleColumn is the table column denoting the role relation/edge. RoleColumn = "app_role_id" // PolicyTable is the table that holds the policy relation/edge. PolicyTable = "app_role_policy" // PolicyInverseTable is the table name for the AppPolicy entity. // It exists in this package in order to avoid circular dependency with the "apppolicy" package. PolicyInverseTable = "app_policy" // PolicyColumn is the table column denoting the policy relation/edge. PolicyColumn = "app_policy_id" )
Variables ¶
var ( Hooks [2]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
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/woocoos/knockout/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldAppRoleID, FieldAppPolicyID, FieldAppID, }
Columns holds all SQL columns for approlepolicy fields.
Functions ¶
func And ¶
func And(predicates ...predicate.AppRolePolicy) predicate.AppRolePolicy
And groups predicates with the AND operator between them.
func AppID ¶
func AppID(v int) predicate.AppRolePolicy
AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.
func AppIDEQ ¶
func AppIDEQ(v int) predicate.AppRolePolicy
AppIDEQ applies the EQ predicate on the "app_id" field.
func AppIDGT ¶
func AppIDGT(v int) predicate.AppRolePolicy
AppIDGT applies the GT predicate on the "app_id" field.
func AppIDGTE ¶
func AppIDGTE(v int) predicate.AppRolePolicy
AppIDGTE applies the GTE predicate on the "app_id" field.
func AppIDIn ¶
func AppIDIn(vs ...int) predicate.AppRolePolicy
AppIDIn applies the In predicate on the "app_id" field.
func AppIDLT ¶
func AppIDLT(v int) predicate.AppRolePolicy
AppIDLT applies the LT predicate on the "app_id" field.
func AppIDLTE ¶
func AppIDLTE(v int) predicate.AppRolePolicy
AppIDLTE applies the LTE predicate on the "app_id" field.
func AppIDNEQ ¶
func AppIDNEQ(v int) predicate.AppRolePolicy
AppIDNEQ applies the NEQ predicate on the "app_id" field.
func AppIDNotIn ¶
func AppIDNotIn(vs ...int) predicate.AppRolePolicy
AppIDNotIn applies the NotIn predicate on the "app_id" field.
func AppPolicyID ¶
func AppPolicyID(v int) predicate.AppRolePolicy
AppPolicyID applies equality check predicate on the "app_policy_id" field. It's identical to AppPolicyIDEQ.
func AppPolicyIDEQ ¶
func AppPolicyIDEQ(v int) predicate.AppRolePolicy
AppPolicyIDEQ applies the EQ predicate on the "app_policy_id" field.
func AppPolicyIDIn ¶
func AppPolicyIDIn(vs ...int) predicate.AppRolePolicy
AppPolicyIDIn applies the In predicate on the "app_policy_id" field.
func AppPolicyIDNEQ ¶
func AppPolicyIDNEQ(v int) predicate.AppRolePolicy
AppPolicyIDNEQ applies the NEQ predicate on the "app_policy_id" field.
func AppPolicyIDNotIn ¶
func AppPolicyIDNotIn(vs ...int) predicate.AppRolePolicy
AppPolicyIDNotIn applies the NotIn predicate on the "app_policy_id" field.
func AppRoleID ¶
func AppRoleID(v int) predicate.AppRolePolicy
AppRoleID applies equality check predicate on the "app_role_id" field. It's identical to AppRoleIDEQ.
func AppRoleIDEQ ¶
func AppRoleIDEQ(v int) predicate.AppRolePolicy
AppRoleIDEQ applies the EQ predicate on the "app_role_id" field.
func AppRoleIDIn ¶
func AppRoleIDIn(vs ...int) predicate.AppRolePolicy
AppRoleIDIn applies the In predicate on the "app_role_id" field.
func AppRoleIDNEQ ¶
func AppRoleIDNEQ(v int) predicate.AppRolePolicy
AppRoleIDNEQ applies the NEQ predicate on the "app_role_id" field.
func AppRoleIDNotIn ¶
func AppRoleIDNotIn(vs ...int) predicate.AppRolePolicy
AppRoleIDNotIn applies the NotIn predicate on the "app_role_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AppRolePolicy
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AppRolePolicy
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AppRolePolicy
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AppRolePolicy
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AppRolePolicy
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AppRolePolicy
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AppRolePolicy
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AppRolePolicy
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AppRolePolicy
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v int) predicate.AppRolePolicy
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
func CreatedByEQ(v int) predicate.AppRolePolicy
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v int) predicate.AppRolePolicy
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v int) predicate.AppRolePolicy
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...int) predicate.AppRolePolicy
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v int) predicate.AppRolePolicy
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v int) predicate.AppRolePolicy
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v int) predicate.AppRolePolicy
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...int) predicate.AppRolePolicy
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasPolicy ¶
func HasPolicy() predicate.AppRolePolicy
HasPolicy applies the HasEdge predicate on the "policy" edge.
func HasPolicyWith ¶
func HasPolicyWith(preds ...predicate.AppPolicy) predicate.AppRolePolicy
HasPolicyWith applies the HasEdge predicate on the "policy" edge with a given conditions (other predicates).
func HasRole ¶
func HasRole() predicate.AppRolePolicy
HasRole applies the HasEdge predicate on the "role" edge.
func HasRoleWith ¶
func HasRoleWith(preds ...predicate.AppRole) predicate.AppRolePolicy
HasRoleWith applies the HasEdge predicate on the "role" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.AppRolePolicy
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.AppRolePolicy
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.AppRolePolicy
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.AppRolePolicy
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.AppRolePolicy
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.AppRolePolicy
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.AppRolePolicy
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.AppRolePolicy
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.AppRolePolicy) predicate.AppRolePolicy
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AppRolePolicy) predicate.AppRolePolicy
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.AppRolePolicy
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.AppRolePolicy
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.AppRolePolicy
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.AppRolePolicy
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.AppRolePolicy
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.AppRolePolicy
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.AppRolePolicy
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.AppRolePolicy
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.AppRolePolicy
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.AppRolePolicy
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.AppRolePolicy
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v int) predicate.AppRolePolicy
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
func UpdatedByEQ(v int) predicate.AppRolePolicy
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v int) predicate.AppRolePolicy
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v int) predicate.AppRolePolicy
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...int) predicate.AppRolePolicy
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.AppRolePolicy
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v int) predicate.AppRolePolicy
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v int) predicate.AppRolePolicy
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v int) predicate.AppRolePolicy
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...int) predicate.AppRolePolicy
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.AppRolePolicy
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 AppRolePolicy queries.
func ByAppID ¶
func ByAppID(opts ...sql.OrderTermOption) OrderOption
ByAppID orders the results by the app_id field.
func ByAppPolicyID ¶
func ByAppPolicyID(opts ...sql.OrderTermOption) OrderOption
ByAppPolicyID orders the results by the app_policy_id field.
func ByAppRoleID ¶
func ByAppRoleID(opts ...sql.OrderTermOption) OrderOption
ByAppRoleID orders the results by the app_role_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPolicyField ¶
func ByPolicyField(field string, opts ...sql.OrderTermOption) OrderOption
ByPolicyField orders the results by policy field.
func ByRoleField ¶
func ByRoleField(field string, opts ...sql.OrderTermOption) OrderOption
ByRoleField orders the results by role field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.