Sha256: 2a6776e6c2088ed52ee9f1a7b01fe6de3239b4cfd7b36841b8f29d873040ba0b
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
module Grimm class DatabaseConnector def self.connect_db @db = SQLite3::Database.new File.join "grimm.db" end def self.execute(query, args = nil) @db ||= connect_db return @db.execute(query, args) if args @db.execute(query) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grimm-0.0.5 | lib/grimm/orm/database_connector.rb |