Sha256: 8161486f4e48d789f26ee995b5994b9058eea777686ab46566974852d042beae

Contents?: true

Size: 475 Bytes

Versions: 6

Compression:

Stored size: 475 Bytes

Contents

# puts "executing fixed_width.ctl"

source :in, {
  :file => 'data/xml.xml',
  :parser => :xml
}, 
{
  :collection => 'people/person',
  :fields => [
    :first_name,
    :last_name,
    {
      :name => :ssn,
      :xpath => 'social_security_number'
    },
    {
      :name => :age,
      :type => :integer
    }
  ]
}

destination :out, {
  :file => 'output/xml.txt'
}, 
{
  :order => [:first_name, :last_name, :ssn]
}

transform :ssn, :sha1
transform(:ssn){ |v| v[0,24] }

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
activewarehouse-etl-1.0.0 test/xml.ctl
activewarehouse-etl-1.0.0.rc1 test/xml.ctl
etl-0.9.5.rc1 spec/fixtures/xml.ctl
activewarehouse-etl-sgonyea-0.9.6 test/xml.ctl
activewarehouse-etl-0.9.5.rc1 test/xml.ctl
balinterdi-activewarehouse-etl-0.9.2 test/xml.ctl