diff options
author | showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> | 2008-10-03 10:15:50 +0000 |
---|---|---|
committer | showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> | 2008-10-03 10:15:50 +0000 |
commit | f93d0bb6eb3998f377e2e78a005d5c36bb75e833 (patch) | |
tree | 65316fec755d5b8ed06826e49cfa3671feadf678 /tko/migrations/006_add_table_query_history.py | |
parent | 00c0b023b2b32697d3f815eead036078e4afe55d (diff) |
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: svn://test.kernel.org/autotest/trunk@2234 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/migrations/006_add_table_query_history.py')
0 files changed, 0 insertions, 0 deletions