Tim Starling escribió:
Yes. We already have some degree of abstraction
in our SQL files in the
form of comments like /*$wgDBTableOptions*/. I'm not sure what the best
way to do it is, but here are my ideas:
1. Extend that comments system
2. Introduce an SQL-like language that can be translated to real SQL
3. Introduce an entirely new data definition language, say XML-based
I believe a better solution is to design a domain-specific language, an
idea not very different from your first one.
This DSL would model the interaction between the application and the DB
as it is now, and would be designed to evolve. That's it.
No, that would be a very bad solution. It would require that everyone
who works on MediaWiki has to learn that domain-specific language, which
would result in less people being able to work on MediaWiki.