For example with MySQLi there is an autocommit() method, a commit() and a rollback(). It appears that Postgres for PHP doesn’t support methods like these and you can only do transactions in the actual SQL. is this correct?
For example with MySQLi there is an autocommit() method, a commit() and a rollback().
Share
This is correct, and the reason is probably that the PostgreSQL C client library doesn’t have such methods. It does have
pg_transaction_status(), which should make writing a transaction wrapper straightforward.