Page 1 of 1

why wxWidgets have no "official" support for datab

Posted: Wed Jun 09, 2010 4:43 pm
by evstevemd
Please don't tell me to ask developers, as it is just question not request :)
Why doesn't wx Have its own JDBC? Many app these days are DB driven but no official for wxWidgets. Is it inherited flaw from C++ itself?

I would like to hear your opinions

Posted: Wed Jun 09, 2010 4:47 pm
by Auria
I think the main rationale is that wxWidgets is a GUI toolkit, not an all-encompassing framework. So it has to make choices and concentrate on where to spend its limited resources

Posted: Thu Jun 10, 2010 12:42 am
by Frank
Also, there are toolkits that specialize in DB-Access. So why would you roll your own, when it could never be of the same quality as the specialized?

Posted: Thu Jun 10, 2010 4:11 am
by evstevemd
Frank wrote:Also, there are toolkits that specialize in DB-Access. So why would you roll your own, when it could never be of the same quality as the specialized?
would you point those ones for C++? I know JDBC for Java and MySQL Connector C++ but this one has no way to compile with my favorite MinGW. Not everybody wants to switch to MSVC :o

Posted: Thu Jun 10, 2010 10:08 am
by Frank
JDBC is Java's couterpart of ODBC in C. It's a generic, database independet API.

But there are C++ APIs too (don't know any, it's been some years since I looked. I rolled my own for DB2, because I wanted to use every trick to get the best performance out of DB2. No generic API for me, thanks). I remember one API, where the resultset is just another STL-Like-Container, very elegant. Don't remember it's name though...

Posted: Fri Jun 11, 2010 7:51 am
by Mojo
Auria wrote:I think the main rationale is that wxWidgets is a GUI toolkit, not an all-encompassing framework. So it has to make choices and concentrate on where to spend its limited resources
Of course, first of all wxWidgets is a GUI toolkit, but minimal database support probably should be has, as well as it has XML support...

Posted: Fri Jun 11, 2010 10:19 pm
by Auria
Mojo: if someone steps in and writes a great, solid, stable database layer for wx, and is ready to maintain it, I'm sure it will be welcome. Meanwhile, wx does not have enough developers for that :)

Posted: Sat Jun 12, 2010 6:11 am
by Mojo
Auria wrote:Mojo: if someone steps in and writes a great, solid, stable database layer for wx, and is ready to maintain it, I'm sure it will be welcome. Meanwhile, wx does not have enough developers for that :)
Sure :D I would make it with pleasure, but I'm afraid I don't have enough experience in database field :D hope in someday I'll get it and write a great, solid, stable database layer for wx. :D

Posted: Sat Jun 12, 2010 9:19 am
by utelle
Auria wrote:if someone steps in and writes a great, solid, stable database layer for wx, and is ready to maintain it, I'm sure it will be welcome.
There is the wxCode component DatabaseLayer developed by Joseph Blough providing a JDBC-like interface and supporting several database systems (i.e. FireBird, MySQL, ODBC, Oracle, OTL, Postgres, SQLite, and TDS).

Regards,

Ulrich

Re:

Posted: Sat Sep 10, 2011 8:16 am
by lollisoft
utelle wrote:
Auria wrote:if someone steps in and writes a great, solid, stable database layer for wx, and is ready to maintain it, I'm sure it will be welcome.
There is the wxCode component DatabaseLayer developed by Joseph Blough providing a JDBC-like interface and supporting several database systems (i.e. FireBird, MySQL, ODBC, Oracle, OTL, Postgres, SQLite, and TDS).

Regards,

Ulrich
I think of DatabaseLayer as a definition how to adapt database systems to wxWidgets. I think about using interfaces (pure abstract classes) instead of a layer between wxWidgets and database backends. But then you are responsible to do much more than writing the backend.

I would argue that DatabaseLayer IS the one to be used for wxWidgets based applications. The library has a stable interface - in my view - as there are many backends, and thus it would be my choice if I write a plain wxWidgets database app.

Regards,

Lothar