execute(sql, name = nil)
public

Executes an SQL statement, returning a PGresult object on success or raising a PGError exception otherwise.