Skip to content
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

feature request: add option to disable type inference when parsing the input #64

Closed
aborruso opened this issue Mar 21, 2019 · 3 comments
Assignees

Comments

@aborruso
Copy link

Hi,
reading this reply I have discovered that sqlitebiter do field type inference, when collect data starting from a webpage.

Now there is --convert-config option that enables to set field type for every field.

I think that for some complex source could be long and boring to set field type for a lot of fields.
A solution could be to add a -I parameter to disable type inference when parsing the input, and have all field type set as text.

Thank you

@thombashi thombashi self-assigned this Mar 22, 2019
@thombashi
Copy link
Owner

Hi,

Thank you for your suggestion.

That sounds reasonable.
I will consider for the future release.

@thombashi
Copy link
Owner

I had added --no-type-inference option at sqlitebiter 0.27.0 that disable type inference.

Example:

Input data

$ cat issue64.csv
A,B
abc,1
xyz,2

w/o --no-type-inference

$ sqlitebiter file issue64.csv

Output

Field Type Null Key Default Index Extra
A TEXT YES NULL
B INTEGER YES NULL

w/ --no-type-inference

$ sqlitebiter --no-type-inference file issue64.csv

Output

Field Type Null Key Default Index Extra
A TEXT YES NULL
B TEXT YES NULL

@aborruso
Copy link
Author

WOW!!!

I'm really happy and proud.

Thank you

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

No branches or pull requests

2 participants