Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MutateFunc ¶
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 TimeMixin ¶
type TimeMixin struct { // We embed the `mixin.Schema` to avoid // implementing the rest of the methods. mixin.Schema InterceptorNewQueryFunc func(query ent.Query) (any, error) MutationMutatorFunc func(mutation ent.Mutation) ent.Mutator }
func (TimeMixin) Interceptors ¶
func (d TimeMixin) Interceptors() []ent.Interceptor
Interceptors of the SoftDeleteMixin.
type TraverseFunc ¶
type TraverseFunc struct { InterceptorNewQueryFunc func(query ent.Query) (any, error) //func(ent.Query) (Query, error) Interceptor func(context.Context, Query) error }
Click to show internal directories.
Click to hide internal directories.