You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there
Thanks for this great library! I did use it in a project where I used pyodbc before and there are some non-obvious things I think you should document. I must say however that I am relatively new to python database related stuff.
The second thing is that only the %s Parameter Syntax seems to work though the DB API mentions some more syntax types. I think you should document what you support here.
The text was updated successfully, but these errors were encountered:
I'm just an interloper trying to help. I also struggled with parameters when I started using this library due to my inexperience with python and this type of string formatting (the documentation now refers to this as "printf-style string formatting" and "old string formatting") while frantically trying to get things working. In the Python DB 2.0 specification there's a paramstyle global (found in in pytds/__init__.py for this library) that indicates the parameter style supported by the library. pytds has this as "pyformat". So, technically speaking, it's documented. You can then go from there to this string formatting specification to see how this works. However, when you delve into the pytds code, this formatting is only used to replace the formatting placeholders with generated sql server variable names (@p1, @p2, etc.), so %s or %(name)s are really the only viable format specifiers.
Hi there
Thanks for this great library! I did use it in a project where I used pyodbc before and there are some non-obvious things I think you should document. I must say however that I am relatively new to python database related stuff.
At first pyodbc has some nice extensions to the DB API I think you should consider, mostly this one: https://github.com/mkleehammer/pyodbc/wiki/Features-beyond-the-DB-API#passing-parameters
The second thing is that only the %s Parameter Syntax seems to work though the DB API mentions some more syntax types. I think you should document what you support here.
The text was updated successfully, but these errors were encountered: