Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return rows as native Python lists #11

Closed
MathMagique opened this issue Jun 10, 2016 · 0 comments
Closed

Return rows as native Python lists #11

MathMagique opened this issue Jun 10, 2016 · 0 comments

Comments

@MathMagique
Copy link
Member

Currently, turbodbc returns rows as a dedicated type created by boost::python. This type is not directly printable and adds confusion. Replace this type with a standard Python list.

In addition, before turbodbc converts result set values to Python objects, there is an intermediate step in converting result set values to a C++ std::vector<turbodbc::optional_field>, which is in turn converted to a Python object. This is pretty costly and unnecessary. Both issues can be fixed in a single effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant