Skip to content

Add namedtuples() execution method to Postgres.Statement #29

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

Open
jwp opened this issue Aug 9, 2010 · 0 comments
Open

Add namedtuples() execution method to Postgres.Statement #29

jwp opened this issue Aug 9, 2010 · 0 comments

Comments

@jwp
Copy link
Contributor

jwp commented Aug 9, 2010

I think this may be the best route for supporting native Python objects from Statements.
Rather than using a statement wrapper, just have the Statement.namedtuples() convert. It doesn't make much sense to pack Postgres types into as rows() suffices well enough.

Statement.namedtuples() -> iterator
Statement.namedtuple() -> next(Statement.namedtuples(...)) or None

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

No branches or pull requests

1 participant