#126 closed enhancement (fixed)
Database Independence [merge]
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Specifically I would love to run trac against PostgreSQL, but if its architecture could be designed such that any DB-API compliant database can be plugged into it, that'd be great.
My reasons are this desire is interoperability. For example, I plan on coding up a subversion hook so that if someone writes 'closes #4' into the commit message, it'll close the issue. Also, the ability to generate dynamic reports in say, Excel, by connecting to the database via ODBC is desired by The Powers That Be.
This may or may not be possible w/ SQLite, but I'm familiar and confidant about PostgreSQL, so :)
Attachments (1)
Change History (36)
comment:1 by , 21 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Summary: | Database Independance → Database Independance [merge] |
comment:2 by , 21 years ago
Milestone: | → 0.8 |
---|
comment:3 by , 20 years ago
Milestone: | 0.8 → 1.0 |
---|
comment:4 by , 20 years ago
rocky you say you have a patch that would enable this. Could you attach it to this ticket?
comment:5 by , 20 years ago
Owner: | changed from | to
---|---|
Priority: | normal → highest |
Status: | assigned → new |
== ==
comment:7 by , 20 years ago
Summary: | Database Independance [merge] → Database Independence [merge] |
---|
A more recent PostgreSQL effort is here.
comment:8 by , 20 years ago
Status: | new → assigned |
---|
comment:9 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:11 by , 20 years ago
Component: | general → trac-admin |
---|---|
Milestone: | 1.0 → 0.5 |
Priority: | highest → normal |
Resolution: | → worksforme |
Severity: | enhancement → critical |
Status: | reopened → closed |
comment:12 by , 20 years ago
Component: | trac-admin → general |
---|---|
Milestone: | 0.5 → 0.9 |
Priority: | normal → high |
Resolution: | worksforme |
Severity: | critical → enhancement |
Status: | closed → reopened |
Thank you very much.
comment:13 by , 20 years ago
Component: | general → project |
---|---|
Resolution: | → fixed |
Severity: | enhancement → major |
Status: | reopened → closed |
comment:14 by , 20 years ago
Component: | project → general |
---|---|
Resolution: | fixed |
Severity: | major → enhancement |
Status: | closed → reopened |
Okay, you've had your fun. Stop this.
comment:15 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:16 by , 20 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:18 by , 20 years ago
To change the database backend to any standalone database server would give trac more concurrent transaction ability, since the source code repository backend(svn) can handle very large scale project(s). So, I think this ticket is very important for trac to be applied in the real world.
comment:19 by , 20 years ago
Severity: | enhancement → critical |
---|
Trac would not be practical unless it works with a standalone database backend.
comment:20 by , 20 years ago
Severity: | critical → enhancement |
---|
For you, perhaps. But for the vast majority of Trac users, SQLite is fine for the job: it's robust and fast, and a no-brainer to install, have you tried it? I would be curious to know with what kind of load it starts to moan… For example, I tried it with a copy of the Subversion repository (> 12000 commits, admittedly a big repository) without any problem.
I'm not saying anything against having the choice of DatabaseBackend. I only think it's not fair to dismiss Trac's rightful IMHO choice of SQLite as its first and default DB backend.
comment:21 by , 20 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
comment:22 by , 20 years ago
Looking at the history of anonymous interventions on this ticket, I guess we have a TicketButcher at work here, who is practising DisagreeByDeleting…
(btw, let's drop a quick InterWiki test here: Wiki:DisagreeByDeleting)
comment:23 by , 20 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
… and then, getting distracted by the InterWiki idea, I forgot to reopen that ticket…
comment:24 by , 20 years ago
Doesn't trac provide a way to lock down status changes (resolve, close, reassign) to logged-in users via some sort of ACL?
comment:25 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:26 by , 19 years ago
Seems as though if PostgreSQL is implemented through a PyDB API module than MySQL support should also be trivial, right?
comment:27 by , 19 years ago
Not really, MySQL is the oddball when it comes to database servers. MySQL's nonstandard behavior and odd quirks will hurt you when programming abstraction layers.
comment:28 by , 19 years ago
I also forgot to mention, I believe, as someone suggested DatabaseBackend , ADOdb is something to look into. For the simple fact that the current 9.0 will use a library that hasn't been updated in 2 years PostgresqlPatch
comment:31 by , 19 years ago
Milestone: | 0.9 → 1.0 |
---|
Well,
the independence from a database as backend (or even a filesystem-based/Subversion based backend) would be agreat enhancement inho. Remember that many admins would love to see Trac and subversion running in THEIR enviromnent (guidlines from above…) w/o opening other ports/installing custom databases and so on. Why isn't there a plan for general abstraction layer from all that prequisites? It is really hard for me as unexperienced admin to get Trac and Subversion running in my Environment (IIS 5.1/MS SQL). I have no clue how to get everything running…
comment:32 by , 19 years ago
Milestone: | 1.0 → 0.9 |
---|
Please don't target closed tickets to future milestones.
If there are concrete suggestions for some of the topics mentioned above please file them as separate ticket, but if you just need support with the installation use the MailingList or IrcChannel to ask for help.
by , 19 years ago
Attachment: | trac_mysql_r2625.patch added |
---|
patch against r2625 to enable experimentalMySQL support
comment:33 by , 19 years ago
I've added a patch for enabling MySQL support. At the moment it only supports connection strings in the format of: mysql://user:password@host:port/database mysql://user:password@host/database
I did have to make one database schema change because MySQL doesn't like to AUTO_INCREMENT a TEXT column, so I changed it to INT.
Beware: I still haven't tested to see if it breaks SQLite and PostgreSQL support!
comment:34 by , 19 years ago
Very nice! However, could you open a new ticket as this one is already marked as fixed
and about adding PostgreSQL support?
comment:35 by , 19 years ago
Should I just reopen #986, which was marked duplicate of this, but does mention MySQL?
I've provided a diff that removes all sqlite'isms and seems to enable Trac to run PostgreSQL.