Class: ORMakers::Database
- Inherits:
-
Object
- Object
- ORMakers::Database
- Defined in:
- lib/ormakers/database.rb
Overview
Database class
Constant Summary collapse
- DATA_TYPES =
{ String => 'varchar', Integer => 'int', Float => 'float' }.freeze
Class Method Summary collapse
Class Method Details
.query(sql) ⇒ Object
10 11 12 |
# File 'lib/ormakers/database.rb', line 10 def self.query(sql) connection.exec(sql) end |