class ORMakers::Database

Database class

Constants

DATA_TYPES

Public Class Methods

query(sql) click to toggle source
# File lib/ormakers/database.rb, line 10
def self.query(sql)
  connection.exec(sql)
end

Private Class Methods

connection() click to toggle source
# File lib/ormakers/database.rb, line 14
def self.connection
  # @connection ||= PG.connect(DBCredentials.new.to_hash)
  @connection ||= PG.connect(dbname: 'ormakers')
end