History log of /external/autotest/database/common.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0e73c855576b97891ec38b6512bf040f3a1e1e40 03-Oct-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Add a generic database wrapper, supporting different database backends, to be used by migrate, scheduler, parser (eventually), and maybe others. This will consolidate the multiple database wrappers we have throughout the code and allow us to swap in SQLite for MySQL for unit testing purposes.

-add database/ directory for database libraries. migrate.py will move here soon.
-add database_connection.py under server_common, a basic database wrapper supporting both MySQL and SQLite. PostgreSQL should be an easy future addition (any library supporting Python DB-API should be trivial to add). DatabaseConnection also supports graceful handling of dropped connections.
-add unittest for DatabaseConnection
-change migrate.py to use common DatabaseConnection. Scheduler will be changed to use it in a coming CL and in the future hopefully the TKO parser will be able to use it as well.
-change migrate_unittest.py to use SQLite.

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@2234 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/database/common.py