Public Instance methods
run()
Run the dataset’s SQL
on the database. Returns NULL. This is useful when you want to run SQL
without returning a result.
DB["GRANT SELECT ON ? TO ?", :table, :user].run # GRANT SELECT ON "table" TO "user"
[show source]
# File lib/sequel/extensions/dataset_run.rb 31 def run 32 if server = @opts[:server] 33 db.run(sql, :server=>server) 34 else 35 db.run(sql) 36 end 37 end