This forum is reserved for everything you want to talk about. It could be about programming, opinions, open source programs, development in general, or just cool stuff to share!
-
evstevemd
- Part Of The Furniture

- Posts: 2293
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
-
Contact:
Post
by evstevemd » Wed Jun 09, 2010 4:43 pm
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
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 19.04/Windows 10 Pro/MacOS 10.13 - GCC/MinGW/Clang, CodeLite IDE]
-
Auria
- Site Admin

- Posts: 6695
- Joined: Thu Sep 28, 2006 12:23 am
-
Contact:
Post
by Auria » Wed Jun 09, 2010 4:47 pm
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
"Keyboard not detected. Press F1 to continue"
-- Windows
-
Frank
- Filthy Rich wx Solver

- Posts: 211
- Joined: Sat Jan 01, 2005 6:19 pm
Post
by Frank » Thu Jun 10, 2010 12:42 am
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?
-
evstevemd
- Part Of The Furniture

- Posts: 2293
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
-
Contact:
Post
by evstevemd » Thu Jun 10, 2010 4:11 am
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

Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 19.04/Windows 10 Pro/MacOS 10.13 - GCC/MinGW/Clang, CodeLite IDE]
-
Frank
- Filthy Rich wx Solver

- Posts: 211
- Joined: Sat Jan 01, 2005 6:19 pm
Post
by Frank » Thu Jun 10, 2010 10:08 am
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...
-
Mojo
- Super wx Problem Solver

- Posts: 401
- Joined: Wed Sep 21, 2005 8:17 am
- Location: Rostov-on-Don, Southern Russia
Post
by Mojo » Fri Jun 11, 2010 7:51 am
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...
Win XP HE SP3, Vista
Xubuntu 12.04 LTS
wxWidgets-2.9.5
wxWidgets-3.0.0
-
Auria
- Site Admin

- Posts: 6695
- Joined: Thu Sep 28, 2006 12:23 am
-
Contact:
Post
by Auria » Fri Jun 11, 2010 10:19 pm
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

"Keyboard not detected. Press F1 to continue"
-- Windows
-
Mojo
- Super wx Problem Solver

- Posts: 401
- Joined: Wed Sep 21, 2005 8:17 am
- Location: Rostov-on-Don, Southern Russia
Post
by Mojo » Sat Jun 12, 2010 6:11 am
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

I would make it with pleasure, but I'm afraid I don't have enough experience in database field

hope in someday I'll get it and write a great, solid, stable database layer for wx.

Win XP HE SP3, Vista
Xubuntu 12.04 LTS
wxWidgets-2.9.5
wxWidgets-3.0.0
-
utelle
- Moderator

- Posts: 1010
- Joined: Tue Jul 05, 2005 10:00 pm
- Location: Cologne, Germany
-
Contact:
Post
by utelle » Sat Jun 12, 2010 9:19 am
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
-
lollisoft
- Earned some good credits

- Posts: 115
- Joined: Sat Jul 23, 2005 3:52 pm
- Location: Germany
-
Contact:
Post
by lollisoft » Sat Sep 10, 2011 8:16 am
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
OS: Windows 7, Mac OS X (Panther/Leopard/Snow Leopard), SuSE Linux, Debian (PPC), OpenMoko FreeRunner
Compiler: OpenWatcom, GCC
wxWidgets 2.8.x
IDE Makefile based.
RAD My own brewed, Code generation with XSLT and DialogBlocks