Re: Relicensed and downloadable (Re: Protocol 3, Execute, maxrows to return, impact?)

Поиск
Список
Период
Сортировка
От Stephen R. van den Berg
Тема Re: Relicensed and downloadable (Re: Protocol 3, Execute, maxrows to return, impact?)
Дата
Msg-id 20080729140352.GA22186@cuci.nl
обсуждение исходный текст
Ответ на Relicensed and downloadable (Re: Protocol 3, Execute, maxrows to return, impact?)  ("Stephen R. van den Berg" <srb@cuci.nl>)
Список pgsql-hackers
Stephen R. van den Berg wrote:
>The fetch_row() function actually returns an array for each row, where
>the individual columns are already parsed and converted into the native
>Pike formats for handling.

A typical (low level) usage sequence in Pike looks like this:
  object db;  object q;  array row;
  db = Sql.pgsql("host","database","user","password");
  q = db->query("SELECT * FROM a");
  while(row = q->fetch_row())     write("Processing row %O\n",row);
  q = db->query("SELECT * FROM b");

etc.
-- 
Sincerely,          Stephen R. van den Berg.

"People who think they know everything are annoying to those of us who do."


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: Python 2.5 vs the buildfarm
Следующее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: [PATCHES] odd output in restore mode