influxdb-python icon indicating copy to clipboard operation
influxdb-python copied to clipboard

Types matching

Open crabio opened this issue 6 years ago • 1 comments

Add function into write_points to get fields types of measurement, before downloading, and if field exists, convert to existed type. This feature is very usefull if you don't care about typing your date, when download and can will avoid error with types mismatch if you try to load float into integer field.

P.S. As bonus I add VSCode files into gitignore.

crabio avatar Jul 29 '19 14:07 crabio

Thanks for contributing!

Please add a test so that we consider to merge the patch.

Also, please make it optional as it could bread existing uses of the library.

aviau avatar Jul 29 '19 18:07 aviau