wg/epgsql hiện có 329 sao trên GitHub, viết chủ yếu bằng Erlang. Erlang PostgreSQL client
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/wg/epgsql là nguồn chính thức.
wg/epgsql có phải mã nguồn mở không?
Có — wg/epgsql phát hành theo license BSD-3-Clause, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/wg/epgsql.
wg/epgsql có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho wg/epgsql. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
wg/epgsql có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho wg/epgsql. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
wg/epgsql còn đang phát triển không?
Commit gần nhất trên wg/epgsql là 4.4 năm trước (theo timestamp GitHub). Repo có 83 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
wg/epgsql dùng license gì?
wg/epgsql phát hành theo license BSD-3-Clause. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
epgsql có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về epgsql.