On Wednesday, March 30, 2016 at 6:58:30 PM UTC-5, Jeremy Evans wrote: > > On Wednesday, March 30, 2016 at 3:14:24 PM UTC-7, Mike Pastore wrote: >> >> Would you be open to adding a `:like` option to >> Sequel::Dataset#create_table? This copies the schema of the source table, >> including any indexes, but not the data. It appears to be supported in both >> PostgreSQL and MySQL. >> > > Do other databases that Sequel supports also support CREATE TABLE LIKE? > If not, is there a significant advantage to: > > create_table(:foo, :like=>:bar) > > over > > run "CREATE TABLE foo LIKE bar" >
None that I can see. It's just sugar to me. :-) I'll let others speak to hard use cases. Thank you! Mike -- 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.
