wankdanker / node-odbc

ODBC bindings for node
MIT License
174 stars 79 forks source link

Added ODBCConnection::GetInfoSync using SQLGetInfo #31

Closed ondr3j closed 6 years ago

ondr3j commented 6 years ago

Synchronous implementation of SQLGetInfo via getInfoSync. Currently only supports SQL_USER_NAME as an argument. Also added SQL_USER_NAME as a constant within ODBC.

wankdanker commented 6 years ago

Awesome work; thank you @ondr3j.

Just for future reference, does anyone have a link to the documentation for this ODBC call and more specifically what other values may be obtained from the SQLGetInfo call?

I added a test for this, merged and published odbc@1.4.0

wankdanker commented 6 years ago

Answering my own question:

https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlgetinfo-function#data-source-information