Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RolePolicies) predicate.RolePolicies
- func CreatedAt(v time.Time) predicate.RolePolicies
- func CreatedAtEQ(v time.Time) predicate.RolePolicies
- func CreatedAtGT(v time.Time) predicate.RolePolicies
- func CreatedAtGTE(v time.Time) predicate.RolePolicies
- func CreatedAtIn(vs ...time.Time) predicate.RolePolicies
- func CreatedAtLT(v time.Time) predicate.RolePolicies
- func CreatedAtLTE(v time.Time) predicate.RolePolicies
- func CreatedAtNEQ(v time.Time) predicate.RolePolicies
- func CreatedAtNotIn(vs ...time.Time) predicate.RolePolicies
- func CreatedBy(v int64) predicate.RolePolicies
- func CreatedByEQ(v int64) predicate.RolePolicies
- func CreatedByGT(v int64) predicate.RolePolicies
- func CreatedByGTE(v int64) predicate.RolePolicies
- func CreatedByIn(vs ...int64) predicate.RolePolicies
- func CreatedByIsNil() predicate.RolePolicies
- func CreatedByLT(v int64) predicate.RolePolicies
- func CreatedByLTE(v int64) predicate.RolePolicies
- func CreatedByNEQ(v int64) predicate.RolePolicies
- func CreatedByNotIn(vs ...int64) predicate.RolePolicies
- func CreatedByNotNil() predicate.RolePolicies
- func Description(v string) predicate.RolePolicies
- func DescriptionContains(v string) predicate.RolePolicies
- func DescriptionContainsFold(v string) predicate.RolePolicies
- func DescriptionEQ(v string) predicate.RolePolicies
- func DescriptionEqualFold(v string) predicate.RolePolicies
- func DescriptionGT(v string) predicate.RolePolicies
- func DescriptionGTE(v string) predicate.RolePolicies
- func DescriptionHasPrefix(v string) predicate.RolePolicies
- func DescriptionHasSuffix(v string) predicate.RolePolicies
- func DescriptionIn(vs ...string) predicate.RolePolicies
- func DescriptionLT(v string) predicate.RolePolicies
- func DescriptionLTE(v string) predicate.RolePolicies
- func DescriptionNEQ(v string) predicate.RolePolicies
- func DescriptionNotIn(vs ...string) predicate.RolePolicies
- func HasLionPolicies() predicate.RolePolicies
- func HasLionPoliciesWith(preds ...predicate.Policies) predicate.RolePolicies
- func HasLionRoles() predicate.RolePolicies
- func HasLionRolesWith(preds ...predicate.Roles) predicate.RolePolicies
- func ID(id int) predicate.RolePolicies
- func IDEQ(id int) predicate.RolePolicies
- func IDGT(id int) predicate.RolePolicies
- func IDGTE(id int) predicate.RolePolicies
- func IDIn(ids ...int) predicate.RolePolicies
- func IDLT(id int) predicate.RolePolicies
- func IDLTE(id int) predicate.RolePolicies
- func IDNEQ(id int) predicate.RolePolicies
- func IDNotIn(ids ...int) predicate.RolePolicies
- func MetadataIsNil() predicate.RolePolicies
- func MetadataNotNil() predicate.RolePolicies
- func Not(p predicate.RolePolicies) predicate.RolePolicies
- func Or(predicates ...predicate.RolePolicies) predicate.RolePolicies
- func PolicyID(v int) predicate.RolePolicies
- func PolicyIDEQ(v int) predicate.RolePolicies
- func PolicyIDIn(vs ...int) predicate.RolePolicies
- func PolicyIDNEQ(v int) predicate.RolePolicies
- func PolicyIDNotIn(vs ...int) predicate.RolePolicies
- func RoleID(v int) predicate.RolePolicies
- func RoleIDEQ(v int) predicate.RolePolicies
- func RoleIDIn(vs ...int) predicate.RolePolicies
- func RoleIDNEQ(v int) predicate.RolePolicies
- func RoleIDNotIn(vs ...int) predicate.RolePolicies
- func UpdatedAt(v time.Time) predicate.RolePolicies
- func UpdatedAtEQ(v time.Time) predicate.RolePolicies
- func UpdatedAtGT(v time.Time) predicate.RolePolicies
- func UpdatedAtGTE(v time.Time) predicate.RolePolicies
- func UpdatedAtIn(vs ...time.Time) predicate.RolePolicies
- func UpdatedAtLT(v time.Time) predicate.RolePolicies
- func UpdatedAtLTE(v time.Time) predicate.RolePolicies
- func UpdatedAtNEQ(v time.Time) predicate.RolePolicies
- func UpdatedAtNotIn(vs ...time.Time) predicate.RolePolicies
- func UpdatedBy(v int64) predicate.RolePolicies
- func UpdatedByEQ(v int64) predicate.RolePolicies
- func UpdatedByGT(v int64) predicate.RolePolicies
- func UpdatedByGTE(v int64) predicate.RolePolicies
- func UpdatedByIn(vs ...int64) predicate.RolePolicies
- func UpdatedByIsNil() predicate.RolePolicies
- func UpdatedByLT(v int64) predicate.RolePolicies
- func UpdatedByLTE(v int64) predicate.RolePolicies
- func UpdatedByNEQ(v int64) predicate.RolePolicies
- func UpdatedByNotIn(vs ...int64) predicate.RolePolicies
- func UpdatedByNotNil() predicate.RolePolicies
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLionPoliciesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLionRolesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPolicyID(opts ...sql.OrderTermOption) OrderOption
- func ByRoleID(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 rolepolicies type in the database. Label = "role_policies" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldRoleID holds the string denoting the role_id field in the database. FieldRoleID = "role_id" // FieldPolicyID holds the string denoting the policy_id field in the database. FieldPolicyID = "policy_id" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeLionRoles holds the string denoting the lion_roles edge name in mutations. EdgeLionRoles = "lion_roles" // EdgeLionPolicies holds the string denoting the lion_policies edge name in mutations. EdgeLionPolicies = "lion_policies" // Table holds the table name of the rolepolicies in the database. Table = "lion_role_policies" // LionRolesTable is the table that holds the lion_roles relation/edge. LionRolesTable = "lion_role_policies" // LionRolesInverseTable is the table name for the Roles entity. // It exists in this package in order to avoid circular dependency with the "roles" package. LionRolesInverseTable = "lion_roles" // LionRolesColumn is the table column denoting the lion_roles relation/edge. LionRolesColumn = "role_id" // LionPoliciesTable is the table that holds the lion_policies relation/edge. LionPoliciesTable = "lion_role_policies" // LionPoliciesInverseTable is the table name for the Policies entity. // It exists in this package in order to avoid circular dependency with the "policies" package. LionPoliciesInverseTable = "lion_policies" // LionPoliciesColumn is the table column denoting the lion_policies relation/edge. LionPoliciesColumn = "policy_id" )
Variables ¶
var ( // 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 // DefaultCreatedBy holds the default value on creation for the "created_by" field. DefaultCreatedBy int64 // DefaultUpdatedBy holds the default value on creation for the "updated_by" field. DefaultUpdatedBy int64 // RoleIDValidator is a validator for the "role_id" field. It is called by the builders before save. RoleIDValidator func(int) error // PolicyIDValidator is a validator for the "policy_id" field. It is called by the builders before save. PolicyIDValidator func(int) error // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldRoleID, FieldPolicyID, FieldMetadata, FieldDescription, }
Columns holds all SQL columns for rolepolicies fields.
Functions ¶
func And ¶
func And(predicates ...predicate.RolePolicies) predicate.RolePolicies
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.RolePolicies
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.RolePolicies
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.RolePolicies
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.RolePolicies
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.RolePolicies
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.RolePolicies
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.RolePolicies
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.RolePolicies
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.RolePolicies
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v int64) predicate.RolePolicies
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
func CreatedByEQ(v int64) predicate.RolePolicies
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v int64) predicate.RolePolicies
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v int64) predicate.RolePolicies
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...int64) predicate.RolePolicies
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.RolePolicies
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v int64) predicate.RolePolicies
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v int64) predicate.RolePolicies
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v int64) predicate.RolePolicies
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...int64) predicate.RolePolicies
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.RolePolicies
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func Description ¶
func Description(v string) predicate.RolePolicies
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.RolePolicies
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.RolePolicies
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.RolePolicies
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.RolePolicies
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.RolePolicies
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.RolePolicies
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.RolePolicies
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.RolePolicies
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.RolePolicies
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.RolePolicies
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.RolePolicies
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.RolePolicies
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.RolePolicies
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasLionPolicies ¶
func HasLionPolicies() predicate.RolePolicies
HasLionPolicies applies the HasEdge predicate on the "lion_policies" edge.
func HasLionPoliciesWith ¶
func HasLionPoliciesWith(preds ...predicate.Policies) predicate.RolePolicies
HasLionPoliciesWith applies the HasEdge predicate on the "lion_policies" edge with a given conditions (other predicates).
func HasLionRoles ¶
func HasLionRoles() predicate.RolePolicies
HasLionRoles applies the HasEdge predicate on the "lion_roles" edge.
func HasLionRolesWith ¶
func HasLionRolesWith(preds ...predicate.Roles) predicate.RolePolicies
HasLionRolesWith applies the HasEdge predicate on the "lion_roles" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.RolePolicies
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.RolePolicies
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.RolePolicies
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.RolePolicies
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.RolePolicies
IDNotIn applies the NotIn predicate on the ID field.
func MetadataIsNil ¶
func MetadataIsNil() predicate.RolePolicies
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
func MetadataNotNil() predicate.RolePolicies
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Not ¶
func Not(p predicate.RolePolicies) predicate.RolePolicies
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.RolePolicies) predicate.RolePolicies
Or groups predicates with the OR operator between them.
func PolicyID ¶
func PolicyID(v int) predicate.RolePolicies
PolicyID applies equality check predicate on the "policy_id" field. It's identical to PolicyIDEQ.
func PolicyIDEQ ¶
func PolicyIDEQ(v int) predicate.RolePolicies
PolicyIDEQ applies the EQ predicate on the "policy_id" field.
func PolicyIDIn ¶
func PolicyIDIn(vs ...int) predicate.RolePolicies
PolicyIDIn applies the In predicate on the "policy_id" field.
func PolicyIDNEQ ¶
func PolicyIDNEQ(v int) predicate.RolePolicies
PolicyIDNEQ applies the NEQ predicate on the "policy_id" field.
func PolicyIDNotIn ¶
func PolicyIDNotIn(vs ...int) predicate.RolePolicies
PolicyIDNotIn applies the NotIn predicate on the "policy_id" field.
func RoleID ¶
func RoleID(v int) predicate.RolePolicies
RoleID applies equality check predicate on the "role_id" field. It's identical to RoleIDEQ.
func RoleIDEQ ¶
func RoleIDEQ(v int) predicate.RolePolicies
RoleIDEQ applies the EQ predicate on the "role_id" field.
func RoleIDIn ¶
func RoleIDIn(vs ...int) predicate.RolePolicies
RoleIDIn applies the In predicate on the "role_id" field.
func RoleIDNEQ ¶
func RoleIDNEQ(v int) predicate.RolePolicies
RoleIDNEQ applies the NEQ predicate on the "role_id" field.
func RoleIDNotIn ¶
func RoleIDNotIn(vs ...int) predicate.RolePolicies
RoleIDNotIn applies the NotIn predicate on the "role_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.RolePolicies
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.RolePolicies
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.RolePolicies
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.RolePolicies
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.RolePolicies
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.RolePolicies
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.RolePolicies
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.RolePolicies
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.RolePolicies
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v int64) predicate.RolePolicies
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
func UpdatedByEQ(v int64) predicate.RolePolicies
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v int64) predicate.RolePolicies
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v int64) predicate.RolePolicies
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...int64) predicate.RolePolicies
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.RolePolicies
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v int64) predicate.RolePolicies
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v int64) predicate.RolePolicies
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v int64) predicate.RolePolicies
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...int64) predicate.RolePolicies
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.RolePolicies
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 RolePolicies queries.
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 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 ByLionPoliciesField ¶
func ByLionPoliciesField(field string, opts ...sql.OrderTermOption) OrderOption
ByLionPoliciesField orders the results by lion_policies field.
func ByLionRolesField ¶
func ByLionRolesField(field string, opts ...sql.OrderTermOption) OrderOption
ByLionRolesField orders the results by lion_roles field.
func ByPolicyID ¶
func ByPolicyID(opts ...sql.OrderTermOption) OrderOption
ByPolicyID orders the results by the policy_id field.
func ByRoleID ¶
func ByRoleID(opts ...sql.OrderTermOption) OrderOption
ByRoleID orders the results by the role_id 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.