You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpgfrom"npm:pg";// Fill it with credentialsconstclient=newpg.Client({user: "",password: "",host: "",database: "",ssl: true,});awaitclient.connect();constresult=awaitclient.query("select * from some_table");console.log(result);awaitclient.end();
Errors with the following:
error: Top-level await promise never resolved
await client.end();
^
The only workaround I find is to call client.end() without await. However the code above works with Node.js.
Thanks!
The text was updated successfully, but these errors were encountered:
Version: Deno 2.2.4
Hello, please run this code:
Errors with the following:
The only workaround I find is to call
client.end()
without await. However the code above works with Node.js.Thanks!
The text was updated successfully, but these errors were encountered: