Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AppRes) predicate.AppRes
- func AppID(v int) predicate.AppRes
- func AppIDEQ(v int) predicate.AppRes
- func AppIDIn(vs ...int) predicate.AppRes
- func AppIDIsNil() predicate.AppRes
- func AppIDNEQ(v int) predicate.AppRes
- func AppIDNotIn(vs ...int) predicate.AppRes
- func AppIDNotNil() predicate.AppRes
- func ArnPattern(v string) predicate.AppRes
- func ArnPatternContains(v string) predicate.AppRes
- func ArnPatternContainsFold(v string) predicate.AppRes
- func ArnPatternEQ(v string) predicate.AppRes
- func ArnPatternEqualFold(v string) predicate.AppRes
- func ArnPatternGT(v string) predicate.AppRes
- func ArnPatternGTE(v string) predicate.AppRes
- func ArnPatternHasPrefix(v string) predicate.AppRes
- func ArnPatternHasSuffix(v string) predicate.AppRes
- func ArnPatternIn(vs ...string) predicate.AppRes
- func ArnPatternLT(v string) predicate.AppRes
- func ArnPatternLTE(v string) predicate.AppRes
- func ArnPatternNEQ(v string) predicate.AppRes
- func ArnPatternNotIn(vs ...string) predicate.AppRes
- func CreatedAt(v time.Time) predicate.AppRes
- func CreatedAtEQ(v time.Time) predicate.AppRes
- func CreatedAtGT(v time.Time) predicate.AppRes
- func CreatedAtGTE(v time.Time) predicate.AppRes
- func CreatedAtIn(vs ...time.Time) predicate.AppRes
- func CreatedAtLT(v time.Time) predicate.AppRes
- func CreatedAtLTE(v time.Time) predicate.AppRes
- func CreatedAtNEQ(v time.Time) predicate.AppRes
- func CreatedAtNotIn(vs ...time.Time) predicate.AppRes
- func CreatedBy(v int) predicate.AppRes
- func CreatedByEQ(v int) predicate.AppRes
- func CreatedByGT(v int) predicate.AppRes
- func CreatedByGTE(v int) predicate.AppRes
- func CreatedByIn(vs ...int) predicate.AppRes
- func CreatedByLT(v int) predicate.AppRes
- func CreatedByLTE(v int) predicate.AppRes
- func CreatedByNEQ(v int) predicate.AppRes
- func CreatedByNotIn(vs ...int) predicate.AppRes
- func HasApp() predicate.AppRes
- func HasAppWith(preds ...predicate.App) predicate.AppRes
- func ID(id int) predicate.AppRes
- func IDEQ(id int) predicate.AppRes
- func IDGT(id int) predicate.AppRes
- func IDGTE(id int) predicate.AppRes
- func IDIn(ids ...int) predicate.AppRes
- func IDLT(id int) predicate.AppRes
- func IDLTE(id int) predicate.AppRes
- func IDNEQ(id int) predicate.AppRes
- func IDNotIn(ids ...int) predicate.AppRes
- func Name(v string) predicate.AppRes
- func NameContains(v string) predicate.AppRes
- func NameContainsFold(v string) predicate.AppRes
- func NameEQ(v string) predicate.AppRes
- func NameEqualFold(v string) predicate.AppRes
- func NameGT(v string) predicate.AppRes
- func NameGTE(v string) predicate.AppRes
- func NameHasPrefix(v string) predicate.AppRes
- func NameHasSuffix(v string) predicate.AppRes
- func NameIn(vs ...string) predicate.AppRes
- func NameLT(v string) predicate.AppRes
- func NameLTE(v string) predicate.AppRes
- func NameNEQ(v string) predicate.AppRes
- func NameNotIn(vs ...string) predicate.AppRes
- func Not(p predicate.AppRes) predicate.AppRes
- func Or(predicates ...predicate.AppRes) predicate.AppRes
- func TypeName(v string) predicate.AppRes
- func TypeNameContains(v string) predicate.AppRes
- func TypeNameContainsFold(v string) predicate.AppRes
- func TypeNameEQ(v string) predicate.AppRes
- func TypeNameEqualFold(v string) predicate.AppRes
- func TypeNameGT(v string) predicate.AppRes
- func TypeNameGTE(v string) predicate.AppRes
- func TypeNameHasPrefix(v string) predicate.AppRes
- func TypeNameHasSuffix(v string) predicate.AppRes
- func TypeNameIn(vs ...string) predicate.AppRes
- func TypeNameLT(v string) predicate.AppRes
- func TypeNameLTE(v string) predicate.AppRes
- func TypeNameNEQ(v string) predicate.AppRes
- func TypeNameNotIn(vs ...string) predicate.AppRes
- func UpdatedAt(v time.Time) predicate.AppRes
- func UpdatedAtEQ(v time.Time) predicate.AppRes
- func UpdatedAtGT(v time.Time) predicate.AppRes
- func UpdatedAtGTE(v time.Time) predicate.AppRes
- func UpdatedAtIn(vs ...time.Time) predicate.AppRes
- func UpdatedAtIsNil() predicate.AppRes
- func UpdatedAtLT(v time.Time) predicate.AppRes
- func UpdatedAtLTE(v time.Time) predicate.AppRes
- func UpdatedAtNEQ(v time.Time) predicate.AppRes
- func UpdatedAtNotIn(vs ...time.Time) predicate.AppRes
- func UpdatedAtNotNil() predicate.AppRes
- func UpdatedBy(v int) predicate.AppRes
- func UpdatedByEQ(v int) predicate.AppRes
- func UpdatedByGT(v int) predicate.AppRes
- func UpdatedByGTE(v int) predicate.AppRes
- func UpdatedByIn(vs ...int) predicate.AppRes
- func UpdatedByIsNil() predicate.AppRes
- func UpdatedByLT(v int) predicate.AppRes
- func UpdatedByLTE(v int) predicate.AppRes
- func UpdatedByNEQ(v int) predicate.AppRes
- func UpdatedByNotIn(vs ...int) predicate.AppRes
- func UpdatedByNotNil() predicate.AppRes
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByArnPattern(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByTypeName(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 appres type in the database. Label = "app_res" // 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" // FieldTypeName holds the string denoting the type_name field in the database. FieldTypeName = "type_name" // FieldArnPattern holds the string denoting the arn_pattern field in the database. FieldArnPattern = "arn_pattern" // EdgeApp holds the string denoting the app edge name in mutations. EdgeApp = "app" // Table holds the table name of the appres in the database. Table = "app_res" // AppTable is the table that holds the app relation/edge. AppTable = "app_res" // 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" )
Variables ¶
var ( Hooks [2]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // 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, FieldTypeName, FieldArnPattern, }
Columns holds all SQL columns for appres fields.
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 ArnPattern ¶
ArnPattern applies equality check predicate on the "arn_pattern" field. It's identical to ArnPatternEQ.
func ArnPatternContains ¶
ArnPatternContains applies the Contains predicate on the "arn_pattern" field.
func ArnPatternContainsFold ¶
ArnPatternContainsFold applies the ContainsFold predicate on the "arn_pattern" field.
func ArnPatternEQ ¶
ArnPatternEQ applies the EQ predicate on the "arn_pattern" field.
func ArnPatternEqualFold ¶
ArnPatternEqualFold applies the EqualFold predicate on the "arn_pattern" field.
func ArnPatternGT ¶
ArnPatternGT applies the GT predicate on the "arn_pattern" field.
func ArnPatternGTE ¶
ArnPatternGTE applies the GTE predicate on the "arn_pattern" field.
func ArnPatternHasPrefix ¶
ArnPatternHasPrefix applies the HasPrefix predicate on the "arn_pattern" field.
func ArnPatternHasSuffix ¶
ArnPatternHasSuffix applies the HasSuffix predicate on the "arn_pattern" field.
func ArnPatternIn ¶
ArnPatternIn applies the In predicate on the "arn_pattern" field.
func ArnPatternLT ¶
ArnPatternLT applies the LT predicate on the "arn_pattern" field.
func ArnPatternLTE ¶
ArnPatternLTE applies the LTE predicate on the "arn_pattern" field.
func ArnPatternNEQ ¶
ArnPatternNEQ applies the NEQ predicate on the "arn_pattern" field.
func ArnPatternNotIn ¶
ArnPatternNotIn applies the NotIn predicate on the "arn_pattern" 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 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 TypeName ¶
TypeName applies equality check predicate on the "type_name" field. It's identical to TypeNameEQ.
func TypeNameContains ¶
TypeNameContains applies the Contains predicate on the "type_name" field.
func TypeNameContainsFold ¶
TypeNameContainsFold applies the ContainsFold predicate on the "type_name" field.
func TypeNameEQ ¶
TypeNameEQ applies the EQ predicate on the "type_name" field.
func TypeNameEqualFold ¶
TypeNameEqualFold applies the EqualFold predicate on the "type_name" field.
func TypeNameGT ¶
TypeNameGT applies the GT predicate on the "type_name" field.
func TypeNameGTE ¶
TypeNameGTE applies the GTE predicate on the "type_name" field.
func TypeNameHasPrefix ¶
TypeNameHasPrefix applies the HasPrefix predicate on the "type_name" field.
func TypeNameHasSuffix ¶
TypeNameHasSuffix applies the HasSuffix predicate on the "type_name" field.
func TypeNameIn ¶
TypeNameIn applies the In predicate on the "type_name" field.
func TypeNameLT ¶
TypeNameLT applies the LT predicate on the "type_name" field.
func TypeNameLTE ¶
TypeNameLTE applies the LTE predicate on the "type_name" field.
func TypeNameNEQ ¶
TypeNameNEQ applies the NEQ predicate on the "type_name" field.
func TypeNameNotIn ¶
TypeNameNotIn applies the NotIn predicate on the "type_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 AppRes 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 ByArnPattern ¶
func ByArnPattern(opts ...sql.OrderTermOption) OrderOption
ByArnPattern orders the results by the arn_pattern 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 ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByTypeName ¶
func ByTypeName(opts ...sql.OrderTermOption) OrderOption
ByTypeName orders the results by the type_name 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.