Sha256: 38697c18cfc0bf121c025a1bab462eb4989b655dea5748bda2642e3346074093
Contents?: true
Size: 318 Bytes
Versions: 1
Compression:
Stored size: 318 Bytes
Contents
module Mgt class Database class << self attr_accessor :db def connect @db = SQLite3::Database.new File.join "app.db" end def execute(query, args = nil) @db ||= connect return @db.execute(query, args) if args @db.execute(query) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mgt-0.1.0 | lib/orm/database.rb |