Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgApp) predicate.OrgApp
- func AppID(v int) predicate.OrgApp
- func AppIDEQ(v int) predicate.OrgApp
- func AppIDIn(vs ...int) predicate.OrgApp
- func AppIDNEQ(v int) predicate.OrgApp
- func AppIDNotIn(vs ...int) predicate.OrgApp
- func CreatedAt(v time.Time) predicate.OrgApp
- func CreatedAtEQ(v time.Time) predicate.OrgApp
- func CreatedAtGT(v time.Time) predicate.OrgApp
- func CreatedAtGTE(v time.Time) predicate.OrgApp
- func CreatedAtIn(vs ...time.Time) predicate.OrgApp
- func CreatedAtLT(v time.Time) predicate.OrgApp
- func CreatedAtLTE(v time.Time) predicate.OrgApp
- func CreatedAtNEQ(v time.Time) predicate.OrgApp
- func CreatedAtNotIn(vs ...time.Time) predicate.OrgApp
- func CreatedBy(v int) predicate.OrgApp
- func CreatedByEQ(v int) predicate.OrgApp
- func CreatedByGT(v int) predicate.OrgApp
- func CreatedByGTE(v int) predicate.OrgApp
- func CreatedByIn(vs ...int) predicate.OrgApp
- func CreatedByLT(v int) predicate.OrgApp
- func CreatedByLTE(v int) predicate.OrgApp
- func CreatedByNEQ(v int) predicate.OrgApp
- func CreatedByNotIn(vs ...int) predicate.OrgApp
- func HasApp() predicate.OrgApp
- func HasAppWith(preds ...predicate.App) predicate.OrgApp
- func HasOrg() predicate.OrgApp
- func HasOrgWith(preds ...predicate.Org) predicate.OrgApp
- func ID(id int) predicate.OrgApp
- func IDEQ(id int) predicate.OrgApp
- func IDGT(id int) predicate.OrgApp
- func IDGTE(id int) predicate.OrgApp
- func IDIn(ids ...int) predicate.OrgApp
- func IDLT(id int) predicate.OrgApp
- func IDLTE(id int) predicate.OrgApp
- func IDNEQ(id int) predicate.OrgApp
- func IDNotIn(ids ...int) predicate.OrgApp
- func Not(p predicate.OrgApp) predicate.OrgApp
- func Or(predicates ...predicate.OrgApp) predicate.OrgApp
- func OrgID(v int) predicate.OrgApp
- func OrgIDEQ(v int) predicate.OrgApp
- func OrgIDIn(vs ...int) predicate.OrgApp
- func OrgIDNEQ(v int) predicate.OrgApp
- func OrgIDNotIn(vs ...int) predicate.OrgApp
- func UpdatedAt(v time.Time) predicate.OrgApp
- func UpdatedAtEQ(v time.Time) predicate.OrgApp
- func UpdatedAtGT(v time.Time) predicate.OrgApp
- func UpdatedAtGTE(v time.Time) predicate.OrgApp
- func UpdatedAtIn(vs ...time.Time) predicate.OrgApp
- func UpdatedAtIsNil() predicate.OrgApp
- func UpdatedAtLT(v time.Time) predicate.OrgApp
- func UpdatedAtLTE(v time.Time) predicate.OrgApp
- func UpdatedAtNEQ(v time.Time) predicate.OrgApp
- func UpdatedAtNotIn(vs ...time.Time) predicate.OrgApp
- func UpdatedAtNotNil() predicate.OrgApp
- func UpdatedBy(v int) predicate.OrgApp
- func UpdatedByEQ(v int) predicate.OrgApp
- func UpdatedByGT(v int) predicate.OrgApp
- func UpdatedByGTE(v int) predicate.OrgApp
- func UpdatedByIn(vs ...int) predicate.OrgApp
- func UpdatedByIsNil() predicate.OrgApp
- func UpdatedByLT(v int) predicate.OrgApp
- func UpdatedByLTE(v int) predicate.OrgApp
- func UpdatedByNEQ(v int) predicate.OrgApp
- func UpdatedByNotIn(vs ...int) predicate.OrgApp
- func UpdatedByNotNil() predicate.OrgApp
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrgID(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 orgapp type in the database. Label = "org_app" // 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" // FieldOrgID holds the string denoting the org_id field in the database. FieldOrgID = "org_id" // FieldAppID holds the string denoting the app_id field in the database. FieldAppID = "app_id" // EdgeApp holds the string denoting the app edge name in mutations. EdgeApp = "app" // EdgeOrg holds the string denoting the org edge name in mutations. EdgeOrg = "org" // Table holds the table name of the orgapp in the database. Table = "org_app" // AppTable is the table that holds the app relation/edge. AppTable = "org_app" // 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" // OrgTable is the table that holds the org relation/edge. OrgTable = "org_app" // OrgInverseTable is the table name for the Org entity. // It exists in this package in order to avoid circular dependency with the "org" package. OrgInverseTable = "org" // OrgColumn is the table column denoting the org relation/edge. OrgColumn = "org_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, FieldOrgID, FieldAppID, }
Columns holds all SQL columns for orgapp fields.
Functions ¶
func AppID ¶
AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.
func AppIDNotIn ¶
AppIDNotIn applies the NotIn predicate on the "app_id" 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 HasAppWith ¶
HasAppWith applies the HasEdge predicate on the "app" edge with a given conditions (other predicates).
func HasOrgWith ¶
HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).
func OrgID ¶
OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.
func OrgIDNotIn ¶
OrgIDNotIn applies the NotIn predicate on the "org_id" 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 OrgApp 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 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 ByOrgField ¶
func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrgField orders the results by org field.
func ByOrgID ¶
func ByOrgID(opts ...sql.OrderTermOption) OrderOption
ByOrgID orders the results by the org_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.