Thanks coffeepot for providing this library.

I'm having some problem when trying the following with nim 0.17.2
    
    
    import odbc-master/odbc.nim
    
    var
        con = newODBCConnection()
        con.driver = "ODBC Driver 11 for SQL Server"
        con.host = "myHost"
        con.database = "myDB"
    
    if not con.connect:
        echo "Could not connect to database."
    else:
        echo "Connection ok"
    

I get the following error:

**test.nim(5, 8) Error: implicit object field construction requires a .partial 
object, but got ODBCConnection:ObjectType**

I'm a newcomer to nim, so this is not familiar to me - any tips appreciated.

I know the driver string is ok, since I can use this with success with python 
(pyodbc).

Thanks. 

Reply via email to