Method: Pod4::PgInterface#delete
- Defined in:
- lib/pod4/pg_interface.rb
#delete(id) ⇒ Object
ID is whatever you set in the interface using set_id_fld
183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/pod4/pg_interface.rb', line 183 def delete(id) read_or_die(id) sql, vals = sql_delete(id_fld => id) executep(sql, *vals) self rescue => e handle_error(e) end |