You are here

function DB_common::nextId in Flickr API 5

Returns the next free id in a sequence

DB_common::getSequenceName()

Parameters

string $seq_name name of the sequence:

boolean $ondemand when true, the seqence is automatically: created if it does not exist

Return value

int the next id number in the sequence. A DB_Error object on failure.

See also

DB_common::createSequence(), DB_common::dropSequence(),

2 methods override DB_common::nextId()
DB_mysql::nextId in phpFlickr/PEAR/DB/mysql.php
Returns the next free id in a sequence
DB_pgsql::nextId in phpFlickr/PEAR/DB/pgsql.php
Returns the next free id in a sequence

File

phpFlickr/PEAR/DB/common.php, line 1746

Class

DB_common
DB_common is the base class from which each database driver class extends

Code

function nextId($seq_name, $ondemand = true) {
  return $this
    ->raiseError(DB_ERROR_NOT_CAPABLE);
}