Re: [PHP-DEV] Possible RFC: PDOStatement::addBatch

2023-06-19 Thread mickmackusa
So if I'm not missing something, you want to add this new method to core to accommodate situations where: 1. the dev is too inexperienced to implement a pre-existing library and 2. the incoming 2d payload is not packaged as a csv file (and therefore cannot be directly imported as such) and 3. the

Re: [PHP-DEV] Possible RFC: PDOStatement::addBatch

2023-06-16 Thread Vinicius Dias
> Hi Vinicius, > > What would be the reason to add this? A reason cannot just be that there is > no such function. You can easily do it with a loop like you have just shown. > There isn't really any other way > unless we introduce some driver specific > SQL builder. So what would we gain from

Re: [PHP-DEV] Possible RFC: PDOStatement::addBatch

2023-06-14 Thread Benjamin Morel
On Wed, 14 Jun 2023 at 01:41, Vinicius Dias wrote: > Hello, folks. I hope you all are well. > > I was talking to friend about a feature I would like to see in PHP but > I mentioned that unfortunately I do not have the knowledge to try > implementing it myself, since it is not something very

Re: [PHP-DEV] Possible RFC: PDOStatement::addBatch

2023-06-14 Thread Kamil Tekiela
Hi Vinicius, What would be the reason to add this? A reason cannot just be that there is no such function. You can easily do it with a loop like you have just shown. There isn't really any other way unless we introduce some driver specific SQL builder. So what would we gain from it? Is it speed,

[PHP-DEV] Possible RFC: PDOStatement::addBatch

2023-06-13 Thread Vinicius Dias
Hello, folks. I hope you all are well. I was talking to friend about a feature I would like to see in PHP but I mentioned that unfortunately I do not have the knowledge to try implementing it myself, since it is not something very simple, so he mentioned that I could bring this discussion up to