I posted a ticket on lighthouse, but dkubb wanted me to get some
feedback from the list first:

http://datamapper.lighthouseapp.com/projects/20609/tickets/697-planning-pretend-option-to-show-queries-for-migrations

Essentially, I won't repeat everything here, but the current thought
is to override the DO subclasses with a method that doesn't execute
queries, but instead just shows the commands it would execute.  Says
dkubb:

"I would suggest also overriding each of the three DO subclasses,
since they tend to generate slightly different DDL statements
(although we try to stick as close to the ANSI spec as possible)."

Another gem that does the pretend option well is the templater gem
with something like:

template.invoke! unless @options[:pretend]

Comments, thoughts?

--
Charles Brian Quinn
self-promotion: www.seebq.com
highgroove studios: www.highgroove.com
main: 404.394.4935  fax: 678.826.0969

Scout - Web Monitoring and Reporting Software
www.scoutapp.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to