eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

Home Page:https://eveningkid.com/denodb-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres connector makes the script unable to exit normally

neighborhood-dog opened this issue · comments

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

import { PostgresConnector } from "https://deno.land/x/denodb@v1.1.0/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/denodb@v1.2.0/mod.ts';
console.log(MySQLConnector);