Re: Proposed new libpq API

Поиск
Список
Период
Сортировка
От Timothy H. Keitt
Тема Re: Proposed new libpq API
Дата
Msg-id 3963D06A.A06F9882@nceas.ucsb.edu
обсуждение исходный текст
Ответ на Re: Proposed new libpq API  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
If I were implementing this in C++, I would have the result object
return a different generic STL iterator (forward, random access, etc.)
depending on how I wanted to access the data.  Perhaps you could emulate
this in C.  I generally don't like the one-interface-fits-all approach;
you get a much cleaner and extensible interface if you introduce a type
for each class of behavior being modeled.

T.

-- 
Timothy H. Keitt
National Center for Ecological Analysis and Synthesis
735 State Street, Suite 300, Santa Barbara, CA 93101
Phone: 805-892-2519, FAX: 805-892-2510
http://www.nceas.ucsb.edu/~keitt/


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Changes to handling version numbers internally
Следующее
От: Mike Mascari
Дата:
Сообщение: Re: update on TOAST status