smi2 / phpClickHouse

php ClickHouse wrapper
MIT License
750 stars 139 forks source link

How to check insertBatchFiles is finished #198

Closed jeanatpi closed 9 months ago

jeanatpi commented 11 months ago

Hi,

I'm using insertBatchFiles to insert multiple CSV files in 1 go.

Looking at the code, I'm not sure there's a way to check insert has been completed. Can you clarify / help?

isublimity commented 9 months ago

insertBatchFiles - return Statement[]

some like this


$dd=$db->insertBatchFiles(...)
foreach ($dd as $StatementX)
{
   $StatementX->isError()
   print_r($StatementX->info()....)
}