denodb icon indicating copy to clipboard operation
denodb copied to clipboard

Postgres connector makes the script unable to exit normally

Open neighborhood-dog opened this issue 2 years ago • 1 comments

The following code triggers the error (deno run --allow-env main.ts):

import { PostgresConnector } from "https://deno.land/x/[email protected]/mod.ts";

new PostgresConnector({
  host: "localhost",
  username: "postgres",
  password: "postgres",
  database: "test",
});

Deno.exit(0); can be added at the end of the script as a workaround to force it to exit.

Everything running on Windows 11, PostgreSQL 15.1.0.

deno --version

deno 1.29.1 (release, x86_64-pc-windows-msvc)
v8 10.9.194.5
typescript 4.9.4

neighborhood-dog avatar Jan 02 '23 21:01 neighborhood-dog

This is deeper than that, it seems like it happens for any connector and doesn't even require instantiation, this also hangs for me:

import { MySQLConnector } from 'https://deno.land/x/[email protected]/mod.ts';
console.log(MySQLConnector);

zookatron avatar Jan 21 '23 21:01 zookatron