dbTalk Databases Forums  

Multiple "query" in a singular transaction...

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Multiple "query" in a singular transaction... in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Minollo
 
Posts: n/a

Default Multiple "query" in a singular transaction... - 11-09-2006 , 01:38 AM






Hi,
it's possible for Berkeley DB have multiple query (select insert
upadate.. in different table/database) in a singular transaction?

I want perform a transaction with 4 "query" in different database and
commit the whole transaction, and after fetch each 4 result ...

Reply With Quote
  #2  
Old   
Philip Guenther
 
Posts: n/a

Default Re: Multiple "query" in a singular transaction... - 11-10-2006 , 04:57 PM






On Nov 9, 12:38 am, Minollo <mino... (AT) tin (DOT) it> wrote:
Quote:
it's possible for Berkeley DB have multiple query (select insert
upadate.. in different table/database) in a singular transaction?
Yes. Simply pass the DB_TXN handle created using DB_ENV->txn_begin()
to
all the operations you want included in the transaction, then call
DB_TXN->commit()
or DB_TXN->abort(), as appropriate.


Philip Guenther



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.