PostgreSQL backend using the Session.S.Future signature with Async.
The default expiry period is one week. The code expects the following table and index to be in pace:
CREATE TABLE IF NOT EXISTS session (
session_key char(40),
expire_date timestamp (2) with time zone,
session_data text
);
CREATE INDEX session_key_idx ON session (session_key);
Note that this module does not do utilize non-blocking IO but instead runs each synchronous operation in a thread.
This is an alias for the connection constructor. If you have an existing connection to a database with the appropriate tables set up, you are more than welcome to use it.