Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Database Drivers > Postgres DB Driver > Functions
reactivate/2
Description
reactivate/2 is an Erlang function exported by "postgres" module.
This function controls the capabilities to manage connection activations. Please refer to PostgreSQL documentation for further instructions.
References
•connect/1
•activate/1
•deactivate/1
Parameters
Name
Type
Connection
integer()
Connection handle.
Mode
atom()
•allow - this activates connection activations.
•disallow - this deactivates connection activations.
Result
Value or Type
{ok, Code}
Operation code
Code Sample
> postgres:reactivate(7689345632, allow).