Sha256: af6a38822c229909669a24d86af6072f16fdcd9dc7dcb5bb78d2ceb67fcd45b1

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

require "sqlite3"
module Vundabar
  class Database
    def self.connect
      @db ||= SQLite3::Database.new(File.join(APP_ROOT, "db", "app.db"))
    end

    def self.execute_query(*query)
      connect.execute(*query)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vundabar-0.2.0 lib/vundabar/orm/database.rb
vundabar-0.1.0 lib/vundabar/orm/database.rb