Class: Flydata::SourcePostgresql::SyncGenerateTableDdl

Inherits:
Flydata::Source::SyncGenerateTableDdl show all
Defined in:
lib/flydata/source_postgresql/sync_generate_table_ddl.rb

Instance Attribute Summary

Attributes inherited from Flydata::Source::SyncGenerateTableDdl

#dp

Instance Method Summary collapse

Methods inherited from Flydata::Source::SyncGenerateTableDdl

#generate_flydata_tabledef, inherited, #initialize

Methods inherited from Flydata::Source::Component

#initialize

Constructor Details

This class inherits a constructor from Flydata::Source::SyncGenerateTableDdl

Instance Method Details

#data_entry_prefsObject



16
17
18
# File 'lib/flydata/source_postgresql/sync_generate_table_ddl.rb', line 16

def data_entry_prefs
  de['postgresql_data_entry_preference']
end

#data_source_type_display_nameObject



12
13
14
# File 'lib/flydata/source_postgresql/sync_generate_table_ddl.rb', line 12

def data_source_type_display_name
  "PostgreSQL database"
end

#each_source_tabledef(tables, options, &block) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/flydata/source_postgresql/sync_generate_table_ddl.rb', line 20

def each_source_tabledef(tables, options, &block)
  # PostgreSQL options.
  tables = tables.clone
  if tables.to_s == '' || tables.to_s == '[]'
    raise ArgumentError, "tables is nil or empty"
  end
  _each_tabledef(tables, options, &block)
end

#run_compatibility_checkObject



8
9
10
# File 'lib/flydata/source_postgresql/sync_generate_table_ddl.rb', line 8

def run_compatibility_check
  # do nothing for now
end