Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > Database Drivers > Postgres DB Driver > Functions
disconnect/1
Description
disconnect/1 is an Erlang function exported by "postgres" module.
This function allows you to close DB connection.
References
•connect/1
Parameters
Name
Type
Connection
integer()
Connection handle.
Result
Value or Type
{ok, Code}
Operation code
Code Sample
> postgres:disconnect(7689345632).