DatabasesRFC #0159: Deadlock handlingat 2008-04-12 in Databases, RFCs by friebeScope of Change A new class rdbms.SQLDeadlockException will be introduced. The rdbms drivers will handle dead lock situations specially and throw this new exception instead of a generic SQLStatementFailedException. Rationale Deadlocks are a very special case in database systems and often need special programmatic handling. Read the full RFC here Tracking SQL statements sentat 2007-07-18 in Unittests, Databases by friebeThe XP framework's RDBMS access API offers logging of SQL queries sent to the server by adding observers to database connections: <?php Now SQL statements and other connection events will be logged to the console. For most purposes, this will suffice. If you need to store all SQL statements sent to the server in an array, for example to assert on them in unittest environments, here's how: (more) Database logging beautifiedat 2007-07-05 in Databases by friebeOn a short note: Database logging output has been made more condense. Old output: [23:05:34 4248 debug] rdbms.DBEvent(query) {'select max(account_id) as `value` from test.account'} New output:[23:06:09 4232 debug] rdbms.DBEvent(query) {"select max(account_id) as `value` from test.account"} I especially hated the ugly __set_state thing being generated by var_export()RFC #0131: Query class and operationat 2007-07-03 in Databases, RFCs by friebeScope of Change Extends the rdbms critertia api
|
|