Class: Exwiw::DumpTarget

Inherits:
Struct
  • Object
show all
Defined in:
lib/exwiw.rb

Overview

‘ids_field` optionally overrides which field `–ids` is matched against on the target table. When nil the table’s primary key is used (the historical behavior). Currently only honored by the mongodb adapter.

‘scope_column` switches the extraction to scope-column mode: instead of a single `table_name` anchor, every table is filtered by a shared column (`scope_column IN ids`) and tables lacking it are reached by walking belongs_to up to the nearest table that has it. When set, `table_name` is nil. SQL adapters only.

Instance Attribute Summary collapse

Instance Attribute Details

#idsObject

Returns the value of attribute ids

Returns:

  • (Object)

    the current value of ids



48
49
50
# File 'lib/exwiw.rb', line 48

def ids
  @ids
end

#ids_fieldObject

Returns the value of attribute ids_field

Returns:

  • (Object)

    the current value of ids_field



48
49
50
# File 'lib/exwiw.rb', line 48

def ids_field
  @ids_field
end

#scope_columnObject

Returns the value of attribute scope_column

Returns:

  • (Object)

    the current value of scope_column



48
49
50
# File 'lib/exwiw.rb', line 48

def scope_column
  @scope_column
end

#table_nameObject

Returns the value of attribute table_name

Returns:

  • (Object)

    the current value of table_name



48
49
50
# File 'lib/exwiw.rb', line 48

def table_name
  @table_name
end