Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AppDict) predicate.AppDict
- func AppID(v int) predicate.AppDict
- func AppIDEQ(v int) predicate.AppDict
- func AppIDIn(vs ...int) predicate.AppDict
- func AppIDIsNil() predicate.AppDict
- func AppIDNEQ(v int) predicate.AppDict
- func AppIDNotIn(vs ...int) predicate.AppDict
- func AppIDNotNil() predicate.AppDict
- func Code(v string) predicate.AppDict
- func CodeContains(v string) predicate.AppDict
- func CodeContainsFold(v string) predicate.AppDict
- func CodeEQ(v string) predicate.AppDict
- func CodeEqualFold(v string) predicate.AppDict
- func CodeGT(v string) predicate.AppDict
- func CodeGTE(v string) predicate.AppDict
- func CodeHasPrefix(v string) predicate.AppDict
- func CodeHasSuffix(v string) predicate.AppDict
- func CodeIn(vs ...string) predicate.AppDict
- func CodeLT(v string) predicate.AppDict
- func CodeLTE(v string) predicate.AppDict
- func CodeNEQ(v string) predicate.AppDict
- func CodeNotIn(vs ...string) predicate.AppDict
- func Comments(v string) predicate.AppDict
- func CommentsContains(v string) predicate.AppDict
- func CommentsContainsFold(v string) predicate.AppDict
- func CommentsEQ(v string) predicate.AppDict
- func CommentsEqualFold(v string) predicate.AppDict
- func CommentsGT(v string) predicate.AppDict
- func CommentsGTE(v string) predicate.AppDict
- func CommentsHasPrefix(v string) predicate.AppDict
- func CommentsHasSuffix(v string) predicate.AppDict
- func CommentsIn(vs ...string) predicate.AppDict
- func CommentsIsNil() predicate.AppDict
- func CommentsLT(v string) predicate.AppDict
- func CommentsLTE(v string) predicate.AppDict
- func CommentsNEQ(v string) predicate.AppDict
- func CommentsNotIn(vs ...string) predicate.AppDict
- func CommentsNotNil() predicate.AppDict
- func CreatedAt(v time.Time) predicate.AppDict
- func CreatedAtEQ(v time.Time) predicate.AppDict
- func CreatedAtGT(v time.Time) predicate.AppDict
- func CreatedAtGTE(v time.Time) predicate.AppDict
- func CreatedAtIn(vs ...time.Time) predicate.AppDict
- func CreatedAtLT(v time.Time) predicate.AppDict
- func CreatedAtLTE(v time.Time) predicate.AppDict
- func CreatedAtNEQ(v time.Time) predicate.AppDict
- func CreatedAtNotIn(vs ...time.Time) predicate.AppDict
- func CreatedBy(v int) predicate.AppDict
- func CreatedByEQ(v int) predicate.AppDict
- func CreatedByGT(v int) predicate.AppDict
- func CreatedByGTE(v int) predicate.AppDict
- func CreatedByIn(vs ...int) predicate.AppDict
- func CreatedByLT(v int) predicate.AppDict
- func CreatedByLTE(v int) predicate.AppDict
- func CreatedByNEQ(v int) predicate.AppDict
- func CreatedByNotIn(vs ...int) predicate.AppDict
- func HasApp() predicate.AppDict
- func HasAppWith(preds ...predicate.App) predicate.AppDict
- func HasItems() predicate.AppDict
- func HasItemsWith(preds ...predicate.AppDictItem) predicate.AppDict
- func ID(id int) predicate.AppDict
- func IDEQ(id int) predicate.AppDict
- func IDGT(id int) predicate.AppDict
- func IDGTE(id int) predicate.AppDict
- func IDIn(ids ...int) predicate.AppDict
- func IDLT(id int) predicate.AppDict
- func IDLTE(id int) predicate.AppDict
- func IDNEQ(id int) predicate.AppDict
- func IDNotIn(ids ...int) predicate.AppDict
- func Name(v string) predicate.AppDict
- func NameContains(v string) predicate.AppDict
- func NameContainsFold(v string) predicate.AppDict
- func NameEQ(v string) predicate.AppDict
- func NameEqualFold(v string) predicate.AppDict
- func NameGT(v string) predicate.AppDict
- func NameGTE(v string) predicate.AppDict
- func NameHasPrefix(v string) predicate.AppDict
- func NameHasSuffix(v string) predicate.AppDict
- func NameIn(vs ...string) predicate.AppDict
- func NameLT(v string) predicate.AppDict
- func NameLTE(v string) predicate.AppDict
- func NameNEQ(v string) predicate.AppDict
- func NameNotIn(vs ...string) predicate.AppDict
- func Not(p predicate.AppDict) predicate.AppDict
- func Or(predicates ...predicate.AppDict) predicate.AppDict
- func UpdatedAt(v time.Time) predicate.AppDict
- func UpdatedAtEQ(v time.Time) predicate.AppDict
- func UpdatedAtGT(v time.Time) predicate.AppDict
- func UpdatedAtGTE(v time.Time) predicate.AppDict
- func UpdatedAtIn(vs ...time.Time) predicate.AppDict
- func UpdatedAtIsNil() predicate.AppDict
- func UpdatedAtLT(v time.Time) predicate.AppDict
- func UpdatedAtLTE(v time.Time) predicate.AppDict
- func UpdatedAtNEQ(v time.Time) predicate.AppDict
- func UpdatedAtNotIn(vs ...time.Time) predicate.AppDict
- func UpdatedAtNotNil() predicate.AppDict
- func UpdatedBy(v int) predicate.AppDict
- func UpdatedByEQ(v int) predicate.AppDict
- func UpdatedByGT(v int) predicate.AppDict
- func UpdatedByGTE(v int) predicate.AppDict
- func UpdatedByIn(vs ...int) predicate.AppDict
- func UpdatedByIsNil() predicate.AppDict
- func UpdatedByLT(v int) predicate.AppDict
- func UpdatedByLTE(v int) predicate.AppDict
- func UpdatedByNEQ(v int) predicate.AppDict
- func UpdatedByNotIn(vs ...int) predicate.AppDict
- func UpdatedByNotNil() predicate.AppDict
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByComments(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByItemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(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 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 ¶
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"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldAppID, FieldCode, FieldName, FieldComments, }
Columns holds all SQL columns for appdict 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 CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" 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 HasAppWith ¶
HasAppWith applies the HasEdge predicate on the "app" edge with a given conditions (other predicates).
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 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 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.