Implement sql writer #164
Comments
@roll @akariv how about an SQL reader too? I thought a reader had already been discussed, but I can't find it. We need it for some Frictionless Data piloting work, and @danfowler has expressed interest in implementing it. |
I think @roll already implemented it and it's in master.
…On Tue, 23 May 2017 at 08:52 Paul Walsh ***@***.***> wrote:
@roll <https://github.com/roll> @akariv <https://github.com/akariv> how
about an SQL reader too? I thought a reader had already been discussed, but
I can't find it. We need it for some Frictionless Data piloting work, and
@danfowler <https://github.com/danfowler> has expressed interest in
implementing it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#164 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQMde08u1tuzWu82H05EGmCd9iurqC1ks5r8nQjgaJpZM4NWZT2>
.
|
@danfowler see above |
@pwalsh |
@roll @akariv @CallMeAlien @pwalsh to clarify: for the DM4T pilot, one of the datasets (ENLITEN) was provided as a MySQL dump. Given that one of the goals of this DM4T project more generally is to "make your data public to the rest of the public and beyond" (and that publishing a SQL dump is not super friendly), I thought there might be value in going straight from a SQL database directly to a Data Package. I initially tried to use
Given that the publisher of this kind of data would want do make some edits to the published Data Package (like dropping user tables, adding metadata, etc.) without needing to do much programming directly, I suppose what probably makes more sense is to do this with some higher level tool, like datapackage-pipelines where you can have an SQL connection as the source. I suppose what one would need to implement is a |
@danfowler there's no need for a |
@akariv thanks! That helps so much with understanding how these pieces fit together 😄 . /me rushing off to add some SQL connections strings to some YAML |
Hi, I would like to take a crack at this, is that OK? |
Go ahead @eyalhei ! |
That's great @eyalhei Please take a look at #273 (comment) (and this comment especially) to ensure that the issue is properly described (probably it wasn't for the JSON writer). The test from the comment I linked could be easily updated to be a POC SQL writer test (round-trip using SQL as an intermediate format) |
DONE in #276 |
Overview
For now
tabulator
support onlystream.save(format='csv')
tocsv
format. It's pretty easy to implementsql
writer just portingwriters.csv.CSVWriter
towriters.sql.SQLWrter
.What we're aiming for:
And of course it will be a pretty cool and useful feature 👍
Plan
writers.csv.CSVWriter
towriters.sql.SQLWrter
config.py
tests.formats.sql
sql
format sectionThe text was updated successfully, but these errors were encountered: