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.
doc_Drupal
2016-10-29 09:35:49
Comments
Leave a Comment

Please login to continue.