On Wednesday 22 February 2006 10:13, Oleg Broytmann wrote: > On Wed, Feb 22, 2006 at 10:04:47AM +0100, David Faure wrote: > > There are 1000 things that one might want to do with ALTER TABLE... > > SQLObject is designed (at least that is an intent) to avoid direct > manipulations with SQL.
Yes, but sqlmeta.createSQL is an exception to that intent. It allows to customize the tables being created, for cases which SQLObject wasn't prepared for. SQLObject can't possibly duplicate all options offered by MySQL, I don't think this would make sense. In any case createSQL exists already. I'm only suggesting to make it more convenient to use, by making it possible to use %s in it so that it can be set once and for all, e.g. in a sqlobject-derived base class. > These 1000 things, if they are portable between > different SQL backends, should be implemented as SQLObject statements. An > if they are not portable they should be implemented in the connection > classes. Well; Björn's suggestion will do for my case, but I can't think of a reason why %s support in createSQL would be a bad thing to have, especially now that it's implemented and documented... -- David Faure -- [EMAIL PROTECTED], [EMAIL PROTECTED] KDE/KOffice developer, Qt consultancy projects Klarälvdalens Datakonsult AB, Platform-independent software solutions ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ sqlobject-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
