Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

maybe accept queries with a list/tuple/vector of Julia types (conversion targets) #5

Open
J-Sarnoff opened this issue Jan 5, 2016 · 4 comments

Comments

@J-Sarnoff
Copy link

It would be a nice low-level assist from the DBAPI to SELECT fields from the DB and, before returning the result, convert(TargetType, field)ing the field values to the types the queryor will use.

@iamed2
Copy link
Contributor

iamed2 commented Jan 5, 2016

Yes, I have been thinking about a version of fetchinto_ that takes a container type and constructs and returns that container. I think that would satisfy this?

Thanks for contributing :) feel free to open any other feature request or idea issues, as I want to take many perspectives into account with this package.

@J-Sarnoff
Copy link
Author

If by container you mean https://github.com/pluskid/SimpleStructs.jl -- yes if also you can replicate that for multirow responses.

Python DBI2 is not all that compelling -- it is a least likely to offend, erstwhile attempt at genericity.
Times have changed some. I have no qualm with using it to make sure 'bases are covered'.

What is your opinion of SQLAlchemy (not that that should be the DBI -- that the DBI should allow such constructions (the Julia way) to become available with more ease and less expertise.

@J-Sarnoff
Copy link
Author

unclosed

@J-Sarnoff J-Sarnoff reopened this Jan 5, 2016
@iamed2
Copy link
Contributor

iamed2 commented Jan 5, 2016

Moved the design discussion which is out of the scope of this issue to #6

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

No branches or pull requests

2 participants