v0.2.0-alpha.1
·
10 commits
to main
since this release
Thanks to @mwieczorkiewicz
(Mikołaj Wieczorkiewicz) for contributing the pluggable transport SPI
and configurable HTTP timeouts in #1
— their first contribution to the project.
Added — Pluggable transport SPI (#1)
QuackTransportinterface andQuackTransportFactory
(functional, takes a parsedQuackUri) let applications supply their
own transport implementation — a customHttpClientwith proxies /
mTLS / interceptors, or an in-process fake for testing.QuackDriver.connect(url, properties, transportFactory)overload
threads the factory throughQuackConnectionandQuackSession. The
no-factoryconnect(url, properties)path is unchanged and still uses
the built-in HTTP transport.QuackHttpTransportnow implementsQuackTransport; the existing
QuackSession(QuackUri, QuackHttpTransport)constructor is retained
for binary compatibility.
Added — Configurable HTTP timeouts
connectTimeoutandrequestTimeoutJDBC URL /Properties
options, accepted as either a plain integer (seconds) or an ISO-8601
duration likePT30S. Defaults remain 10s connect / 60s request.
Surfaced viaDriver.getPropertyInfoso DBeaver / DataGrip show them
in their connection dialogs.- Invalid / non-positive values raise a
QuackExceptionat parse time.
Tests
- New
QuackDriverCustomTransportTestexercising factory injection,
null-factory error handling,getPropertyInfoshape, and binary
compatibility of the legacyQuackSessionconstructor. - New
QuackUriTestcases for timeout parsing (URL, properties, invalid
values) and aQuackHttpTransportTestcase forfrom(QuackUri).
Total suite: 83 tests, all green.