Repository navigation
0.3.0
-
Breaking: every duration is an
Mtime.Span.tnamed for what it bounds, not a float of seconds named for its unit, so a wait in the wrong unit no longer compiles.connect's andListener.connect's?timeout_sis?timeout,Listener.connect's?heartbeat_sis?heartbeat,Pool.create's?timeout_s,?wait_s,?max_lifetime_sand?idle_check_sare?timeout,?wait,?max_lifetimeand?idle_check, andPool.use's?wait_sis?wait: write~timeout:Mtime.Span.(10 * s). -
Breaking:
timeout_sistimeout, andset_timeouttakes~timeout:Mtime.Span.t option. -
Breaking: the
Conninfo.tfieldconnect_timeout_s : float optionisconnect_timeout : Mtime.Span.t option. The connection string still gives it in whole seconds, as libpq reads it, andto_urlwrites it in whole seconds, rounded up. Only a zero span now falls back to the connection's timeout, since a span is never negative. -
Breaking:
abandonandresumeare gone. The pool has stopped a cancelled borrower through Eio cancellation since 0.2.0, and nothing else called them. To stop a statement, cancel the fiber running it: the statement is cancelled at the server and the connection closed.