Best free database to use with PB to create shareware?

Everything else that doesn't fall into one of the other PB categories.
Noble Bell
User
User
Posts: 34
Joined: Sun Jun 04, 2006 8:49 pm
Location: Kentucky, USA
Contact:

Best free database to use with PB to create shareware?

Post by Noble Bell »

Hello again,

So, what would you say is the best and FREE database to use with PB? I have at my disposal: Tsunami and Cheetah. Is there something easier and better to use for shareware development?

Thanks in advance,
Thank you and God bless,
Noble D. Bell
http://www.noblesoftware.com
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

I use SQLite3 (PBOSL) in my programs.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

SQLite rules! :)
I may look like a mule, but I'm not a complete ass.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

It depends of what you need. Local or Distant database ?
you seems to speak about local ones, so there's also SQLite3 which is quite very good. Never tested Cheetah nor Tsunami but there are includes on the forum for them.

[EDIT]
3 votes for SQLite in 2 small minutes. :D SQLite win !
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Noble Bell
User
User
Posts: 34
Joined: Sun Jun 04, 2006 8:49 pm
Location: Kentucky, USA
Contact:

Post by Noble Bell »

Yes, it is looking that way to me. I might have to explore it a little more.
Thank you and God bless,
Noble D. Bell
http://www.noblesoftware.com
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

I'm a relative newbie to sqlite and selected it because of the overall level of support both here (primarily) and external.

Can't really speak for the others although I have heard some nice things about them all, sqlite seems to be the most popular (and supported) by the PB community.

That said, if you wander into 'blob" territory, the support level might drop a bit
:)

cheers
Noble Bell
User
User
Posts: 34
Joined: Sun Jun 04, 2006 8:49 pm
Location: Kentucky, USA
Contact:

Post by Noble Bell »

I am sure someone out there can point me to some excellent PB code that allows access to the SQLITE3 dll's, right? :wink:
Thank you and God bless,
Noble D. Bell
http://www.noblesoftware.com
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

I vote for SQLite3. It's fairly full-featured and if you use the PBOSL SQLite3 library, it's really got a short steep learning curve.
BERESHEIT
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Noble Bell wrote:I am sure someone out there can point me to some excellent PB code that allows access to the SQLITE3 dll's, right? :wink:
search for some of the offerings by fangbeast :)

cheers
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Recycling a topic rather than creating a new one (but changing tack a little).

How do you guys handle table maintenance in sqlite, specifically dropping a column from a table (which the docs appear to say sqlite does not support)?

Do you export everything except the unwanted column/field, then delete the table, create a new one and import? Or is there some simpler way?

Also, do you know if anyone has created a static lib for sqlite?

Thanks!
Dare2 cut down to size
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

I took a tip from Thorsten1867 (I think? :) ) in which he suggested that instead of battling SQLite's inability to natively drop a column, create a second table used to hold those columns for the first table which may be deleted at some point.

E.g.

MainTable <ID> <fixed col 1> <fixed col 2> ... etc.

SecondTable <ID> <column name> <column data>

The tables are linked by the ID fields.

This way, deleting a column simply involves deleting all records in the second table for which the <column name> field matches a given column name etc.

It works very well for me and avoids the hassle of creating temporary tables etc.
I may look like a mule, but I'm not a complete ass.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

MS Access engine as it comes with Windows. ODBC drivers are already to go and it's lightning fast. No extra baggage needed to package with your application.

Gets my vote every time.
Image Image
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Hi srod,

Thanks! I'll see if I can find the post covering that.
Dare2 cut down to size
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Access is pretty awful and has its own quirks and limitations. Also requires the ODBC use, which can cause issues if your users have different ODBC driver versions or different OSes that don't have the same MDAC installed.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Dare wrote:Hi srod,

Thanks! I'll see if I can find the post covering that.
Look all you like, but it was an exchange of e-mails! :)
I may look like a mule, but I'm not a complete ass.
Post Reply