Git Product home page Git Product logo

sequelize-odbc-mssql's People

Contributors

mokkabonna avatar ratanaklun avatar ratanakvlun avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

sa03 spearmootz

sequelize-odbc-mssql's Issues

Issues building on ubuntu 16.04 boolean was not declared in this scope

Getting this when trying to install:
../src/odbc.cpp:893:9: error: ‘boolean’ was not declared in this scope
boolean* v = (boolean*)malloc(sizeof(boolean));
^
../src/odbc.cpp:893:18: error: ‘v’ was not declared in this scope
boolean* v = (boolean*)malloc(sizeof(boolean));
^
../src/odbc.cpp:893:31: error: expected primary-expression before ‘)’ token
boolean* v = (boolean*)malloc(sizeof(boolean));
2018-01-26T22_00_07_706Z-debug.log
MyEnv.txt
npm i sequelize-odbc-mssql.txt

ODBC connections via DSN

Hi! Not exactly an issue but a feature request.
I started using this sequelize dialect and after a while I figured that not every MS Sql Server installation is the same, so I can' t really rely on a standarized configuration (for my app). So the only thing I can trust is using a Windows x64 ODBC connection, connection via it' s DSN.

Current code in the Connection class makes some adjustments to the connectionString so it takes the SQL Server specific format, using the SQL Server Native Client, the SQL Native Client or the SQL Server driver, but no option to use the DSN of an ODBC connection.
A boolean useDSN could be an option, or checking if there's a dsn/DSN setting in the config object or the connectionString, so the constructor skips the actual driver detection.

Hope you consider this feature.
Best regards,
Jose Ignacio

"options" inside "dialectOptions" is required

Hi,

I can't connect to my database using trusted connection unless I provide an "options" object inside the "dialectOptions", like this:

"dialectOptions": { "options": { "driver": "ODBC Driver 17 for SQL Server", "trustedConnection": true } }

Not including it results in:
ERROR: Login failed for user ''.

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.