Closed avkhozov closed 9 years ago
I don't know if savepoints are common enough to deserve their own methods, but i have to give this a :-1: because of the upsert example, which will be pointless after PostgreSQL 9.5.
Ok, but on conflict do
check only one class of errors.
And I don't understand how to solve what should be in the module Mojo::Pg
, and what is not. For example pid
and ping
methods of Mojo::Pg::Database
more useful that savepoints? All these methods are very easy to make using dbh
.
Think pid
and ping
were added because they are needed in tests, which is a strong use case.
I don't see the benefit, since it seems easy enough to just do $db->dbh->pg_savepoint("sp1")
directly.
I've never used savepoints, not sure how useful they are, lets see if more folks are interested.