Hey, I'm trying to set up postgres, but I'm just accessing a public db so I don't want to set up tun

Hey, I'm trying to set up postgres, but I'm just accessing a public db so I don't want to set up tunneling.
Is it possible to do this? I tried following this (https://developers.cloudflare.com/workers/tutorials/query-postgres-from-workers-using-database-connectors/), but when I fetch my API and it tries to connect to postgres I receive:
(log) Fetch API cannot load: mainnet.db.explorer.indexer.near.dev

my client connection looks like this:
      const client = new Client({
        user: 'public_readonly',
        password: 'nearprotocol',
        database: 'mainnet_explorer',
        hostname: 'mainnet.db.explorer.indexer.near.dev',
        port: '5432',
      })
Was this page helpful?