On Fri, Mar 30, 2018 at 02:55:14PM +, Glenn Schultz wrote:
> All,
>
> I can create a connection as follows and it works but I think it is best to
> have a connection class that opens and closes.
You already have one: that's what pyodbc.connect is.
The documentation is pretty poor:
https://
On 30/03/18 15:55, Glenn Schultz wrote:
> I can create a connection as follows and it works
Well done, so you get a connection object back as a result.
> but I think it is best to have a connection class that opens and closes.
Why? You already have a connection object.
Classes are created so
All,
I can create a connection as follows and it works but I think it is best to
have a connection class that opens and closes. I create the connection class
as outline below. However, it does not work - meaning that it does not return
a connection rather it returns
<__main__.modelingdb at