# File bdb.rb, line 1865
def  begin(flags = 0, db, ...) 
yield txn, db, ...
end
#same than <em> begin</em>
def  txn_begin(flags = 0, db, ...)
end

#Commit the transaction. This will finish the transaction.
#The <em>flags</em> can have the value 
#
#<em>BDB::TXN_SYNC</em> Synchronously flush the log. This means the
#transaction will exhibit all of the ACID (atomicity, consistency
#and isolation and durability) properties. This is the default value.
#
#<em>BDB::TXN_NOSYNC</em> Do not synchronously flush the log. This
#means the transaction will exhibit the ACI (atomicity, consistency
#and isolation) properties, but not D (durability), i.e., database
#integrity will be maintained but it is possible that this
#transaction may be undone during recovery instead of being redone.
#
#This behavior may be set for an entire Berkeley DB environment as
#part of the open interface.
#
def  commit(flags = 0)
end
#same than <em> commit</em>
def  close(flags = 0)
end
#same than <em> commit</em>
def  txn_commit(flags = 0)
end
#same than <em> commit</em>
def  txn_close(flags = 0)
end

#only with BDB::VERSION_MAJOR == 3 && BDB::VERSION_MINOR >= 3
#
#Discard a prepared but not resolved transaction handle, must be called
#only within BDB::Env#recover
#
def  discard
end
#same than <em> discard</em>
def  txn_discard
end

#only with BDB::VERSION_MAJOR == 4 && BDB::VERSION_MINOR >= 1
#
#remove the database specified by <em>file</em> and <em>database</em>. If no
#<em>database</em> is <em>nil</em>, the underlying file represented by 
#<em>file</em> is removed, incidentally removing all databases
#that it contained. 
#
#The <em>flags</em> value must be set to 0 or <em>BDB::AUTO_COMMIT</em>
#
def  dbremove(file, database = nil, flags = 0)
end

#only with BDB::VERSION_MAJOR == 4 && BDB::VERSION_MINOR >= 1
#
#rename the database specified by <em>file</em> and <em>database</em> to
#<em>newname</em>. If <em>database</em> is <em>nil</em>, the underlying file
#represented by <em>file</em> is renamed, incidentally renaming all databases
#that it contained. 
#
#The <em>flags</em> value must be set to 0 or <em>BDB::AUTO_COMMIT</em>
#
def  dbrename(file, database, newname, flags = 0)
end

#The txn_id function returns the unique transaction id associated
#with the specified transaction. Locking calls made on behalf of
#this transaction should use the value returned from txn_id as the
#locker parameter to the lock_get or lock_vec calls.
#
def  id()
end
#same than <em> id</em>
def  txn_id()
end

#Only with DB >= 4.1
#
#open the database in the current transaction. type must be one of
#the constant <em>BDB::BTREE</em>, <em>BDB::HASH</em>, <em>BDB::RECNO</em>, 
#<em>BDB::QUEUE</em>. See <em>open</em> for other
#arguments
#
def  open_db(type, name = nil, subname = nil, flags = 0, mode = 0)
end

#The txn_prepare function initiates the beginning of a two-phase commit.
#
#In a distributed transaction environment, Berkeley DB can be used
#as a local transaction manager. In this case, the distributed
#transaction manager must send prepare messages to each local
#manager. The local manager must then issue a txn_prepare and await its
#successful return before responding to the distributed transaction
#manager. Only after the distributed transaction manager receives
#successful responses from all of its prepare messages should it issue
#any commit messages.
#
def  prepare()
end
#same than <em> prepare</em>
def  txn_prepare()
end
#same than <em> prepare</em>
def  txn_prepare(id)    # version 3.3.11
end
end