wg/epgsql is tracked by TopGit as an open-source project, with 328 stars on GitHub, written primarily in Erlang. Erlang PostgreSQL client
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Host - host to connect to.
Username - username to connect as, defaults to $USER.
Password - optional password to authenticate with.
Opts - property list of extra options. Supported properties:
{database, String}
{port, Integer}
{ssl, Atom} true | false | required
{ssl_opts, List} see ssl application docs in OTP
{timeout, Integer} milliseconds, defaults to 5000
{async, Pid} see Asynchronous Messages section
{ok, C} = pgsql:connect("localhost", "username", [{database, "test_db"}]).
ok = pgsql:close(C).
The timeout parameter will trigger an {error, timeout} result when the
server fails to respond within Timeout milliseconds. This timeout applies
to the initial connection attempt and any subsequent queries.
Columns - list of column records, see pgsql.hrl for definition.
Rows - list of tuples, one for each row.
Count - integer count of rows inserted/updated/etc
The simple query protocol returns all columns as text (Erlang binaries)
and does not support binding parameters.
Parameters - optional list of values to be bound to $1, $2, $3, etc.
The extended query protocol combines parse, bind, and execute using
the unnamed prepared statement and portal. A "select" statement returns
{ok, Columns, Rows}, "insert/update/delete" returns {ok, Count} or
{ok, Count, Columns, Rows} when a "returning" clause is present. When
an error occurs, all statements result in {error, #error{}}.
PostgreSQL's binary format is used to return integers as Erlang
integers, floats as floats, bytea/text/varchar columns as binaries,
bools as true/false, etc. For details see pgsql_binary.erl and the
Data Representation section below.
Errors originating from the PostgreSQL backend are returned as {error, #error{}},
see pgsql.hrl for the record definition. epgsql functions may also return
{error, What} where What is one of the following:
{unsupported_auth_method, Method} - required auth method is unsupported
timeout - request timed out
closed - connection was closed
sync_required - error occured and pgsql:sync must be called
Asynchronous Messages
PostgreSQL may deliver two types of asynchronous message: "notices" in response
to notice and warning messages generated by the server, and "notifications" which
are generated by the LISTEN/NOTIFY mechanism.
Passing the {async, Pid} option to pgsql:connect will result in these async
messages being sent to the specified process, otherwise they will be dropped.
Connection - connection the notification occured on
Channel - channel the notification occured on
Pid - database session pid that sent notification
Payload - optional payload, only available from PostgreSQL >= 9.0
{pgsql, Connection, {notice, Error}}
Connection - connection the notice occured on
Error - an #error{} record, see pgsql.hrl
No homepage URL was recorded for wg/epgsql in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Does wg/epgsql have any tags?
TopGit's last sync did not record any GitHub topics for wg/epgsql. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on wg/epgsql?
The most recent commit recorded on wg/epgsql was 4.6 years ago, based on the GitHub push timestamp. The repository has 84 forks — one of the better signals of community interest.
Is wg/epgsql open source?
Yes — wg/epgsql ships under the BSD-3-Clause license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/wg/epgsql.
What license does wg/epgsql use?
wg/epgsql is released under the BSD-3-Clause license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about wg/epgsql?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/wg/epgsql is the definitive source.
Read full README in the tab above.
Want a second opinion on epgsql?
Ask an AI that can read this page — one click and you get its take on epgsql.