On Wednesday, 15 March 2017 at 09:18:16 UTC, Suliman wrote:
On Tuesday, 14 March 2017 at 13:36:04 UTC, Daniel Kozak wrote:
Dne 14.3.2017 v 14:21 Daniel Kozak napsal(a):
Dne 14.3.2017 v 14:13 Suliman via Digitalmars-d-learn
napsal(a):
I need to develop App that should work on Linux and Windows.
It need PostgreSQL driver. I tried Vadim's ddbc for
PostgreSQL but it's fail on x64 version of PostgreSQL and
possible will not on x64 PG on Linux (I can't test it now).
Could anybody advice me good driver without problems? I seen
some pg-wrapers on code.dlang.ru, but do not have test all
of them.
ddbc works fine for me
s/ddbc/ddb/
Am I rightn understand that DBRow! is allow to get only single
row, and if I need array of rows I need to use foreach? If I am
wrong could you provide an example please.
The retrieval of records is done via the execution of a
(prepared) sql query, that returns a range object (PGResultSet),
and the element of that range is the DBRow, in one of its form.
So, basically, the elements are retrieved on demand while you
popFront that range, leveraging what the PostgreSQL stream
protocol provide.
---
Paolo