GithubHelp home page GithubHelp logo

mike-eason / oledb Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 9.0 80 KB

A small promised based module which uses edge.js to connect to an OLE DB, ODBC or SQL database.

License: MIT License

C# 44.99% JavaScript 55.01%
database odbc oledb promise sql

oledb's Issues

Consider making edge-js a peer dependency

I think dependents should be able to update or even downgrade edge-js on their own schedule, so they can keep it in sync with their project's Node version.

  • the version used can be updated faster or slower than the one used by oledb, which can be locked in via devDependencies
  • with "peerDependencies": { "edge-js": "*" }
    • running npm update on dependent projects will do major version bumps of edge-js
    • the latest version can be automatically installed on fresh installs (at least on npm > 7)

To clarify, this isn't a breaking change because no edge-js updates are automatically done after installing the new release with the peer dependency.

What do you think?

edge module not pre-compiled for node.js v12.4.0

I'm trying to use this oledb package from an Electron 6.0.x application that uses Node.js v12.4.0.
The test code, based on the package sample, is:

  const oledb = require('oledb');
  const connectionString = 'Provider=SQLOLEDB;Data Source=(local)\\SQLEXPRESS;Initial Catalog=test;Persist Security Info=True;User Instance=False;User ID=sa;Password=1234;';
  const command = 'select * from TestTable;';
  const db = oledb.oledbConnection(connectionString);
  db.query(command)
  .then(result => {
    console.log(result);
  },
  err => {
    console.error(err);
  });

When starting the Electron application, the following error occurs:
image

Is there a way I can use electron-edge-js instead edge-js package? electron-edge-js is built against the node.js versions distributed along with Electron releases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.