From: Ian Bicking <ianb@co...> - 2005-09-07 15:18:35
Hi Jochen. Questions should really go to the sqlobject-discuss list,
since there's several helpful people there...
Jochen Kupperschmidt wrote:
> Hi Ian,
> I like SQLObject very much, it increases my joy in programming a lot :)
> But I've got a few questions, I failed to anwer on the web:
> 1. Is it possible to set a somewhat global table prefix? I.e. by using a
> class as parent for all my models that inherits from the SQLObject class
> and setting/changing an attribute?
> 2. Is it possible to add a prefix to the names of automatically created
> Many-to-Many tables?
You'd have to do these with a special Style. Maybe someone has an example?
> 3. Is there a way to enforce field order when using createTable()? It
> seems all the fields in my models are created in the reverse order as
> they are defined (which should not be the case as I think). And for
> readability reasons, I don't want to reverse the order in my models
> instead - anyway, field order in models and tables would be different
> and therefore unnecessarily confusing.
In 0.7 field order is preserved.
> I am using version 0.6.1 since I'm no fan of using beta software for
> production systems (although I'm looking forward to v0.7).