method
execute
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements
execute(sql, name = nil)public
Executes an SQL statement, returning a PGresult object on success or raising a PGError exception otherwise. Note: the PGresult object is manually memory managed; if you don’t need it specifically, you many want consider the exec_query wrapper.