[Crossplatform] MySQL Wrapper

Share your advanced PureBasic knowledge/code with the community.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

I was looking for a "professional" database support. With ODBC you can already use mysql and such, but it's not build-in and can be problematic with crossplatform. The alternative to mysql is Postgresql which is an high peformance, totally free and reliable database server. So stay tuned :).
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post by Xombie »

I've been using PostgreSQL and PB at work for a very large project and have been extremely pleased with it. I use it natively rather than through ODBC.
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Post by Thalius »

i agree PGSQL is a very good Alternative while beeing Opensource. Also offers excellent performance. In some Points not that sophisticated as MySQL but if you dont need complex Transaction and Replication Mechanics then PG does the job aswell.
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone! ;)"
thanos
Enthusiast
Enthusiast
Posts: 423
Joined: Sat Jan 12, 2008 3:25 pm
Location: Greece
Contact:

Post by thanos »

Coolman wrote:+1, Firebird is an excellent choice 8)
+1
But it is not the easiest choice to run web sites.
At least for now.
Regards

Thanos
» myPersonal Banker :: Because you do not need to have a master degree in economics in order to organize your finances!
Coolman
Enthusiast
Enthusiast
Posts: 103
Joined: Sat Sep 03, 2005 4:07 pm

Post by Coolman »

For windows :

Firebird version 2.1.2 install = 7 mo
Firebird version 2.1.2 embedded (no install) = 5 mo

Postgresql version 8.4.0 zipped = 33 mo

the choice is quickly made, firebird seems more appropriate given the PureBasic a lightweight package ...

8)
*** Excuse my bad English, I uses has translating program ***
thanos
Enthusiast
Enthusiast
Posts: 423
Joined: Sat Jan 12, 2008 3:25 pm
Location: Greece
Contact:

Post by thanos »

Fred wrote:I was looking to integrate native mysql support to PB via a database plugin, and while browsing the libmysql sources, i saw it was licensed as GPL. After a few search on google, even PHP5 removed native support of mysql because of license constraint.

What does it means ? It means than if you use this lib (dll or statically linked) in a non-GPL program you have a to buy a license to mysql. That's quite disappointing for such a 'free' database manager. Just wanted to let you know to avoid bad surprises.
Fred,
what about Firebird?
Is it completely free, without any problems with its license, robust, almost zero administration etc.
Regards.

Thanos
» myPersonal Banker :: Because you do not need to have a master degree in economics in order to organize your finances!
Thalius
Enthusiast
Enthusiast
Posts: 711
Joined: Thu Jul 17, 2003 4:15 pm
Contact:

Post by Thalius »

Firebird & Postgres ( for advanced stuff ) would be nice. FireBird doesent have quiet that SQL Featureset. Postgres comes close to MySQL however versioning support could be a pain in the nards.

Maybe some kind of C# import converter would be a nifty idea - maybe one day ill do one if i need it. Currently i need to see that i dont burn out on wrapping stuff etc.

Currently planning a 3d strategy game framework for fun first anyway - tho ill use SQLite for that as its perfectly suitable and very comffy to use.

Cheers,
Thalius
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone! ;)"
t57042
Enthusiast
Enthusiast
Posts: 203
Joined: Fri Feb 22, 2008 12:28 pm
Location: Belgium

Re: [Crossplatform] MySQL Wrapper

Post by t57042 »

Why not use MARIADB?
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: [Crossplatform] MySQL Wrapper

Post by electrochrisso »

t57042 wrote:Why not use MARIADB?
Looks extremely bloated to me, definitely not an engine to be used for developing software that need to be downloaded and used by the general audience. :|
PureBasic! Purely the best 8)
infratec
Always Here
Always Here
Posts: 7583
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: [Crossplatform] MySQL Wrapper

Post by infratec »

electrochrisso wrote:Looks extremely bloated to me, definitely not an engine to be used for developing software that need to be downloaded and used by the general audience. :|
It's same 'bloated' as MySQL and Postgres.
So no reason to do it not.

Or should Fred remove Postgres because it's to bloated for the general audience :wink:

[ironic mode on]
Oh, and when I'm general too, he can also remove the complete 3D stuff from PB: I never used it up to now.
[ironic mode off]

Bernd
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: [Crossplatform] MySQL Wrapper

Post by electrochrisso »

infratec wrote:
electrochrisso wrote:Looks extremely bloated to me, definitely not an engine to be used for developing software that need to be downloaded and used by the general audience. :|
It's same 'bloated' as MySQL and Postgres.
So no reason to do it not.

Or should Fred remove Postgres because it's to bloated for the general audience :wink:

[ironic mode on]
Oh, and when I'm general too, he can also remove the complete 3D stuff from PB: I never used it up to now.
[ironic mode off]

Bernd
The 3D stuff is not bloated, its a fraction of a, MARIADB, 140mb download, for win32 and 260mb for win64, and it all fits into the PB installer, including the examples. I mean, hello, who is going to download, install, or even use these bloated DB when SQLite will do 99.9% of what is needed at under 1mb. :?:
PureBasic! Purely the best 8)
infratec
Always Here
Always Here
Posts: 7583
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: [Crossplatform] MySQL Wrapper

Post by infratec »

electrochrisso wrote:The 3D stuff is not bloated...
This was only an example, that not everything which is not usefull for you maybe useful for others :wink:
And If I have to add the directx dll it is also a bit 'bloated'.
electrochrisso wrote:...I mean, hello, who is going to download, install, or even use these bloated DB when SQLite will do 99.9% of what is needed at under 1mb. :?:
And if you write an application for a company you copy the sqlite database always arround from one PC to the next :?: :?: :?:
I always have to use Postgres or MySQL (ODBC or the dll depending on what the customer want)

Oh, that's my last comment about that.
[ironic mode on] I don't want to bloat this thread more than needed.[ironic mode off]
Live and Let live(Die)
Bernd
Post Reply