How to execute a random postgresql-query.

apz28 home at home.com
Tue Jun 29 21:13:10 UTC 2021


On Tuesday, 29 June 2021 at 20:35:07 UTC, Alain De Vos wrote:
>>
>> Some implementations take all queries full in memory.
>> But what when i need one record.
>> And the select result could be huge.
> And we don't want swapping for this?

You can try my db package
https://github.com/apz28/dlang/tree/main/source/pham/db
For Postresql, it is in "pham.db.pgdatabase" module. The document 
is a bit lacking but if you open that module and search for 
"executeReader();" for sample usage.
The implementation follow .NET interface and currently it is 
working for both Firebird and Postgresql database engines.
You need to download entire D package: 
https://github.com/apz28/dlang
Happy Codings


More information about the Digitalmars-d-learn mailing list