Module: Sapphire::DataAbstractions::NonQuery

Defined in:
lib/sapphire/DataAbstractions/NonQuery.rb

Instance Method Summary collapse

Instance Method Details

#ExecuteObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/sapphire/DataAbstractions/NonQuery.rb', line 4

def Execute
  x = self.Database.new

  x.Open $config[x.Connection]
  y = ""
  y = AppConfig.Current.SqlPath if AppConfig.Current
  path = File.expand_path(y + self.Script, __FILE__)
  file = File.open(path)
  contents = file.read
  self.Tokenize(contents)

  x.query(contents)
  x.close
end