Ticket #1813 (closed task: migrated)
Refactor database configuration
| Reported by: | Chris Arndt | Owned by: | chrisz |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.x bugfix |
| Component: | TurboGears | Version: | 1.1 HEAD |
| Severity: | normal | Keywords: | migrate |
| Cc: |
Description
- Replace backslashes (windows paths) in current_dir_uri (in config.py)
- New function "get_dburi" or "get_db_config" (in database.py) that
- Chooses the correct config setting to use (sqlobject.* vs sqlalchemy.*)
- Converts : into | for SQLObject
- Converts | into : for SQLAlchemy
- Handles 'notrans_' (but see "open questions" below)
- Use 'get_dburi' in
- Test multiple dburis for SQLAlchemy and write unit tests for this feature. Possibly change the way multiple database connections are handled completely, since current support does not support different ORMs.
- Open questions:
- Where to handle "no_trans" best?
- Support "notrans_" for SQLAlchemy too?
- Continue to support dburis of the form <packagename>.dburi? If yes, how to distinguish between SQLObject and SQLAlchemy?
- What should get_dburi return? A string or a dict?
Change History
comment:4 Changed 4 years ago by Chris Arndt
- Status changed from new to assigned
- Owner changed from anonymous to Chris Arndt
comment:5 Changed 4 years ago by Chris Arndt
- Milestone changed from 1.1 to 1.1.x bugfix
Moving to 1.1.x bugfix release in preparation for 1.1rc1 release.
comment:6 Changed 2 years ago by Chris Arndt
- Owner changed from Chris Arndt to chrisz
- Status changed from assigned to new
- Keywords migrate added
I think this ticket should be migrated to the new tracker. All the improvements it suggests are still mot implemented and desireable.
Note: See
TracTickets for help on using
tickets.
Some comments: