Class: Flydata::SourcePostgresql::Sync

Inherits:
Flydata::Source::Sync show all
Defined in:
lib/flydata/source_postgresql/sync.rb

Instance Method Summary collapse

Methods inherited from Flydata::Source::Sync

inherited

Methods inherited from Flydata::Source::Component

#initialize

Constructor Details

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

Instance Method Details

#data_serversObject



19
20
21
# File 'lib/flydata/source_postgresql/sync.rb', line 19

def data_servers
  de['postgresql_data_entry_preference']['data_servers']
end

#forwarderObject



23
24
25
# File 'lib/flydata/source_postgresql/sync.rb', line 23

def forwarder
  de['postgresql_data_entry_preference']['forwarder']
end

#setupObject



7
8
9
# File 'lib/flydata/source_postgresql/sync.rb', line 7

def setup
  setup_table_prefs(de['postgresql_data_entry_preference'])
end

#supported?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/flydata/source_postgresql/sync.rb', line 11

def supported?
  true
end

#table_listsObject



15
16
17
# File 'lib/flydata/source_postgresql/sync.rb', line 15

def table_lists
  de['postgresql_data_entry_preference'].select {|key, value| %w(tables new_tables invalid_tables tables_append_only).include?(key)}
end