Sha256: 51f8246b834a9598f76c402ceee80f073f0653fc34209cfe819570d823f4f083
Contents?: true
Size: 253 Bytes
Versions: 1
Compression:
Stored size: 253 Bytes
Contents
require "sqlite3" module Peictt 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[0], query[1] || []) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peictt-0.1.1 | lib/peictt/orm/database.rb |