Menu

Commit [r2371]  Maximize  Restore  History

DatabaseBackend refactoring: the old db.py file has been split in several files

now placed in the trac/db subfolder.

Also, a new `IDatabaseBackend` interface has been defined,
and this is used for better dispatching from the database connection string
to the appropriate backend.

This greater flexibility would allow to use the pysqlite1 binding
for one environment and the pysqlite2 binding for another, for example.

While the changes were primarily done for cleaning up the current implementation,
this will also make it easier to add new database backends.

cboos 2005-10-18

changed /branches/cboos-dev/db-refactoring/setup.py
added /branches/cboos-dev/db-refactoring/trac/db
copied /branches/cboos-dev/db-refactoring/trac/db.py -> /branches/cboos-dev/db-refactoring/trac/db/postgresql.py
copied /branches/cboos-dev/db-refactoring/trac/db.py -> /branches/cboos-dev/db-refactoring/trac/db/pysqlite.py
renamed /branches/cboos-dev/db-refactoring/trac/db.py -> /branches/cboos-dev/db-refactoring/trac/db/api.py
added /branches/cboos-dev/db-refactoring/trac/db/__init__.py
changed /branches/cboos-dev/db-refactoring/trac/db_default.py
changed /branches/cboos-dev/db-refactoring/trac/env.py
/branches/cboos-dev/db-refactoring/setup.py Diff Switch to side-by-side view
Loading...
/branches/cboos-dev/db-refactoring/trac/db/__init__.py Diff Switch to side-by-side view
Loading...
/branches/cboos-dev/db-refactoring/trac/db_default.py Diff Switch to side-by-side view
Loading...
/branches/cboos-dev/db-refactoring/trac/env.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB