libpq: Newbie help w/ data type conversions on queries and updates

Поиск
Список
Период
Сортировка
От Marvin Bellamy
Тема libpq: Newbie help w/ data type conversions on queries and updates
Дата
Msg-id 424ADDC0.8070603@innovision.com
обсуждение исходный текст
Ответы Re: libpq: Newbie help w/ data type conversions on  (jtv@xs4all.nl)
Список pgsql-interfaces
I'm coming from a Java background, so I'm relatively new to C/C++ in 
general.  I want to convert the data retrieved from a field to an 
"external" data type I can use; specifically a datetime or a timestamp.  
It looks like the only option for retrieving field data is as raw bytes, 
but I haven't found any information on mapping those byte streams to 
structures.

Also, is there any sort of a libpq API, or are you just stuck with 
perusing header files?

I had zero luck following the build instructions for libpqxx on Windows, 
so it looks like libpq is my only option for now.

-- 
Marvin Keith Bellamy
Software Engineer
Innovision Corporation
913.438.3200



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: DBD::PG question
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: DBD::Pg 1.41 beta testers needed