appres

package
v0.0.0-...-c1ffc38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for appres fields.

Functions

func And

func And(predicates ...predicate.AppRes) predicate.AppRes

And groups predicates with the AND operator between them.

func AppID

func AppID(v int) predicate.AppRes

AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.

func AppIDEQ

func AppIDEQ(v int) predicate.AppRes

AppIDEQ applies the EQ predicate on the "app_id" field.

func AppIDIn

func AppIDIn(vs ...int) predicate.AppRes

AppIDIn applies the In predicate on the "app_id" field.

func AppIDIsNil

func AppIDIsNil() predicate.AppRes

AppIDIsNil applies the IsNil predicate on the "app_id" field.

func AppIDNEQ

func AppIDNEQ(v int) predicate.AppRes

AppIDNEQ applies the NEQ predicate on the "app_id" field.

func AppIDNotIn

func AppIDNotIn(vs ...int) predicate.AppRes

AppIDNotIn applies the NotIn predicate on the "app_id" field.

func AppIDNotNil

func AppIDNotNil() predicate.AppRes

AppIDNotNil applies the NotNil predicate on the "app_id" field.

func ArnPattern

func ArnPattern(v string) predicate.AppRes

ArnPattern applies equality check predicate on the "arn_pattern" field. It's identical to ArnPatternEQ.

func ArnPatternContains

func ArnPatternContains(v string) predicate.AppRes

ArnPatternContains applies the Contains predicate on the "arn_pattern" field.

func ArnPatternContainsFold

func ArnPatternContainsFold(v string) predicate.AppRes

ArnPatternContainsFold applies the ContainsFold predicate on the "arn_pattern" field.

func ArnPatternEQ

func ArnPatternEQ(v string) predicate.AppRes

ArnPatternEQ applies the EQ predicate on the "arn_pattern" field.

func ArnPatternEqualFold

func ArnPatternEqualFold(v string) predicate.AppRes

ArnPatternEqualFold applies the EqualFold predicate on the "arn_pattern" field.

func ArnPatternGT

func ArnPatternGT(v string) predicate.AppRes

ArnPatternGT applies the GT predicate on the "arn_pattern" field.

func ArnPatternGTE

func ArnPatternGTE(v string) predicate.AppRes

ArnPatternGTE applies the GTE predicate on the "arn_pattern" field.

func ArnPatternHasPrefix

func ArnPatternHasPrefix(v string) predicate.AppRes

ArnPatternHasPrefix applies the HasPrefix predicate on the "arn_pattern" field.

func ArnPatternHasSuffix

func ArnPatternHasSuffix(v string) predicate.AppRes

ArnPatternHasSuffix applies the HasSuffix predicate on the "arn_pattern" field.

func ArnPatternIn

func ArnPatternIn(vs ...string) predicate.AppRes

ArnPatternIn applies the In predicate on the "arn_pattern" field.

func ArnPatternLT

func ArnPatternLT(v string) predicate.AppRes

ArnPatternLT applies the LT predicate on the "arn_pattern" field.

func ArnPatternLTE

func ArnPatternLTE(v string) predicate.AppRes

ArnPatternLTE applies the LTE predicate on the "arn_pattern" field.

func ArnPatternNEQ

func ArnPatternNEQ(v string) predicate.AppRes

ArnPatternNEQ applies the NEQ predicate on the "arn_pattern" field.

func ArnPatternNotIn

func ArnPatternNotIn(vs ...string) predicate.AppRes

ArnPatternNotIn applies the NotIn predicate on the "arn_pattern" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.AppRes

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AppRes

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AppRes

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AppRes

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.AppRes

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AppRes

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AppRes

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AppRes

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.AppRes

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int) predicate.AppRes

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.AppRes

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.AppRes

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.AppRes

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.AppRes

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.AppRes

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.AppRes

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.AppRes

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.AppRes

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func HasApp

func HasApp() predicate.AppRes

HasApp applies the HasEdge predicate on the "app" edge.

func HasAppWith

func HasAppWith(preds ...predicate.App) predicate.AppRes

HasAppWith applies the HasEdge predicate on the "app" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.AppRes

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.AppRes

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.AppRes

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.AppRes

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.AppRes

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.AppRes

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.AppRes

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.AppRes

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.AppRes

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.AppRes

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.AppRes

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.AppRes

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.AppRes

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.AppRes

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.AppRes

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.AppRes

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.AppRes

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.AppRes

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.AppRes

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.AppRes

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.AppRes

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.AppRes

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.AppRes

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.AppRes) predicate.AppRes

Or groups predicates with the OR operator between them.

func TypeName

func TypeName(v string) predicate.AppRes

TypeName applies equality check predicate on the "type_name" field. It's identical to TypeNameEQ.

func TypeNameContains

func TypeNameContains(v string) predicate.AppRes

TypeNameContains applies the Contains predicate on the "type_name" field.

func TypeNameContainsFold

func TypeNameContainsFold(v string) predicate.AppRes

TypeNameContainsFold applies the ContainsFold predicate on the "type_name" field.

func TypeNameEQ

func TypeNameEQ(v string) predicate.AppRes

TypeNameEQ applies the EQ predicate on the "type_name" field.

func TypeNameEqualFold

func TypeNameEqualFold(v string) predicate.AppRes

TypeNameEqualFold applies the EqualFold predicate on the "type_name" field.

func TypeNameGT

func TypeNameGT(v string) predicate.AppRes

TypeNameGT applies the GT predicate on the "type_name" field.

func TypeNameGTE

func TypeNameGTE(v string) predicate.AppRes

TypeNameGTE applies the GTE predicate on the "type_name" field.

func TypeNameHasPrefix

func TypeNameHasPrefix(v string) predicate.AppRes

TypeNameHasPrefix applies the HasPrefix predicate on the "type_name" field.

func TypeNameHasSuffix

func TypeNameHasSuffix(v string) predicate.AppRes

TypeNameHasSuffix applies the HasSuffix predicate on the "type_name" field.

func TypeNameIn

func TypeNameIn(vs ...string) predicate.AppRes

TypeNameIn applies the In predicate on the "type_name" field.

func TypeNameLT

func TypeNameLT(v string) predicate.AppRes

TypeNameLT applies the LT predicate on the "type_name" field.

func TypeNameLTE

func TypeNameLTE(v string) predicate.AppRes

TypeNameLTE applies the LTE predicate on the "type_name" field.

func TypeNameNEQ

func TypeNameNEQ(v string) predicate.AppRes

TypeNameNEQ applies the NEQ predicate on the "type_name" field.

func TypeNameNotIn

func TypeNameNotIn(vs ...string) predicate.AppRes

TypeNameNotIn applies the NotIn predicate on the "type_name" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AppRes

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AppRes

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AppRes

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AppRes

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.AppRes

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.AppRes

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AppRes

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AppRes

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AppRes

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.AppRes

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.AppRes

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.AppRes

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.AppRes

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.AppRes

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.AppRes

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.AppRes

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.AppRes

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.AppRes

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.AppRes

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.AppRes

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.AppRes

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.AppRes

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL