Workers only support HTTP requests, not raw TCP. So, no, at present you can't hold a database connection open, though you can make requests to HTTP-based storage APIs available from any number of providers.
My use case was to contact Redis and I wasn't able to maintain a connection open.