dbTalk Databases Forums  

transactions

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss transactions in the mailing.database.mysql-plusplus forum.



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

Default transactions - 12-20-2006 , 08:00 AM






------=_Part_25031_24503557.1166623177136
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hello everybody

does the API provide transactions? i did not found any transaction class.

thank you

------=_Part_25031_24503557.1166623177136--

Reply With Quote
  #2  
Old   
Angelo Dipierro
 
Posts: n/a

Default Re: transactions - 12-20-2006 , 08:05 AM






christian hofmeister wrote:
Quote:
hello everybody

does the API provide transactions? i did not found any transaction class.

thank you

Just use the SQL "begin work", "commit" and "rollback" within a Query object.

--
Angelo Dipierro - angelo (AT) omniacom (DOT) it

"I love deadlines. I especially love the swooshing sounds
they make as they fly by." [Douglas Adams]


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
christian hofmeister
 
Posts: n/a

Default Re: transactions - 12-20-2006 , 08:39 AM



------=_Part_25783_27726383.1166625520279
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 12/20/06, Angelo Dipierro <angelo.dipierro (AT) omniacom (DOT) it> wrote:
Quote:

Just use the SQL "begin work", "commit" and "rollback" within a Query
object.

thank you, i will do it this way.

------=_Part_25783_27726383.1166625520279--


Reply With Quote
  #4  
Old   
Jim Wallace
 
Posts: n/a

Default RE: transactions - 12-20-2006 , 09:46 AM



You can also use the Transaction class, which is nice since it rolls
back on destruction, so you don't have to worry about doing it yourself
in every error condition.

Transaction trans(*m_conn);
...
trans.commit();


-----Original Message-----
From: christian hofmeister [mailto:christian.hofmeister (AT) gmail (DOT) com]=20
Sent: Wednesday, December 20, 2006 9:00 AM
To: plusplus (AT) lists (DOT) mysql.com
Subject: transactions

hello everybody

does the API provide transactions? i did not found any transaction
class.

thank you



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #5  
Old   
Warren Young
 
Posts: n/a

Default Re: transactions - 12-20-2006 , 12:25 PM



christian hofmeister wrote:
Quote:
i did not found any transaction class.
You must not have put much effort into your search. See section 3.10 in
the tutorial section of the user manual:

http://tangentsoft.net/mysqlpp/doc/u.../tutorial.html

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #6  
Old   
Warren Young
 
Posts: n/a

Default Re: transactions - 12-20-2006 , 12:43 PM



Warren Young wrote:
Quote:
christian hofmeister wrote:

i did not found any transaction class.

You must not have put much effort into your search. See section 3.10 in
the tutorial section of the user manual:

http://tangentsoft.net/mysqlpp/doc/u.../tutorial.html
Grr....I see that I had an old version of the user manual up on the web
site. Also, that URL is wrong:

http://tangentsoft.net/mysql++/doc/u.../tutorial.html



--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #7  
Old   
Angelo Dipierro
 
Posts: n/a

Default Re: transactions - 12-21-2006 , 02:39 AM



Warren Young wrote:
Quote:
You must not have put much effort into your search. See section 3.10 in
the tutorial section of the user manual:

http://tangentsoft.net/mysqlpp/doc/u.../tutorial.html

Me neither it seems :-)
Those transaction objects will simplify my code, nice!

A.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #8  
Old   
christian hofmeister
 
Posts: n/a

Default Re: transactions - 12-23-2006 , 06:14 AM



------=_Part_16900_20408789.1166876018786
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 12/20/06, Warren Young <mysqlpp (AT) etr-usa (DOT) com> wrote:
Quote:
Warren Young wrote:
christian hofmeister wrote:

i did not found any transaction class.

You must not have put much effort into your search. See section 3.10 in
the tutorial section of the user manual:

http://tangentsoft.net/mysqlpp/doc/u.../tutorial.html

Grr....I see that I had an old version of the user manual up on the web
site. Also, that URL is wrong:

http://tangentsoft.net/mysql++/doc/u.../tutorial.html

You are right, i am sorry. Thank you for the link. That is exactly what I
was looking for. I promise to use the search functions next time.

------=_Part_16900_20408789.1166876018786--


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.