ratanakvlun / sequelize-odbc-mssql Goto Github PK
View Code? Open in Web Editor NEWSequelize dialect driver for the @ratanakvlun/node-odbc module
License: ISC License
Sequelize dialect driver for the @ratanakvlun/node-odbc module
License: ISC License
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
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
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 ''.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.