wxPgSql

Do you like to promote your wxWidgets based application or component!? Post it here and let's see what the critics have to say. Also, if you found that ONE wx component the world needs to know about, put it here for future reference.
vlad
In need of some credit
In need of some credit
Posts: 6
Joined: Fri Oct 22, 2004 8:30 am
Contact:

Re: libpq and wxWidgets

Post by vlad » Tue Jun 21, 2005 10:00 am

buildere wrote:I just want to point out that pgAdminIII now supports OSX.
http://www.postgresql.org/about/news.342
Again, I encourage vlad to take a look into their sources. It look's like they have written a very good interface for access postgres trough different OS'es, and using wxWidgets at the same time.
I am look to pgAdminIII sources. API of pgAdminIII is very similar with API of my wxPgSql but have some extended methods (like pgConn::HasPrivilege(), pgConn::IsAlive() and pgConn::GetVersionString(), but these features can be simple implemented by wxPgSql).

pgAdminII code:

Code: Select all

        pgSet *set=ExecuteSet(wxT("SELECT * FROM table"));
        if (set) {
            while (!set->Eof()) {
                wxString str = set->GetVal(wxT("field"));
                set->MoveNext();
            }
            delete set;
        }
Mine wxPgSql code:

Code: Select all

wxPgResult r = db.Exec(wxT("SELECT * FROM table"));
  while ( r.Next() )
     wxString str = r.GetValue(wxT("field"));
r.Close();
PS: I think dynamic variable is better than pointer.

gururamnath
Moderator
Moderator
Posts: 466
Joined: Sat Sep 18, 2004 2:49 am
Location: California, USA

Re: wxPgSql

Post by gururamnath » Tue Jul 12, 2005 8:15 am

Hi,
This class looks cool. Can you guys add this library to the wxDBWrapper by Jean-Pierre ?
You can have a look at the common db wrapper suggest by him at

http://forums.wxwidgets.org/viewtopic.php?t=2820

He has already implemented SQLite and MySQL support to it. I'm sure having a unified DbWrapper for native drivers will certainly draw more attension to wx on the whole.

Vlad: I already sent a private msg to you, please let me know if this is possible.

Thanks,
Guru Kathiresan

gururamnath
Moderator
Moderator
Posts: 466
Joined: Sat Sep 18, 2004 2:49 am
Location: California, USA

Re: wxPgSql

Post by gururamnath » Fri Jul 22, 2005 9:02 pm

Hi Vlad,
I sent a private msg to you. Can you please let me know if you have seen it ?

Thanks,
Guru Kathiresan

Post Reply