On Monday, December 10, 2018 at 9:53:08 AM UTC-8, vais wrote: > > Is there any way to format/pretty-print the SQL generated/logged by Sequel > so that it’s easier to read? > > Especially in the process of learning/adopting Sequel and using it to > write a complex query, it would help a lot to be able to look at the > generated SQL and see at a glance what’s going on, instead of trying to > parse “manually” the single-line blob of SQL... >
Nothing in Sequel itself will do this, but there are plenty of other tools you can use for nicely formatting SQL. One ruby library that comes up is niceql: https://github.com/alekseyl/niceql (it integrates with ActiveRecord, but should be usable without) Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
