Class: HiveSQL::Connection

Inherits:
SqlBase
  • Object
show all
Defined in:
lib/hive_sql/models/connection.rb

Class Method Summary collapse

Methods inherited from SqlBase

#tx

Class Method Details

.columns(model_name) ⇒ Object


13
14
15
# File 'lib/hive_sql/models/connection.rb', line 13

def self.columns(model_name)
  "HiveSQL::#{model_name}".constantize.columns.map(&:name)
end

.tablesObject


9
10
11
# File 'lib/hive_sql/models/connection.rb', line 9

def self.tables
  self.connection.tables
end