module

Clear::SQL::Query::Execute

Instance methods

execute(connection_name : String | Nil = nil)

Execute an SQL statement which does not return anything.

If an optional connection_name parameter is given, this will override the connection used by the query.

%(default secondary).each do |cnx|
  Clear::SQL.select("pg_shards('xxx')").execute(cnx)
end
Source