Method: Twb::DataSource#loadTables

Defined in:
lib/twb/datasource.rb

#loadTablesObject



184
185
186
187
188
189
190
191
192
193
# File 'lib/twb/datasource.rb', line 184

def loadTables
  @tables = {}
  connections.each do |conn|
    nodes = conn.xpath(".//relation[@type='table']")
    nodes.each do |node|
      @tables[node.attr('name')] = node.attr('table')
    end
  end
  return @tables
end