function DB_common::createSequence in Flickr API 5
Creates a new sequence
The name of a given sequence is determined by passing the string provided in the <var>$seq_name</var> argument through PHP's sprintf() function using the value from the <var>seqname_format</var> option as the sprintf()'s format argument.
<var>seqname_format</var> is set via setOption().
DB_common::nextID()
Parameters
string $seq_name name of the new sequence:
Return value
int DB_OK on success. A DB_Error object on failure.
See also
DB_common::dropSequence(), DB_common::getSequenceName(),
2 methods override DB_common::createSequence()
- DB_mysql::createSequence in phpFlickr/
PEAR/ DB/ mysql.php - Creates a new sequence
- DB_pgsql::createSequence in phpFlickr/
PEAR/ DB/ pgsql.php - Creates a new sequence
File
- phpFlickr/
PEAR/ DB/ common.php, line 1771
Class
- DB_common
- DB_common is the base class from which each database driver class extends
Code
function createSequence($seq_name) {
return $this
->raiseError(DB_ERROR_NOT_CAPABLE);
}