int db::Sequence::create ( Database db,
const NameChar *  name 
)

Create and open a new sequence generator in the database db named name.

Parameters:
db Database in which to create the new sequence.
name Name of the sequence generator.
Returns:
Note:
After the sequence is created, it will be opened automatically.

Do not call this function while a transaction is active. If necessary, call Database::tx_commit or Database::tx_abort to finish the current transaction. This function is not atomic.

See also:
Database::create_sequence


Copyright © 2005-2008 ITTIA®. All rights reserved.