appdict

package
v0.0.0-...-04b2c92 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the appdict type in the database.
	Label = "app_dict"
	// 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"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// 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"
	// EdgeApp holds the string denoting the app edge name in mutations.
	EdgeApp = "app"
	// EdgeItems holds the string denoting the items edge name in mutations.
	EdgeItems = "items"
	// Table holds the table name of the appdict in the database.
	Table = "app_dict"
	// AppTable is the table that holds the app relation/edge.
	AppTable = "app_dict"
	// 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"
	// ItemsTable is the table that holds the items relation/edge.
	ItemsTable = "app_dict_item"
	// ItemsInverseTable is the table name for the AppDictItem entity.
	// It exists in this package in order to avoid circular dependency with the "appdictitem" package.
	ItemsInverseTable = "app_dict_item"
	// ItemsColumn is the table column denoting the items relation/edge.
	ItemsColumn = "dict_id"
)

Variables

View Source
var (
	Hooks [3]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

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 appdict fields.

Functions

func And

func And(predicates ...predicate.AppDict) predicate.AppDict

And groups predicates with the AND operator between them.

func AppID

func AppID(v int) predicate.AppDict

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

func AppIDEQ

func AppIDEQ(v int) predicate.AppDict

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

func AppIDIn

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

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

func AppIDIsNil

func AppIDIsNil() predicate.AppDict

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

func AppIDNEQ

func AppIDNEQ(v int) predicate.AppDict

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

func AppIDNotIn

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

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

func AppIDNotNil

func AppIDNotNil() predicate.AppDict

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

func Code

func Code(v string) predicate.AppDict

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.AppDict

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.AppDict

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.AppDict

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.AppDict

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.AppDict

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.AppDict

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.AppDict

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.AppDict

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.AppDict

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.AppDict

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.AppDict

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.AppDict

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.AppDict

CodeNotIn applies the NotIn predicate on the "code" field.

func Comments

func Comments(v string) predicate.AppDict

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.AppDict

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.AppDict

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.AppDict

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.AppDict

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.AppDict

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.AppDict

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.AppDict

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.AppDict

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

func CommentsIn(vs ...string) predicate.AppDict

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.AppDict

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.AppDict

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.AppDict

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.AppDict

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

func CommentsNotIn(vs ...string) predicate.AppDict

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.AppDict

CommentsNotNil applies the NotNil predicate on the "comments" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.AppDict

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AppDict

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AppDict

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AppDict

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AppDict

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AppDict

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AppDict

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int) predicate.AppDict

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

func CreatedByEQ

func CreatedByEQ(v int) predicate.AppDict

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

func CreatedByGT

func CreatedByGT(v int) predicate.AppDict

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

func CreatedByGTE

func CreatedByGTE(v int) predicate.AppDict

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

func CreatedByIn

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

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

func CreatedByLT

func CreatedByLT(v int) predicate.AppDict

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

func CreatedByLTE

func CreatedByLTE(v int) predicate.AppDict

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

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.AppDict

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

func CreatedByNotIn

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

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

func HasApp

func HasApp() predicate.AppDict

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

func HasAppWith

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

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

func HasItems

func HasItems() predicate.AppDict

HasItems applies the HasEdge predicate on the "items" edge.

func HasItemsWith

func HasItemsWith(preds ...predicate.AppDictItem) predicate.AppDict

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

func ID

func ID(id int) predicate.AppDict

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.AppDict

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.AppDict

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.AppDict

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.AppDict

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.AppDict

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.AppDict

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.AppDict

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

func NameContains

func NameContains(v string) predicate.AppDict

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

func NameContainsFold

func NameContainsFold(v string) predicate.AppDict

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

func NameEQ

func NameEQ(v string) predicate.AppDict

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

func NameEqualFold

func NameEqualFold(v string) predicate.AppDict

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

func NameGT

func NameGT(v string) predicate.AppDict

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

func NameGTE

func NameGTE(v string) predicate.AppDict

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.AppDict

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.AppDict

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.AppDict

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

func NameLTE

func NameLTE(v string) predicate.AppDict

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

func NameNEQ

func NameNEQ(v string) predicate.AppDict

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

func NameNotIn

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

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.AppDict) predicate.AppDict

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AppDict

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AppDict

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AppDict

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AppDict

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.AppDict

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AppDict

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AppDict

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AppDict

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.AppDict

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

func UpdatedBy

func UpdatedBy(v int) predicate.AppDict

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

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.AppDict

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

func UpdatedByGT

func UpdatedByGT(v int) predicate.AppDict

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

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.AppDict

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.AppDict

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

func UpdatedByLT

func UpdatedByLT(v int) predicate.AppDict

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

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.AppDict

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

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.AppDict

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.AppDict

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 AppDict 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 ByCode

func ByCode(opts ...sql.OrderTermOption) OrderOption

ByCode orders the results by the code 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 ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByItems

func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByItems orders the results by items terms.

func ByItemsCount

func ByItemsCount(opts ...sql.OrderTermOption) OrderOption

ByItemsCount orders the results by items count.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the 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