public Connection::makeSequenceName($table, $field)
Creates the appropriate sequence name for a given table and serial field.
This information is exposed to all database drivers, although it is only useful on some of them. This method is table prefix-aware.
string $table: The table name to use for the sequence.
string $field: The field name to use for the sequence.
string A table prefix-parsed string for the sequence name.
public function makeSequenceName($table, $field) { return $this->prefixTables('{' . $table . '}_' . $field . '_seq'); }
© 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!Database!Connection.php/function/Connection::makeSequenceName/8.1.x