smi2 / phpClickHouse

php ClickHouse wrapper
MIT License
741 stars 139 forks source link

Using insertBatchFiles with CSVWithNamesAndTypes is not possible #200

Closed jeanatpi closed 8 months ago

jeanatpi commented 9 months ago

I'd like to use insertBatchFiles with CSVWithNamesAndTypes and it is not possible at the moment because of SUPPORTED_FORMATS const.

const SUPPORTED_FORMATS = ['TabSeparated', 'TabSeparatedWithNames', 'CSV', 'CSVWithNames', 'JSONEachRow'];

Is this lib still maintain and would it be possible to add this CSVWithNamesAndTypes + TSVWithNamesAndTypes ?

If I can contribute, let me know.

isublimity commented 8 months ago

Please test - must be work

jeanatpi commented 8 months ago

I'll give a try. Thanks!

jeanatpi commented 8 months ago

@isublimity I can confirm, it works!