Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Permissions) predicate.Permissions
- func CreatedAt(v time.Time) predicate.Permissions
- func CreatedAtEQ(v time.Time) predicate.Permissions
- func CreatedAtGT(v time.Time) predicate.Permissions
- func CreatedAtGTE(v time.Time) predicate.Permissions
- func CreatedAtIn(vs ...time.Time) predicate.Permissions
- func CreatedAtLT(v time.Time) predicate.Permissions
- func CreatedAtLTE(v time.Time) predicate.Permissions
- func CreatedAtNEQ(v time.Time) predicate.Permissions
- func CreatedAtNotIn(vs ...time.Time) predicate.Permissions
- func CreatedBy(v int64) predicate.Permissions
- func CreatedByEQ(v int64) predicate.Permissions
- func CreatedByGT(v int64) predicate.Permissions
- func CreatedByGTE(v int64) predicate.Permissions
- func CreatedByIn(vs ...int64) predicate.Permissions
- func CreatedByIsNil() predicate.Permissions
- func CreatedByLT(v int64) predicate.Permissions
- func CreatedByLTE(v int64) predicate.Permissions
- func CreatedByNEQ(v int64) predicate.Permissions
- func CreatedByNotIn(vs ...int64) predicate.Permissions
- func CreatedByNotNil() predicate.Permissions
- func HasLionResources() predicate.Permissions
- func HasLionResourcesWith(preds ...predicate.Resources) predicate.Permissions
- func HasLionRolePermissions() predicate.Permissions
- func HasLionRolePermissionsWith(preds ...predicate.RolePermissions) predicate.Permissions
- func ID(id int) predicate.Permissions
- func IDEQ(id int) predicate.Permissions
- func IDGT(id int) predicate.Permissions
- func IDGTE(id int) predicate.Permissions
- func IDIn(ids ...int) predicate.Permissions
- func IDLT(id int) predicate.Permissions
- func IDLTE(id int) predicate.Permissions
- func IDNEQ(id int) predicate.Permissions
- func IDNotIn(ids ...int) predicate.Permissions
- func Not(p predicate.Permissions) predicate.Permissions
- func Or(predicates ...predicate.Permissions) predicate.Permissions
- func ResourceID(v int) predicate.Permissions
- func ResourceIDEQ(v int) predicate.Permissions
- func ResourceIDIn(vs ...int) predicate.Permissions
- func ResourceIDNEQ(v int) predicate.Permissions
- func ResourceIDNotIn(vs ...int) predicate.Permissions
- func UpdatedAt(v time.Time) predicate.Permissions
- func UpdatedAtEQ(v time.Time) predicate.Permissions
- func UpdatedAtGT(v time.Time) predicate.Permissions
- func UpdatedAtGTE(v time.Time) predicate.Permissions
- func UpdatedAtIn(vs ...time.Time) predicate.Permissions
- func UpdatedAtLT(v time.Time) predicate.Permissions
- func UpdatedAtLTE(v time.Time) predicate.Permissions
- func UpdatedAtNEQ(v time.Time) predicate.Permissions
- func UpdatedAtNotIn(vs ...time.Time) predicate.Permissions
- func UpdatedBy(v int64) predicate.Permissions
- func UpdatedByEQ(v int64) predicate.Permissions
- func UpdatedByGT(v int64) predicate.Permissions
- func UpdatedByGTE(v int64) predicate.Permissions
- func UpdatedByIn(vs ...int64) predicate.Permissions
- func UpdatedByIsNil() predicate.Permissions
- func UpdatedByLT(v int64) predicate.Permissions
- func UpdatedByLTE(v int64) predicate.Permissions
- func UpdatedByNEQ(v int64) predicate.Permissions
- func UpdatedByNotIn(vs ...int64) predicate.Permissions
- func UpdatedByNotNil() predicate.Permissions
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLionResourcesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLionRolePermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLionRolePermissionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByResourceID(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 permissions type in the database. Label = "permissions" // 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" // FieldResourceID holds the string denoting the resource_id field in the database. FieldResourceID = "resource_id" // EdgeLionRolePermissions holds the string denoting the lion_role_permissions edge name in mutations. EdgeLionRolePermissions = "lion_role_permissions" // EdgeLionResources holds the string denoting the lion_resources edge name in mutations. EdgeLionResources = "lion_resources" // Table holds the table name of the permissions in the database. Table = "lion_permissions" // LionRolePermissionsTable is the table that holds the lion_role_permissions relation/edge. LionRolePermissionsTable = "lion_role_permissions" // LionRolePermissionsInverseTable is the table name for the RolePermissions entity. // It exists in this package in order to avoid circular dependency with the "rolepermissions" package. LionRolePermissionsInverseTable = "lion_role_permissions" // LionRolePermissionsColumn is the table column denoting the lion_role_permissions relation/edge. LionRolePermissionsColumn = "permission_id" // LionResourcesTable is the table that holds the lion_resources relation/edge. LionResourcesTable = "lion_permissions" // LionResourcesInverseTable is the table name for the Resources entity. // It exists in this package in order to avoid circular dependency with the "resources" package. LionResourcesInverseTable = "lion_resources" // LionResourcesColumn is the table column denoting the lion_resources relation/edge. LionResourcesColumn = "resource_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 // ResourceIDValidator is a validator for the "resource_id" field. It is called by the builders before save. ResourceIDValidator func(int) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldResourceID, }
Columns holds all SQL columns for permissions fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Permissions) predicate.Permissions
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Permissions
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Permissions
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Permissions
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Permissions
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Permissions
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Permissions
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Permissions
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Permissions
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Permissions
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v int64) predicate.Permissions
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
func CreatedByEQ(v int64) predicate.Permissions
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v int64) predicate.Permissions
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v int64) predicate.Permissions
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...int64) predicate.Permissions
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.Permissions
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v int64) predicate.Permissions
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v int64) predicate.Permissions
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v int64) predicate.Permissions
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...int64) predicate.Permissions
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.Permissions
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func HasLionResources ¶
func HasLionResources() predicate.Permissions
HasLionResources applies the HasEdge predicate on the "lion_resources" edge.
func HasLionResourcesWith ¶
func HasLionResourcesWith(preds ...predicate.Resources) predicate.Permissions
HasLionResourcesWith applies the HasEdge predicate on the "lion_resources" edge with a given conditions (other predicates).
func HasLionRolePermissions ¶
func HasLionRolePermissions() predicate.Permissions
HasLionRolePermissions applies the HasEdge predicate on the "lion_role_permissions" edge.
func HasLionRolePermissionsWith ¶
func HasLionRolePermissionsWith(preds ...predicate.RolePermissions) predicate.Permissions
HasLionRolePermissionsWith applies the HasEdge predicate on the "lion_role_permissions" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Permissions
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Permissions
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Permissions
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Permissions
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Permissions
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Permissions) predicate.Permissions
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Permissions) predicate.Permissions
Or groups predicates with the OR operator between them.
func ResourceID ¶
func ResourceID(v int) predicate.Permissions
ResourceID applies equality check predicate on the "resource_id" field. It's identical to ResourceIDEQ.
func ResourceIDEQ ¶
func ResourceIDEQ(v int) predicate.Permissions
ResourceIDEQ applies the EQ predicate on the "resource_id" field.
func ResourceIDIn ¶
func ResourceIDIn(vs ...int) predicate.Permissions
ResourceIDIn applies the In predicate on the "resource_id" field.
func ResourceIDNEQ ¶
func ResourceIDNEQ(v int) predicate.Permissions
ResourceIDNEQ applies the NEQ predicate on the "resource_id" field.
func ResourceIDNotIn ¶
func ResourceIDNotIn(vs ...int) predicate.Permissions
ResourceIDNotIn applies the NotIn predicate on the "resource_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Permissions
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Permissions
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Permissions
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Permissions
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Permissions
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Permissions
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Permissions
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Permissions
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Permissions
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v int64) predicate.Permissions
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
func UpdatedByEQ(v int64) predicate.Permissions
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v int64) predicate.Permissions
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v int64) predicate.Permissions
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...int64) predicate.Permissions
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.Permissions
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v int64) predicate.Permissions
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v int64) predicate.Permissions
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v int64) predicate.Permissions
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...int64) predicate.Permissions
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.Permissions
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 Permissions 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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLionResourcesField ¶
func ByLionResourcesField(field string, opts ...sql.OrderTermOption) OrderOption
ByLionResourcesField orders the results by lion_resources field.
func ByLionRolePermissions ¶
func ByLionRolePermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLionRolePermissions orders the results by lion_role_permissions terms.
func ByLionRolePermissionsCount ¶
func ByLionRolePermissionsCount(opts ...sql.OrderTermOption) OrderOption
ByLionRolePermissionsCount orders the results by lion_role_permissions count.
func ByResourceID ¶
func ByResourceID(opts ...sql.OrderTermOption) OrderOption
ByResourceID orders the results by the resource_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.