dpeq - native PSQL extended query protocol client

denizzzka via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Sep 4 11:42:05 PDT 2017


On Monday, 4 September 2017 at 18:37:40 UTC, denizzzka wrote:
> On Monday, 4 September 2017 at 15:47:04 UTC, Boris-Barboris 
> wrote:
>> On Monday, 4 September 2017 at 15:40:47 UTC, denizzzka wrote:
>>> This is just internal function. Don't try to call it from 
>>> your application.
>>
>> I guess it's the Python curse
>>
>>> Oh... What is it:
>>> PARSE + BIND + EXEC + SYNC
>>> ?
>> Yeah, that's what I do currently, just write the whole command 
>> chain (same goes for transaction control statement, they take 
>> 15-20 bytes before\after actual commands, so no need to send 
>> them separately) when it's built, flush it to socket and block 
>> until all results come back, finalized by ReadyForQuery 
>> message.
>
> Probably, you don't need async socket operations here at all.

Oops, my mistake. This is wrong.


More information about the Digitalmars-d-announce mailing list