Sha256: 2d86d918ef62f1e5b9e96df9e772c57e067b619468b9f9cf0503825344186e72

Contents?: true

Size: 289 Bytes

Versions: 1

Compression:

Stored size: 289 Bytes

Contents

require 'sqlite3'

module RapidRunty
  module Model
    class DB
      def self.create_db
        SQLite3::Database.new(File.join(ROOT_DIR, 'db', 'rapid.db'))
      end

      def self.execute_query(*query)
        @db ||= create_db
        @db.execute(*query)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapid_runty-0.1.4 lib/rapid_runty/model/db.rb