ByStoragePolicy orders the results by storage_policy terms.
(term sql.OrderTerm, terms ...sql.OrderTerm)
| 206 | |
| 207 | // ByStoragePolicy orders the results by storage_policy terms. |
| 208 | func ByStoragePolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { |
| 209 | return func(s *sql.Selector) { |
| 210 | sqlgraph.OrderByNeighborTerms(s, newStoragePolicyStep(), append([]sql.OrderTerm{term}, terms...)...) |
| 211 | } |
| 212 | } |
| 213 | func newStoragePolicyStep() *sqlgraph.Step { |
| 214 | return sqlgraph.NewStep( |
| 215 | sqlgraph.From(Table, FieldID), |
nothing calls this directly
no test coverage detected