exe/fox in fixture_fox-0.2.8 vs exe/fox in fixture_fox-0.2.9

- old
+ new

@@ -42,10 +42,15 @@ also be used together with the --dump option for some of the dump types -x,exec Execute the generated SQL instead of printing it on standard output + +e,exclude=SCHEMA, + Exclude the given schemas. The schemas are passed on to PgGraph to + exclude schemas that doesn't comply with PgGraph's naming conventions, + typically FDW schemas. This option can be repeated + -t,time Emit timings for sub-processes --dump=KIND:tokens,meta,type,ast,idr,state,anchors,ids Dump the given data on standard output. KIND can be one of 'tokens', @@ -65,11 +70,11 @@ timing = opts.time? timer = Timer:: Timer.new opts.format ||= 'psql' - if opts.state? + if opts.state? opts.state = File.expand_path(opts.state || DEFAULT_STATE_FILE) FileUtils.touch(opts.state) if !File.exist?(opts.state) end db = args.extract(1) @@ -101,11 +106,13 @@ reflector = tg.time("reflections") { PgGraph::Reflector.load_yaml(YAML.load(File.read(opts.reflections))) } else reflector = tg.time("reflections") { PgGraph::Reflector.new } end - # Dump types - type = tg.time("type") { PgGraph::Type.new(meta, reflector) } + # Load types + type = tg.time("type") { PgGraph::Type.new(meta, reflector, ignore: opts.exclude || []) } + + # Dump types? if opts.dump == "type" type.dump exit end