tspurway / hustle

A column oriented, embarrassingly distributed relational event database.
Other
240 stars 36 forks source link

Add csv_decoder for Hustle insert #25

Closed ncloudioj closed 10 years ago

ncloudioj commented 10 years ago

Added in commit 2bb0e7f5a649dfe491938ada025c67c778127b1f. Typical usage:

>>> from hustle import insert
>>> from hustle.core.marble import csv_decoder
>>> from functools import partial
>>> insert(table, csv_files, decoder=partial(csv_decoder, fieldnames=['column1', 'column2'], delimiter=','))
tspurway commented 10 years ago

Nice!

Sent from my iPhone

On 2014-04-10, at 11:32 AM, Nan Jiang notifications@github.com wrote:

Added in commit 2bb0e7fhttps://github.com/chango/hustle/commit/2bb0e7f5a649dfe491938ada025c67c778127b1f . Typical usage:

from hustle import insert from hustle.core.marble import csv_decoder from functools import partial insert(table, csv_files, decoder=partial(csv_decoder, fieldnames=['column1', 'column2'], delimiter=','))

Reply to this email directly or view it on GitHubhttps://github.com/chango/hustle/issues/25#issuecomment-40100027 .