PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Transaction Emulation for MyISAM
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Transaction Emulation for MyISAM

Réponse
 
LinkBack Outils de la discussion
Vieux 10/02/2008, 20h31   #1
jimbo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Transaction Emulation for MyISAM

Hi,

I've written a pseudo-transaction library to provide _some_ level of
atomisation and rollback when using MyISAM. I find it very useful and
I'm posting here to see if anyone else would.

Motivation: The key motivation was for testing - run an entire web
request with all the DB work that goes on and then after you've
finished output to the client roll everything back to where it was at
the beginning.

Caveat: It's not really meant for a production environment - it's not
meant to provide any level of transactional integrity since, if your
process or db connection dies so to does any hope of being able to
rollback.

It is quite useful to rollback if the database throws an error back at
one of your updates/inserts though...

It's about 300 lines of PHP... it uses about 2 lines of code to hook
into your existing DB Library and leverages temporary tables in the
database to effectively back-up the data you're changing.

I'm very happy to post the code somewhere and open source it - if
anyone would like it!?? :-)

There's more about it here:
http://www.icommunicate.co.uk/articl...ansactions_20/

J.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h49.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12252 seconds with 9 queries