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
Remove .detect_column_types() from table, make it a documented API #81
Comments
Here's the current method: sqlite-utils/sqlite_utils/db.py Lines 823 to 845 in f728917
If I make it a utility function instead of a class method I could ensure it is directly importable like so: from sqlite_utils import detect_column_types |
Should I keep If it was part of the documented API then I wouldn't break that without bumping to 3.x. Since it's undocumented I'm going to make it as a breaking change instead (and bump the |
Actually I'll put it in the |
While I'm at it I think I'll rename it to |
I used it in
geojson-to-sqlite
here: https://github.com/simonw/geojson-to-sqlite/blob/f10e44264712dd59ae7dfa2e6fd5a904b682fb33/geojson_to_sqlite/utils.py#L45-L50It would make more sense for this method to live on the Database rather than the Table - or even to exist as a separate utility method entirely.
Then it should be documented.
The text was updated successfully, but these errors were encountered: