Module: Sapphire::DataAbstractions::Query
- Defined in:
- lib/sapphire/DataAbstractions/Query.rb
Instance Method Summary collapse
Instance Method Details
#Execute(block) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/sapphire/DataAbstractions/Query.rb', line 4 def Execute(block) x = self.Database.new x.Open $config[x.Connection] y = "" y = AppConfig.Current.SqlPath if AppConfig.Current path = File.(y + self.Script, __FILE__) file = File.open(path) contents = file.read self.Tokenize(contents) results = x.query(contents) block.call results x.close end |