Module: Kernel

Defined in:
lib/arql/ext/kernel.rb,
lib/arql/commands/table.rb,
lib/arql/commands/models.rb

Instance Method Summary collapse

Instance Method Details

#modelsObject



33
34
35
# File 'lib/arql/commands/models.rb', line 33

def models
  Arql::Commands::Models::models
end

#sql(sql) ⇒ Object



2
3
4
# File 'lib/arql/ext/kernel.rb', line 2

def sql(sql)
  ActiveRecord::Base.connection.exec_query(sql)
end

#table(name) ⇒ Object



52
53
54
# File 'lib/arql/commands/table.rb', line 52

def table(name)
  Arql::Commands::Table::table_info(Arql::Commands::Table::get_table_name(name))
end

#tablesObject



37
38
39
# File 'lib/arql/commands/models.rb', line 37

def tables
  models
end