Open iamed2 opened 8 years ago
Hadley Wickham's efforts to "tidy data" have been widely followed. Anything the DBI does that encourages this good principle will benefit our ecosystem. If you are not an R user, his work may be unfamiliar; here is the original paper http://vita.had.co.nz/papers/tidy-data.pdf.
Thanks, I'll take a look at that later tonight.
I agree that Python's DB API 2.0 is not all that useful. This is certainly not an attempt to duplicate it :)
I love SQLAlchemy. I want DBAPI.jl to be the common interface which an SQLAlchemy could sit on top of. I also think there is room for a common dialect of SQL to speak to relational SQL databases, and that's somewhere I'd like to look in the future.
I also need to be able to talk about the data format I expect and have that format populated by this package with the fewest copies. One big downside of DB API 2.0 is that it returns data rows as tuples, in default data types defined by the database's data types. It is very common to want e.g. an array of columns of known types from a database, and necessary for some of my applications. I'm attempting to solve this by having both a simple row interface and a more complicated fetchinto_ interface both built by default on top of a single getindex method.