Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
odbc: Support connection with attribute key-value pairs
`connect()` now accepts an attribute table to construct a connection string for `SQLDriverConnect()`. It supports three forms now: 1. The original form ```lua connect(source, user, pass) ``` 2. Connect with the DSN keyword ```lua connect { DSN = source, UID = user, PWD = pass, } ``` or ```lua connect({ DSN = source }, user, pass) ``` 3. Connect with the DRIVER keyword ```lua connect { DRIVER = "SQL Server", SERVER = ".\\SQLEXPRESS", UID = user, PWD = pass, } ``` or ```lua connect({ DRIVER = "SQL Server", SERVER = ".\\SQLEXPRESS", }, user, pass) ```
- Loading branch information