module Clear::SQL::Query::Execute

Direct including types

Defined in:

clear/sql/query/execute.cr

Instance Method Summary

Instance Method Detail

def 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

[View source]