Skip to content

cannot use with deno #95

@oscar6echo

Description

@oscar6echo

I tried use pg-structure with deno which is meant to be node-compatible, and is most of the time I tried.
However I cannot seem to be able to use pgStructure.

Doing the recommended:

import pgStructure from "pg-structure";
const db = await pgStructure({ host: "host", database: "db", user: "u", password: "pass" }, { includeSchemas: ["public"] });

leads to this error:

Image

It is not just an IDE error. It fails at runtime too.

I suspect some export does not work as expected...
I would be great if this could be fixed (?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions