Обсуждение: Driver for Gnome/GTK Applications.....

Поиск
Список
Период
Сортировка

Driver for Gnome/GTK Applications.....

От
"Landon Blake"
Дата:
I have recently moved to a Linux environment from Windows. I know that you can connect to PostgreSQL via JDBC with Java
andODBC with Microsoft programs, but what is the best way to connect to PostgreSQL from an application written to run
onLinux? I will most likely be writing the GUI with GTK and Gnome. Any suggestions? 

Thanks,

Landon


Re: Driver for Gnome/GTK Applications.....

От
David Stanaway
Дата:
Hi there,
libpq is the C client library for postgresql, and it is pretty well
documented, well designed and fast. There are some database abstraction
libraries also which you can use, including libodbc, libdbi and
libgnomedb

http://www.unixodbc.org/
http://libdbi.sourceforge.net/
http://www.gnome-db.org/

I haven't used any of these, although the perl dbi interface (Which I
think the C libdbi is influenced by) is something I have used, and it is
very good.

Maybe some other people have some experience with these abstraction
libraries and can say which to avoid etc.

On Thu, 2005-06-23 at 14:17 -0700, Landon Blake wrote:
> I have recently moved to a Linux environment from Windows. I know that you can connect to PostgreSQL via JDBC with
Javaand ODBC with Microsoft programs, but what is the best way to connect to PostgreSQL from an application written to
runon Linux? I will most likely be writing the GUI with GTK and Gnome. Any suggestions?
 
> 
> Thanks,
> 
> Landon
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
> 
-- 
David Stanaway <david@stanaway.net>


Re: Driver for Gnome/GTK Applications.....

От
Murray Cumming
Дата:
On Thu, 2005-06-23 at 14:17 -0700, Landon Blake wrote:
> I have recently moved to a Linux environment from Windows. I know that you can connect to PostgreSQL via JDBC with
Javaand ODBC with Microsoft programs, but what is the best way to connect to PostgreSQL from an application written to
runon Linux? I will most likely be writing the GUI with GTK and Gnome. Any suggestions?
 

I think you are looking for libgda, or one of the programming-language-
bindings for it.

-- 
Murray Cumming
murrayc@murrayc.com
www.murrayc.com
www.openismus.com