Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

PostgresConnectionHandler.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler;
8
9 use eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler;
10
11 class PostgresConnectionHandler extends ConnectionHandler
12 {
25 public function getAutoIncrementValue($table, $column)
26 {
27 return "nextval('" . $this->getSequenceName($table, $column) . "')";
28 }
29
38 public function getSequenceName($table, $column)
39 {
40 return sprintf('%s_%s_seq', $table, $column);
41 }
42
50 public function quoteIdentifier($identifier)
51 {
52 return '"' . $identifier . '"';
53 }
54 }
eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler\PostgresConnectionHandler
Definition: PostgresConnectionHandler.php:12
eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler\PostgresConnectionHandler\getAutoIncrementValue
getAutoIncrementValue($table, $column)
Get auto increment value.
Definition: PostgresConnectionHandler.php:25
eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler\PostgresConnectionHandler\getSequenceName
getSequenceName($table, $column)
Returns the name of the affected sequence.
Definition: PostgresConnectionHandler.php:38
eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler\PostgresConnectionHandler\quoteIdentifier
quoteIdentifier($identifier)
Custom quote identifier method.
Definition: PostgresConnectionHandler.php:50
eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler
Class ConnectionHandler.
Definition: ConnectionHandler.php:22
eZ\Publish\Core\Persistence\Doctrine\ConnectionHandler
Definition: PostgresConnectionHandler.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.