lib/piglet/inout/load.rb in piglet-0.1.2 vs lib/piglet/inout/load.rb in piglet-0.2.0

- old
+ new

@@ -1,12 +1,17 @@ module Piglet module Inout class Load # :nodoc: + include Piglet::Relation::Relation include StorageTypes def initialize(path, options={}) options ||= {} @path, @using, @schema = path, options[:using], options[:schema] + end + + def schema + Piglet::Schema::Tuple.parse(@schema) if @schema end def to_s str = "LOAD '#{@path}'" str << " USING #{resolve_load_store_function(@using)}" if @using \ No newline at end of file