denodb
denodb copied to clipboard
Postgres connector makes the script unable to exit normally
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
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);