NAME

pg_proc_jsonrpcd - PostgreSQL Stored Procedures JSON-RPC Daemon

SYNOPSIS

# add pg_proc_jsonrpcd to pg_service.conf
echo '
[pg_proc_jsonrpcd]
application_name=pg_proc_jsonrpcd
' >> ~/.pg_service.conf

# start server
pg_proc_jsonrpcd -D --server Starman --port 54321 --host 127.0.0.1

DESCRIPTION

pg_proc_jsonrpcd is a JSON-RPC daemon to access PostgreSQL stored procedures.

The script implements the PSGI standard and accepts the same parameters as the plackup script.

It only supports named parameters, JSON-RPC version 1.1 or 2.0.

DBIx::Pg::CallFunction is used to map method and params in the JSON-RPC call to the corresponding PostgreSQL stored procedure.

SEE ALSO

Plack::Runner PSGI DBIx::Pg::CallFunction