mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
ent: export all generated query operations (#4001)
This commit is contained in:
14
ent.go
14
ent.go
@@ -476,6 +476,20 @@ const (
|
||||
// Is reports whether o is match the given operation.
|
||||
func (i Op) Is(o Op) bool { return i&o != 0 }
|
||||
|
||||
// List of query operations used by the codegen.
|
||||
const (
|
||||
OpQueryFirst = "First"
|
||||
OpQueryFirstID = "FirstID"
|
||||
OpQueryOnly = "Only"
|
||||
OpQueryOnlyID = "OnlyID"
|
||||
OpQueryAll = "All"
|
||||
OpQueryIDs = "IDs"
|
||||
OpQueryCount = "Count"
|
||||
OpQueryExist = "Exist"
|
||||
OpQueryGroupBy = "GroupBy"
|
||||
OpQuerySelect = "Select"
|
||||
)
|
||||
|
||||
type (
|
||||
// QueryContext contains additional information about
|
||||
// the context in which the query is executed.
|
||||
|
||||
Reference in New Issue
Block a user