public function DatabaseConnection::makeSequenceName
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.
Parameters
$table: The table name to use for the sequence.
$field: The field name to use for the sequence.
Return value
A table prefix-parsed string for the sequence name.
2 calls to DatabaseConnection::makeSequenceName()
- DatabaseConnection_pgsql::nextId in drupal-7.x/
includes/ database/ pgsql/ database.inc - Retrive a the next id in a sequence.
- DatabaseConnection_pgsql::nextId in drupal-7.x/
includes/ database/ pgsql/ database.inc - Retrive a the next id in a sequence.
Archivo
- drupal-7.x/
includes/ database/ database.inc, line 568 - Core systems for the database layer.
Class
- DatabaseConnection
- Base Database API class.
Código
public function makeSequenceName($table, $field) {
return $this->prefixTables('{' . $table . '}_' . $field . '_seq');
}