openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 5eac309c02c45494a173b1a6276aaa502e06140c
parent c5db9ea5c8068beadd4104e4ec25f341795c8abe
Author: dankert <devnull@localhost>
Date:   Wed, 14 Oct 2009 01:13:05 +0200

Transaktionen mit SQLite ermöglichen.

Diffstat:
db/sqlite.class.php | 27+++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)

diff --git a/db/sqlite.class.php b/db/sqlite.class.php @@ -85,6 +85,33 @@ class DB_sqlite return $result; } + + /** + * Startet eine Transaktion. + */ + function start() + { + sqlite_query( $this->connection,'BEGIN TRANSACTION;'); + } + + + /** + * Beendet eine Transaktion. + */ + function commit() + { + sqlite_query( $this->connection,'COMMIT;'); + } + + + /** + * Bricht eine Transaktion ab. + */ + function rollback() + { + sqlite_query( $this->connection,'ROLLBACK;'); + } + function fetchRow( $result, $rownum )