Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Resources) predicate.Resources
- func Component(v string) predicate.Resources
- func ComponentContains(v string) predicate.Resources
- func ComponentContainsFold(v string) predicate.Resources
- func ComponentEQ(v string) predicate.Resources
- func ComponentEqualFold(v string) predicate.Resources
- func ComponentGT(v string) predicate.Resources
- func ComponentGTE(v string) predicate.Resources
- func ComponentHasPrefix(v string) predicate.Resources
- func ComponentHasSuffix(v string) predicate.Resources
- func ComponentIn(vs ...string) predicate.Resources
- func ComponentLT(v string) predicate.Resources
- func ComponentLTE(v string) predicate.Resources
- func ComponentNEQ(v string) predicate.Resources
- func ComponentNotIn(vs ...string) predicate.Resources
- func CreatedAt(v time.Time) predicate.Resources
- func CreatedAtEQ(v time.Time) predicate.Resources
- func CreatedAtGT(v time.Time) predicate.Resources
- func CreatedAtGTE(v time.Time) predicate.Resources
- func CreatedAtIn(vs ...time.Time) predicate.Resources
- func CreatedAtLT(v time.Time) predicate.Resources
- func CreatedAtLTE(v time.Time) predicate.Resources
- func CreatedAtNEQ(v time.Time) predicate.Resources
- func CreatedAtNotIn(vs ...time.Time) predicate.Resources
- func CreatedBy(v int64) predicate.Resources
- func CreatedByEQ(v int64) predicate.Resources
- func CreatedByGT(v int64) predicate.Resources
- func CreatedByGTE(v int64) predicate.Resources
- func CreatedByIn(vs ...int64) predicate.Resources
- func CreatedByIsNil() predicate.Resources
- func CreatedByLT(v int64) predicate.Resources
- func CreatedByLTE(v int64) predicate.Resources
- func CreatedByNEQ(v int64) predicate.Resources
- func CreatedByNotIn(vs ...int64) predicate.Resources
- func CreatedByNotNil() predicate.Resources
- func DeletedAt(v time.Time) predicate.Resources
- func DeletedAtEQ(v time.Time) predicate.Resources
- func DeletedAtGT(v time.Time) predicate.Resources
- func DeletedAtGTE(v time.Time) predicate.Resources
- func DeletedAtIn(vs ...time.Time) predicate.Resources
- func DeletedAtIsNil() predicate.Resources
- func DeletedAtLT(v time.Time) predicate.Resources
- func DeletedAtLTE(v time.Time) predicate.Resources
- func DeletedAtNEQ(v time.Time) predicate.Resources
- func DeletedAtNotIn(vs ...time.Time) predicate.Resources
- func DeletedAtNotNil() predicate.Resources
- func Description(v string) predicate.Resources
- func DescriptionContains(v string) predicate.Resources
- func DescriptionContainsFold(v string) predicate.Resources
- func DescriptionEQ(v string) predicate.Resources
- func DescriptionEqualFold(v string) predicate.Resources
- func DescriptionGT(v string) predicate.Resources
- func DescriptionGTE(v string) predicate.Resources
- func DescriptionHasPrefix(v string) predicate.Resources
- func DescriptionHasSuffix(v string) predicate.Resources
- func DescriptionIn(vs ...string) predicate.Resources
- func DescriptionLT(v string) predicate.Resources
- func DescriptionLTE(v string) predicate.Resources
- func DescriptionNEQ(v string) predicate.Resources
- func DescriptionNotIn(vs ...string) predicate.Resources
- func Enabled(v bool) predicate.Resources
- func EnabledEQ(v bool) predicate.Resources
- func EnabledNEQ(v bool) predicate.Resources
- func HasLionPermissions() predicate.Resources
- func HasLionPermissionsWith(preds ...predicate.Permissions) predicate.Resources
- func Hidden(v bool) predicate.Resources
- func HiddenEQ(v bool) predicate.Resources
- func HiddenNEQ(v bool) predicate.Resources
- func HideChildren(v bool) predicate.Resources
- func HideChildrenEQ(v bool) predicate.Resources
- func HideChildrenNEQ(v bool) predicate.Resources
- func ID(id int) predicate.Resources
- func IDEQ(id int) predicate.Resources
- func IDGT(id int) predicate.Resources
- func IDGTE(id int) predicate.Resources
- func IDIn(ids ...int) predicate.Resources
- func IDLT(id int) predicate.Resources
- func IDLTE(id int) predicate.Resources
- func IDNEQ(id int) predicate.Resources
- func IDNotIn(ids ...int) predicate.Resources
- func Icon(v string) predicate.Resources
- func IconContains(v string) predicate.Resources
- func IconContainsFold(v string) predicate.Resources
- func IconEQ(v string) predicate.Resources
- func IconEqualFold(v string) predicate.Resources
- func IconGT(v string) predicate.Resources
- func IconGTE(v string) predicate.Resources
- func IconHasPrefix(v string) predicate.Resources
- func IconHasSuffix(v string) predicate.Resources
- func IconIn(vs ...string) predicate.Resources
- func IconLT(v string) predicate.Resources
- func IconLTE(v string) predicate.Resources
- func IconNEQ(v string) predicate.Resources
- func IconNotIn(vs ...string) predicate.Resources
- func Name(v string) predicate.Resources
- func NameContains(v string) predicate.Resources
- func NameContainsFold(v string) predicate.Resources
- func NameEQ(v string) predicate.Resources
- func NameEqualFold(v string) predicate.Resources
- func NameGT(v string) predicate.Resources
- func NameGTE(v string) predicate.Resources
- func NameHasPrefix(v string) predicate.Resources
- func NameHasSuffix(v string) predicate.Resources
- func NameIn(vs ...string) predicate.Resources
- func NameLT(v string) predicate.Resources
- func NameLTE(v string) predicate.Resources
- func NameNEQ(v string) predicate.Resources
- func NameNotIn(vs ...string) predicate.Resources
- func Not(p predicate.Resources) predicate.Resources
- func Or(predicates ...predicate.Resources) predicate.Resources
- func ParentID(v int) predicate.Resources
- func ParentIDEQ(v int) predicate.Resources
- func ParentIDGT(v int) predicate.Resources
- func ParentIDGTE(v int) predicate.Resources
- func ParentIDIn(vs ...int) predicate.Resources
- func ParentIDLT(v int) predicate.Resources
- func ParentIDLTE(v int) predicate.Resources
- func ParentIDNEQ(v int) predicate.Resources
- func ParentIDNotIn(vs ...int) predicate.Resources
- func Path(v string) predicate.Resources
- func PathContains(v string) predicate.Resources
- func PathContainsFold(v string) predicate.Resources
- func PathEQ(v string) predicate.Resources
- func PathEqualFold(v string) predicate.Resources
- func PathGT(v string) predicate.Resources
- func PathGTE(v string) predicate.Resources
- func PathHasPrefix(v string) predicate.Resources
- func PathHasSuffix(v string) predicate.Resources
- func PathIn(vs ...string) predicate.Resources
- func PathLT(v string) predicate.Resources
- func PathLTE(v string) predicate.Resources
- func PathNEQ(v string) predicate.Resources
- func PathNotIn(vs ...string) predicate.Resources
- func ResourceScope(v int) predicate.Resources
- func ResourceScopeEQ(v int) predicate.Resources
- func ResourceScopeGT(v int) predicate.Resources
- func ResourceScopeGTE(v int) predicate.Resources
- func ResourceScopeIn(vs ...int) predicate.Resources
- func ResourceScopeLT(v int) predicate.Resources
- func ResourceScopeLTE(v int) predicate.Resources
- func ResourceScopeNEQ(v int) predicate.Resources
- func ResourceScopeNotIn(vs ...int) predicate.Resources
- func ResourceType(v int) predicate.Resources
- func ResourceTypeEQ(v int) predicate.Resources
- func ResourceTypeGT(v int) predicate.Resources
- func ResourceTypeGTE(v int) predicate.Resources
- func ResourceTypeIn(vs ...int) predicate.Resources
- func ResourceTypeLT(v int) predicate.Resources
- func ResourceTypeLTE(v int) predicate.Resources
- func ResourceTypeNEQ(v int) predicate.Resources
- func ResourceTypeNotIn(vs ...int) predicate.Resources
- func SortOrder(v int) predicate.Resources
- func SortOrderEQ(v int) predicate.Resources
- func SortOrderGT(v int) predicate.Resources
- func SortOrderGTE(v int) predicate.Resources
- func SortOrderIn(vs ...int) predicate.Resources
- func SortOrderLT(v int) predicate.Resources
- func SortOrderLTE(v int) predicate.Resources
- func SortOrderNEQ(v int) predicate.Resources
- func SortOrderNotIn(vs ...int) predicate.Resources
- func UpdatedAt(v time.Time) predicate.Resources
- func UpdatedAtEQ(v time.Time) predicate.Resources
- func UpdatedAtGT(v time.Time) predicate.Resources
- func UpdatedAtGTE(v time.Time) predicate.Resources
- func UpdatedAtIn(vs ...time.Time) predicate.Resources
- func UpdatedAtLT(v time.Time) predicate.Resources
- func UpdatedAtLTE(v time.Time) predicate.Resources
- func UpdatedAtNEQ(v time.Time) predicate.Resources
- func UpdatedAtNotIn(vs ...time.Time) predicate.Resources
- func UpdatedBy(v int64) predicate.Resources
- func UpdatedByEQ(v int64) predicate.Resources
- func UpdatedByGT(v int64) predicate.Resources
- func UpdatedByGTE(v int64) predicate.Resources
- func UpdatedByIn(vs ...int64) predicate.Resources
- func UpdatedByIsNil() predicate.Resources
- func UpdatedByLT(v int64) predicate.Resources
- func UpdatedByLTE(v int64) predicate.Resources
- func UpdatedByNEQ(v int64) predicate.Resources
- func UpdatedByNotIn(vs ...int64) predicate.Resources
- func UpdatedByNotNil() predicate.Resources
- func ValidColumn(column string) bool
- type OrderOption
- func ByComponent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByHidden(opts ...sql.OrderTermOption) OrderOption
- func ByHideChildren(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIcon(opts ...sql.OrderTermOption) OrderOption
- func ByLionPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLionPermissionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByParentID(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func ByResourceScope(opts ...sql.OrderTermOption) OrderOption
- func ByResourceType(opts ...sql.OrderTermOption) OrderOption
- func BySortOrder(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 resources type in the database. Label = "resources" // 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" // 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" // FieldParentID holds the string denoting the parent_id field in the database. FieldParentID = "parent_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSortOrder holds the string denoting the sort_order field in the database. FieldSortOrder = "sort_order" // FieldResourceType holds the string denoting the resource_type field in the database. FieldResourceType = "resource_type" // FieldResourceScope holds the string denoting the resource_scope field in the database. FieldResourceScope = "resource_scope" // FieldEnabled holds the string denoting the enabled field in the database. FieldEnabled = "enabled" // FieldHidden holds the string denoting the hidden field in the database. FieldHidden = "hidden" // FieldHideChildren holds the string denoting the hide_children field in the database. FieldHideChildren = "hide_children" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldIcon holds the string denoting the icon field in the database. FieldIcon = "icon" // FieldComponent holds the string denoting the component field in the database. FieldComponent = "component" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeLionPermissions holds the string denoting the lion_permissions edge name in mutations. EdgeLionPermissions = "lion_permissions" // Table holds the table name of the resources in the database. Table = "lion_resources" // LionPermissionsTable is the table that holds the lion_permissions relation/edge. LionPermissionsTable = "lion_permissions" // LionPermissionsInverseTable is the table name for the Permissions entity. // It exists in this package in order to avoid circular dependency with the "permissions" package. LionPermissionsInverseTable = "lion_permissions" // LionPermissionsColumn is the table column denoting the lion_permissions relation/edge. LionPermissionsColumn = "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 // DefaultParentID holds the default value on creation for the "parent_id" field. DefaultParentID int // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultSortOrder holds the default value on creation for the "sort_order" field. DefaultSortOrder int // DefaultResourceType holds the default value on creation for the "resource_type" field. DefaultResourceType int // DefaultResourceScope holds the default value on creation for the "resource_scope" field. DefaultResourceScope int // DefaultEnabled holds the default value on creation for the "enabled" field. DefaultEnabled bool // DefaultHidden holds the default value on creation for the "hidden" field. DefaultHidden bool // DefaultHideChildren holds the default value on creation for the "hide_children" field. DefaultHideChildren bool // DefaultPath holds the default value on creation for the "path" field. DefaultPath string // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // DefaultIcon holds the default value on creation for the "icon" field. DefaultIcon string // IconValidator is a validator for the "icon" field. It is called by the builders before save. IconValidator func(string) error // DefaultComponent holds the default value on creation for the "component" field. DefaultComponent string // ComponentValidator is a validator for the "component" field. It is called by the builders before save. ComponentValidator func(string) error // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldCreatedBy, FieldUpdatedBy, FieldParentID, FieldName, FieldSortOrder, FieldResourceType, FieldResourceScope, FieldEnabled, FieldHidden, FieldHideChildren, FieldPath, FieldIcon, FieldComponent, FieldDescription, }
Columns holds all SQL columns for resources fields.
Functions ¶
func Component ¶
Component applies equality check predicate on the "component" field. It's identical to ComponentEQ.
func ComponentContains ¶
ComponentContains applies the Contains predicate on the "component" field.
func ComponentContainsFold ¶
ComponentContainsFold applies the ContainsFold predicate on the "component" field.
func ComponentEQ ¶
ComponentEQ applies the EQ predicate on the "component" field.
func ComponentEqualFold ¶
ComponentEqualFold applies the EqualFold predicate on the "component" field.
func ComponentGT ¶
ComponentGT applies the GT predicate on the "component" field.
func ComponentGTE ¶
ComponentGTE applies the GTE predicate on the "component" field.
func ComponentHasPrefix ¶
ComponentHasPrefix applies the HasPrefix predicate on the "component" field.
func ComponentHasSuffix ¶
ComponentHasSuffix applies the HasSuffix predicate on the "component" field.
func ComponentIn ¶
ComponentIn applies the In predicate on the "component" field.
func ComponentLT ¶
ComponentLT applies the LT predicate on the "component" field.
func ComponentLTE ¶
ComponentLTE applies the LTE predicate on the "component" field.
func ComponentNEQ ¶
ComponentNEQ applies the NEQ predicate on the "component" field.
func ComponentNotIn ¶
ComponentNotIn applies the NotIn predicate on the "component" field.
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" 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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func Enabled ¶
Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func EnabledNEQ ¶
EnabledNEQ applies the NEQ predicate on the "enabled" field.
func HasLionPermissions ¶
HasLionPermissions applies the HasEdge predicate on the "lion_permissions" edge.
func HasLionPermissionsWith ¶
func HasLionPermissionsWith(preds ...predicate.Permissions) predicate.Resources
HasLionPermissionsWith applies the HasEdge predicate on the "lion_permissions" edge with a given conditions (other predicates).
func Hidden ¶
Hidden applies equality check predicate on the "hidden" field. It's identical to HiddenEQ.
func HideChildren ¶
HideChildren applies equality check predicate on the "hide_children" field. It's identical to HideChildrenEQ.
func HideChildrenEQ ¶
HideChildrenEQ applies the EQ predicate on the "hide_children" field.
func HideChildrenNEQ ¶
HideChildrenNEQ applies the NEQ predicate on the "hide_children" field.
func IconContains ¶
IconContains applies the Contains predicate on the "icon" field.
func IconContainsFold ¶
IconContainsFold applies the ContainsFold predicate on the "icon" field.
func IconEqualFold ¶
IconEqualFold applies the EqualFold predicate on the "icon" field.
func IconHasPrefix ¶
IconHasPrefix applies the HasPrefix predicate on the "icon" field.
func IconHasSuffix ¶
IconHasSuffix applies the HasSuffix predicate on the "icon" field.
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 ParentID ¶
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDEQ ¶
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDGT ¶
ParentIDGT applies the GT predicate on the "parent_id" field.
func ParentIDGTE ¶
ParentIDGTE applies the GTE predicate on the "parent_id" field.
func ParentIDIn ¶
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDLT ¶
ParentIDLT applies the LT predicate on the "parent_id" field.
func ParentIDLTE ¶
ParentIDLTE applies the LTE predicate on the "parent_id" field.
func ParentIDNEQ ¶
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func ResourceScope ¶
ResourceScope applies equality check predicate on the "resource_scope" field. It's identical to ResourceScopeEQ.
func ResourceScopeEQ ¶
ResourceScopeEQ applies the EQ predicate on the "resource_scope" field.
func ResourceScopeGT ¶
ResourceScopeGT applies the GT predicate on the "resource_scope" field.
func ResourceScopeGTE ¶
ResourceScopeGTE applies the GTE predicate on the "resource_scope" field.
func ResourceScopeIn ¶
ResourceScopeIn applies the In predicate on the "resource_scope" field.
func ResourceScopeLT ¶
ResourceScopeLT applies the LT predicate on the "resource_scope" field.
func ResourceScopeLTE ¶
ResourceScopeLTE applies the LTE predicate on the "resource_scope" field.
func ResourceScopeNEQ ¶
ResourceScopeNEQ applies the NEQ predicate on the "resource_scope" field.
func ResourceScopeNotIn ¶
ResourceScopeNotIn applies the NotIn predicate on the "resource_scope" field.
func ResourceType ¶
ResourceType applies equality check predicate on the "resource_type" field. It's identical to ResourceTypeEQ.
func ResourceTypeEQ ¶
ResourceTypeEQ applies the EQ predicate on the "resource_type" field.
func ResourceTypeGT ¶
ResourceTypeGT applies the GT predicate on the "resource_type" field.
func ResourceTypeGTE ¶
ResourceTypeGTE applies the GTE predicate on the "resource_type" field.
func ResourceTypeIn ¶
ResourceTypeIn applies the In predicate on the "resource_type" field.
func ResourceTypeLT ¶
ResourceTypeLT applies the LT predicate on the "resource_type" field.
func ResourceTypeLTE ¶
ResourceTypeLTE applies the LTE predicate on the "resource_type" field.
func ResourceTypeNEQ ¶
ResourceTypeNEQ applies the NEQ predicate on the "resource_type" field.
func ResourceTypeNotIn ¶
ResourceTypeNotIn applies the NotIn predicate on the "resource_type" field.
func SortOrder ¶
SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.
func SortOrderEQ ¶
SortOrderEQ applies the EQ predicate on the "sort_order" field.
func SortOrderGT ¶
SortOrderGT applies the GT predicate on the "sort_order" field.
func SortOrderGTE ¶
SortOrderGTE applies the GTE predicate on the "sort_order" field.
func SortOrderIn ¶
SortOrderIn applies the In predicate on the "sort_order" field.
func SortOrderLT ¶
SortOrderLT applies the LT predicate on the "sort_order" field.
func SortOrderLTE ¶
SortOrderLTE applies the LTE predicate on the "sort_order" field.
func SortOrderNEQ ¶
SortOrderNEQ applies the NEQ predicate on the "sort_order" field.
func SortOrderNotIn ¶
SortOrderNotIn applies the NotIn predicate on the "sort_order" 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 UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
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 Resources queries.
func ByComponent ¶
func ByComponent(opts ...sql.OrderTermOption) OrderOption
ByComponent orders the results by the component 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 ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEnabled ¶
func ByEnabled(opts ...sql.OrderTermOption) OrderOption
ByEnabled orders the results by the enabled field.
func ByHidden ¶
func ByHidden(opts ...sql.OrderTermOption) OrderOption
ByHidden orders the results by the hidden field.
func ByHideChildren ¶
func ByHideChildren(opts ...sql.OrderTermOption) OrderOption
ByHideChildren orders the results by the hide_children field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIcon ¶
func ByIcon(opts ...sql.OrderTermOption) OrderOption
ByIcon orders the results by the icon field.
func ByLionPermissions ¶
func ByLionPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLionPermissions orders the results by lion_permissions terms.
func ByLionPermissionsCount ¶
func ByLionPermissionsCount(opts ...sql.OrderTermOption) OrderOption
ByLionPermissionsCount orders the results by lion_permissions count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByParentID ¶
func ByParentID(opts ...sql.OrderTermOption) OrderOption
ByParentID orders the results by the parent_id field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func ByResourceScope ¶
func ByResourceScope(opts ...sql.OrderTermOption) OrderOption
ByResourceScope orders the results by the resource_scope field.
func ByResourceType ¶
func ByResourceType(opts ...sql.OrderTermOption) OrderOption
ByResourceType orders the results by the resource_type field.
func BySortOrder ¶
func BySortOrder(opts ...sql.OrderTermOption) OrderOption
BySortOrder orders the results by the sort_order 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.