I guess another approach would be querying D1 via the REST API (https://developers.cloudflare.com/ap
I guess another approach would be querying D1 via the REST API (https://developers.cloudflare.com/api/operations/cloudflare-d1-raw-database-query).

net and socks node packages are supported by Workers? I don't see them here, which makes me think not 
wrangler/the Dashboard*/* it will run for all traffic (this is too broad), if I add one for */ it will only run for the home page if there aren't any query params.Route pattern matching considers the entire request URL, including the query parameter string. Since route patterns may not contain query parameters, the only way to have a route pattern match URLs with query parameters is to terminate it with a wildcard, *.https://developers.cloudflare.com/workers/configuration/routing/routes/#route-patterns-may-not-contain-any-query-parameters
/. E.G- it will match too/something/i/dont/want