Thanks, this approach is very good, On Dec 9, 2:12 am, Christian MICHON <[email protected]> wrote: > On Fri, Dec 9, 2011 at 10:00 AM, coolesting <[email protected]> wrote: > > DB = Sequel.connect('sqlite://db/data.db') > > > require "sequel/extensions/schema_dumper" > > sd = Sequel::Database.new > > puts sd.dump_table_schema(:books) > > > I am sure that db connect is fire, because it can reads the database by > > other method, such as , DB.tables, DB.schema > > And I am sure that sd.tables will give an error... Why don't you run > schema dumper on DB itself ? > > DB = Sequel.connect('sqlite://db/data.db') > Sequel.extension :schema_dumper # this is the preferred way rather > than direct require... > puts DB.dump_table_schema(:books) > > -- > Christian
-- You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en.
