- Diviner Queries
- All Atoms
- Search
- Diviner Search
Diviner All Atoms
All Atoms
All Atoms
- Method
- Method
- A query class which uses offset/limit paging. Provides logic and accessors for offsets and limits.
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- A query class which uses cursor-based paging. This paging is much more performant than offset-based paging in the presence of policy filtering.
- Class
- Constrain the query to include only results in valid Spaces.
- Method
- Method
- Constrain the query to return results from only specific Spaces.
- Method
- Validate edge logic constraints for the query.
- Method
- Select certain edge logic constraint values.
- Method
- Method
- Method
- Method
- Convenience method for specifying edge logic constraints with a list of PHIDs.
- Method
- Method
- Method
- Method
- Method
- Construct a JOIN clause appropriate for applying ApplicationSearch constraints.
- Method
- Construct a GROUP BY clause appropriate for ApplicationSearch constraints.
- Method
- Determine if the JOINs built by ApplicationSearch might cause each primary object to return multiple result rows. Generally, this means the query needs an extra GROUP BY clause.
- Method
- Get the name of the query's primary object PHID column, for constructing JOIN clauses. Normally (and by default) this is just `"phid"`, but it may be something more exotic.
- Method
- Constrain the query with an ApplicationSearch index, requiring values exist in a given range.
- Method
- Constrain the query with an ApplicationSearch index, requiring field values contain at least one of the values in a set.
- Method
- Method
- Method
- Method
- Method
- Get the effective order vector.
- Method
- Set a low-level column ordering.
- Method
- Method
- Get builtin orders for this class.
- Method
- Set a grouping order to apply before primary result ordering.
- Method
- Select a result ordering.
- Method
- Simplifies the task of constructing a paging clause across multiple columns. In the general case, this looks like:
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Return the alias this query uses to identify the primary table.
- Method
- Method
- Method
- Method
- Get the viewer for making cursor paging queries.
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- A @{class:PhabricatorQuery} which filters results according to visibility policies for the querying user. Broadly, this class allows you to implement a query that returns only objects the user is allowed to see.
- Class
- Determine if the viewer has permission to use this query's application. For queries which aren't part of an application, this method always returns true.
- Method
- If this query belongs to an application, return the application class name here. This will prevent the query from returning results if the viewer can not access the application.
- Method
- Allows a subclass to disable policy filtering. This method is dangerous. It should be used only if the query loads data which has already been filtered (for example, because it wraps some other query which uses normal policy filtering).
- Method
- Hook for applying final adjustments before results are returned. This is used by @{class:PhabricatorCursorPagedPolicyAwareQuery} to reverse results that are queried during reverse paging.
- Method
- Hook for removing filtered results from alternate result sets. This hook will be called with any objects which were returned by the query but filtered for policy reasons. The query should remove them from any cached or partial result sets.
- Method
- Hook for performing additional non-policy loading or filtering after an object has satisfied all policy checks. Generally, this means loading and attaching related data.
- Method
- Hook for applying a page filter prior to the privacy filter. This allows you to drop some items from the result set without creating problems with pagination or cursor updates. You can also load and attach data which is required to perform policy filtering.
- Method
- Update internal state so that the next call to @{method:loadPage} will return new results. Generally, you should adjust a cursor position based on the provided result page.
- Method
- Load a raw page of results. Generally, implementations should load objects from the database. They should attempt to return the number of results hinted by @{method:getRawResultLimit}.
- Method
Copyright © LEAD Solutions B.V.