Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def run_xquery()
- file = ARGV.shift
- file_path = "../../" + file
- if !File.exist?(File.expand_path(file_path, __FILE__))
- @logger.error("Xquery script " + file + " does not exist!")
- else
- @logger.info("Running xquery script: " + file + " ... ")
- query_code = File.read File.expand_path(file_path, __FILE__)
- r = execute_query %Q{#{query_code}}, :db_name => @properties["ml.content-db"]
- @logger.info(r.body)
- @logger.info("Done running migration!")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement