class QueryFactory

PostgreSQL specific entity query implementation.

To add a new query implementation extending the default SQL one, add a service definition like pgsql.entity.query.sql and a factory class like this. The system will automatically find the relevant Query, QueryAggregate, Condition, ConditionAggregate, Tables classes in this namespace, in the namespace of the parent class and so on. So after creating an empty query factory class like this, it is possible to just drop in a class extending the base class in this namespace and it will be used automatically but it is optional: if a class is not extended the relevant default is used.

Hierarchy

See also

\Drupal\Core\Entity\Query\QueryBase::getNamespaces()

\Drupal\Core\Entity\Query\QueryBase::getClass()

File

core/lib/Drupal/Core/Entity/Query/Sql/pgsql/QueryFactory.php, line 22

Namespace

Drupal\Core\Entity\Query\Sql\pgsql

Members

Name Modifiers Type Description
QueryFactory::$connection protected property The database connection to use.
QueryFactory::$namespaces protected property The namespace of this class, the parent class etc.
QueryFactory::get public function Instantiates an entity query for a given entity type. Overrides QueryFactoryInterface::get
QueryFactory::getAggregate public function Instantiates an aggregation query object for a given entity type. Overrides QueryFactoryInterface::getAggregate
QueryFactory::__construct public function Constructs a QueryFactory object.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!Sql!pgsql!QueryFactory.php/class/QueryFactory/8.1.x