Documentation ¶
Index ¶
- type BrandFunc
- type CategoryFunc
- type CommentFunc
- type Func
- type PropertyFunc
- type PropertyValueFunc
- type Query
- type SkuFunc
- type SpuFunc
- type TraverseBrand
- type TraverseCategory
- type TraverseComment
- type TraverseFunc
- type TraverseProperty
- type TraversePropertyValue
- type TraverseSku
- type TraverseSpu
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrandFunc ¶
The BrandFunc type is an adapter to allow the use of ordinary function as a Querier.
type CategoryFunc ¶
The CategoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type CommentFunc ¶
The CommentFunc type is an adapter to allow the use of ordinary function as a Querier.
type Func ¶
The Func type is an adapter that allows ordinary functions to be used as interceptors. Unlike traversal functions, interceptors are skipped during graph traversals. Note that the implementation of Func is different from the one defined in entgo.io/ent.InterceptFunc.
type PropertyFunc ¶
The PropertyFunc type is an adapter to allow the use of ordinary function as a Querier.
type PropertyValueFunc ¶
The PropertyValueFunc type is an adapter to allow the use of ordinary function as a Querier.
type Query ¶
type Query interface { // Type returns the string representation of the query type. Type() string // Limit the number of records to be returned by this query. Limit(int) // Offset to start from. Offset(int) // Unique configures the query builder to filter duplicate records. Unique(bool) // Order specifies how the records should be ordered. Order(...func(*sql.Selector)) // WhereP appends storage-level predicates to the query builder. Using this method, users // can use type-assertion to append predicates that do not depend on any generated package. WhereP(...func(*sql.Selector)) }
The Query interface represents an operation that queries a graph. By using this interface, users can write generic code that manipulates query builders of different types.
type TraverseBrand ¶
type TraverseBrand func(context.Context, *ent.BrandQuery) error
The TraverseBrand type is an adapter to allow the use of ordinary function as Traverser.
type TraverseCategory ¶
type TraverseCategory func(context.Context, *ent.CategoryQuery) error
The TraverseCategory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseComment ¶
type TraverseComment func(context.Context, *ent.CommentQuery) error
The TraverseComment type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFunc ¶
The TraverseFunc type is an adapter to allow the use of ordinary function as Traverser. If f is a function with the appropriate signature, TraverseFunc(f) is a Traverser that calls f.
type TraverseProperty ¶
type TraverseProperty func(context.Context, *ent.PropertyQuery) error
The TraverseProperty type is an adapter to allow the use of ordinary function as Traverser.
type TraversePropertyValue ¶
type TraversePropertyValue func(context.Context, *ent.PropertyValueQuery) error
The TraversePropertyValue type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSku ¶
The TraverseSku type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSpu ¶
The TraverseSpu type is an adapter to allow the use of ordinary function as Traverser.