Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odbc.Database is not a constructor #123

Open
addlistener opened this issue Sep 22, 2022 · 1 comment
Open

odbc.Database is not a constructor #123

addlistener opened this issue Sep 22, 2022 · 1 comment

Comments

@addlistener
Copy link


  var db = new odbc.Database();
           ^

TypeError: odbc.Database is not a constructor

odbc@^2.4.5:
  version "2.4.5"
  resolved "https://registry.yarnpkg.com/odbc/-/odbc-2.4.5.tgz#2c4972e613a7da4cdf8fbe20d8f301682cba6e47"
  integrity sha512-McvU/hj7PeT4TR+N0vUTZwFEbfeXc9Le87iPi//cehzVa05/UIrpNXavK6byvZ1hyvYwbpDzO/YvHrSxGnsccg==
  dependencies:
    "@mapbox/node-pre-gyp" "^1.0.5"
    async "^3.0.1"
    node-addon-api "^3.0.2"

@wankdanker
Copy link
Collaborator

I don't think that is the constructor for odbc@^2. If you want to use that constructor, you have to install odbc@^1. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants