Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AppRole) predicate.AppRole
- func AppID(v int) predicate.AppRole
- func AppIDEQ(v int) predicate.AppRole
- func AppIDIn(vs ...int) predicate.AppRole
- func AppIDIsNil() predicate.AppRole
- func AppIDNEQ(v int) predicate.AppRole
- func AppIDNotIn(vs ...int) predicate.AppRole
- func AppIDNotNil() predicate.AppRole
- func AutoGrant(v bool) predicate.AppRole
- func AutoGrantEQ(v bool) predicate.AppRole
- func AutoGrantNEQ(v bool) predicate.AppRole
- func Comments(v string) predicate.AppRole
- func CommentsContains(v string) predicate.AppRole
- func CommentsContainsFold(v string) predicate.AppRole
- func CommentsEQ(v string) predicate.AppRole
- func CommentsEqualFold(v string) predicate.AppRole
- func CommentsGT(v string) predicate.AppRole
- func CommentsGTE(v string) predicate.AppRole
- func CommentsHasPrefix(v string) predicate.AppRole
- func CommentsHasSuffix(v string) predicate.AppRole
- func CommentsIn(vs ...string) predicate.AppRole
- func CommentsIsNil() predicate.AppRole
- func CommentsLT(v string) predicate.AppRole
- func CommentsLTE(v string) predicate.AppRole
- func CommentsNEQ(v string) predicate.AppRole
- func CommentsNotIn(vs ...string) predicate.AppRole
- func CommentsNotNil() predicate.AppRole
- func CreatedAt(v time.Time) predicate.AppRole
- func CreatedAtEQ(v time.Time) predicate.AppRole
- func CreatedAtGT(v time.Time) predicate.AppRole
- func CreatedAtGTE(v time.Time) predicate.AppRole
- func CreatedAtIn(vs ...time.Time) predicate.AppRole
- func CreatedAtLT(v time.Time) predicate.AppRole
- func CreatedAtLTE(v time.Time) predicate.AppRole
- func CreatedAtNEQ(v time.Time) predicate.AppRole
- func CreatedAtNotIn(vs ...time.Time) predicate.AppRole
- func CreatedBy(v int) predicate.AppRole
- func CreatedByEQ(v int) predicate.AppRole
- func CreatedByGT(v int) predicate.AppRole
- func CreatedByGTE(v int) predicate.AppRole
- func CreatedByIn(vs ...int) predicate.AppRole
- func CreatedByLT(v int) predicate.AppRole
- func CreatedByLTE(v int) predicate.AppRole
- func CreatedByNEQ(v int) predicate.AppRole
- func CreatedByNotIn(vs ...int) predicate.AppRole
- func Editable(v bool) predicate.AppRole
- func EditableEQ(v bool) predicate.AppRole
- func EditableNEQ(v bool) predicate.AppRole
- func HasApp() predicate.AppRole
- func HasAppRolePolicy() predicate.AppRole
- func HasAppRolePolicyWith(preds ...predicate.AppRolePolicy) predicate.AppRole
- func HasAppWith(preds ...predicate.App) predicate.AppRole
- func HasPolicies() predicate.AppRole
- func HasPoliciesWith(preds ...predicate.AppPolicy) predicate.AppRole
- func ID(id int) predicate.AppRole
- func IDEQ(id int) predicate.AppRole
- func IDGT(id int) predicate.AppRole
- func IDGTE(id int) predicate.AppRole
- func IDIn(ids ...int) predicate.AppRole
- func IDLT(id int) predicate.AppRole
- func IDLTE(id int) predicate.AppRole
- func IDNEQ(id int) predicate.AppRole
- func IDNotIn(ids ...int) predicate.AppRole
- func Name(v string) predicate.AppRole
- func NameContains(v string) predicate.AppRole
- func NameContainsFold(v string) predicate.AppRole
- func NameEQ(v string) predicate.AppRole
- func NameEqualFold(v string) predicate.AppRole
- func NameGT(v string) predicate.AppRole
- func NameGTE(v string) predicate.AppRole
- func NameHasPrefix(v string) predicate.AppRole
- func NameHasSuffix(v string) predicate.AppRole
- func NameIn(vs ...string) predicate.AppRole
- func NameLT(v string) predicate.AppRole
- func NameLTE(v string) predicate.AppRole
- func NameNEQ(v string) predicate.AppRole
- func NameNotIn(vs ...string) predicate.AppRole
- func Not(p predicate.AppRole) predicate.AppRole
- func Or(predicates ...predicate.AppRole) predicate.AppRole
- func UpdatedAt(v time.Time) predicate.AppRole
- func UpdatedAtEQ(v time.Time) predicate.AppRole
- func UpdatedAtGT(v time.Time) predicate.AppRole
- func UpdatedAtGTE(v time.Time) predicate.AppRole
- func UpdatedAtIn(vs ...time.Time) predicate.AppRole
- func UpdatedAtIsNil() predicate.AppRole
- func UpdatedAtLT(v time.Time) predicate.AppRole
- func UpdatedAtLTE(v time.Time) predicate.AppRole
- func UpdatedAtNEQ(v time.Time) predicate.AppRole
- func UpdatedAtNotIn(vs ...time.Time) predicate.AppRole
- func UpdatedAtNotNil() predicate.AppRole
- func UpdatedBy(v int) predicate.AppRole
- func UpdatedByEQ(v int) predicate.AppRole
- func UpdatedByGT(v int) predicate.AppRole
- func UpdatedByGTE(v int) predicate.AppRole
- func UpdatedByIn(vs ...int) predicate.AppRole
- func UpdatedByIsNil() predicate.AppRole
- func UpdatedByLT(v int) predicate.AppRole
- func UpdatedByLTE(v int) predicate.AppRole
- func UpdatedByNEQ(v int) predicate.AppRole
- func UpdatedByNotIn(vs ...int) predicate.AppRole
- func UpdatedByNotNil() predicate.AppRole
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByAppRolePolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAppRolePolicyCount(opts ...sql.OrderTermOption) OrderOption
- func ByAutoGrant(opts ...sql.OrderTermOption) OrderOption
- func ByComments(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByEditable(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPoliciesCount(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 approle type in the database. Label = "app_role" // 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" // FieldAppID holds the string denoting the app_id field in the database. FieldAppID = "app_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldComments holds the string denoting the comments field in the database. FieldComments = "comments" // FieldAutoGrant holds the string denoting the auto_grant field in the database. FieldAutoGrant = "auto_grant" // FieldEditable holds the string denoting the editable field in the database. FieldEditable = "editable" // EdgeApp holds the string denoting the app edge name in mutations. EdgeApp = "app" // EdgePolicies holds the string denoting the policies edge name in mutations. EdgePolicies = "policies" // EdgeAppRolePolicy holds the string denoting the app_role_policy edge name in mutations. EdgeAppRolePolicy = "app_role_policy" // Table holds the table name of the approle in the database. Table = "app_role" // AppTable is the table that holds the app relation/edge. AppTable = "app_role" // AppInverseTable is the table name for the App entity. // It exists in this package in order to avoid circular dependency with the "app" package. AppInverseTable = "app" // AppColumn is the table column denoting the app relation/edge. AppColumn = "app_id" // PoliciesTable is the table that holds the policies relation/edge. The primary key declared below. PoliciesTable = "app_role_policy" // PoliciesInverseTable is the table name for the AppPolicy entity. // It exists in this package in order to avoid circular dependency with the "apppolicy" package. PoliciesInverseTable = "app_policy" // AppRolePolicyTable is the table that holds the app_role_policy relation/edge. AppRolePolicyTable = "app_role_policy" // AppRolePolicyInverseTable is the table name for the AppRolePolicy entity. // It exists in this package in order to avoid circular dependency with the "approlepolicy" package. AppRolePolicyInverseTable = "app_role_policy" // AppRolePolicyColumn is the table column denoting the app_role_policy relation/edge. AppRolePolicyColumn = "app_role_id" )
Variables ¶
var ( Hooks [2]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultAutoGrant holds the default value on creation for the "auto_grant" field. DefaultAutoGrant bool // DefaultEditable holds the default value on creation for the "editable" field. DefaultEditable bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() int )
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, FieldAppID, FieldName, FieldComments, FieldAutoGrant, FieldEditable, }
Columns holds all SQL columns for approle fields.
var ( // PoliciesPrimaryKey and PoliciesColumn2 are the table columns denoting the // primary key for the policies relation (M2M). PoliciesPrimaryKey = []string{"app_role_id", "app_policy_id"} )
Functions ¶
func AppID ¶
AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.
func AppIDIsNil ¶
AppIDIsNil applies the IsNil predicate on the "app_id" field.
func AppIDNotIn ¶
AppIDNotIn applies the NotIn predicate on the "app_id" field.
func AppIDNotNil ¶
AppIDNotNil applies the NotNil predicate on the "app_id" field.
func AutoGrant ¶
AutoGrant applies equality check predicate on the "auto_grant" field. It's identical to AutoGrantEQ.
func AutoGrantEQ ¶
AutoGrantEQ applies the EQ predicate on the "auto_grant" field.
func AutoGrantNEQ ¶
AutoGrantNEQ applies the NEQ predicate on the "auto_grant" field.
func Comments ¶
Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.
func CommentsContains ¶
CommentsContains applies the Contains predicate on the "comments" field.
func CommentsContainsFold ¶
CommentsContainsFold applies the ContainsFold predicate on the "comments" field.
func CommentsEQ ¶
CommentsEQ applies the EQ predicate on the "comments" field.
func CommentsEqualFold ¶
CommentsEqualFold applies the EqualFold predicate on the "comments" field.
func CommentsGT ¶
CommentsGT applies the GT predicate on the "comments" field.
func CommentsGTE ¶
CommentsGTE applies the GTE predicate on the "comments" field.
func CommentsHasPrefix ¶
CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.
func CommentsHasSuffix ¶
CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.
func CommentsIn ¶
CommentsIn applies the In predicate on the "comments" field.
func CommentsIsNil ¶
CommentsIsNil applies the IsNil predicate on the "comments" field.
func CommentsLT ¶
CommentsLT applies the LT predicate on the "comments" field.
func CommentsLTE ¶
CommentsLTE applies the LTE predicate on the "comments" field.
func CommentsNEQ ¶
CommentsNEQ applies the NEQ predicate on the "comments" field.
func CommentsNotIn ¶
CommentsNotIn applies the NotIn predicate on the "comments" field.
func CommentsNotNil ¶
CommentsNotNil applies the NotNil predicate on the "comments" 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 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 Editable ¶
Editable applies equality check predicate on the "editable" field. It's identical to EditableEQ.
func EditableEQ ¶
EditableEQ applies the EQ predicate on the "editable" field.
func EditableNEQ ¶
EditableNEQ applies the NEQ predicate on the "editable" field.
func HasAppRolePolicy ¶
HasAppRolePolicy applies the HasEdge predicate on the "app_role_policy" edge.
func HasAppRolePolicyWith ¶
func HasAppRolePolicyWith(preds ...predicate.AppRolePolicy) predicate.AppRole
HasAppRolePolicyWith applies the HasEdge predicate on the "app_role_policy" edge with a given conditions (other predicates).
func HasAppWith ¶
HasAppWith applies the HasEdge predicate on the "app" edge with a given conditions (other predicates).
func HasPolicies ¶
HasPolicies applies the HasEdge predicate on the "policies" edge.
func HasPoliciesWith ¶
HasPoliciesWith applies the HasEdge predicate on the "policies" edge with a given conditions (other predicates).
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 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil 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 AppRole queries.
func ByAppField ¶
func ByAppField(field string, opts ...sql.OrderTermOption) OrderOption
ByAppField orders the results by app field.
func ByAppID ¶
func ByAppID(opts ...sql.OrderTermOption) OrderOption
ByAppID orders the results by the app_id field.
func ByAppRolePolicy ¶
func ByAppRolePolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAppRolePolicy orders the results by app_role_policy terms.
func ByAppRolePolicyCount ¶
func ByAppRolePolicyCount(opts ...sql.OrderTermOption) OrderOption
ByAppRolePolicyCount orders the results by app_role_policy count.
func ByAutoGrant ¶
func ByAutoGrant(opts ...sql.OrderTermOption) OrderOption
ByAutoGrant orders the results by the auto_grant field.
func ByComments ¶
func ByComments(opts ...sql.OrderTermOption) OrderOption
ByComments orders the results by the comments 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 ByEditable ¶
func ByEditable(opts ...sql.OrderTermOption) OrderOption
ByEditable orders the results by the editable field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPolicies ¶
func ByPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPolicies orders the results by policies terms.
func ByPoliciesCount ¶
func ByPoliciesCount(opts ...sql.OrderTermOption) OrderOption
ByPoliciesCount orders the results by policies count.
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.