Recent

Author Topic: A List of db's that are supported on all platforms.  (Read 10862 times)

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
A List of db's that are supported on all platforms.
« on: October 10, 2011, 02:04:41 am »
I am doing some R&D on DB's and Lazarus, my equation is: create a list of database engines that are supported on x86 and x64 Windows, Linux, and Mac.

So far I have confirmed:

1. JanSQL
2. DBF, and MemDS, BufDS ...
3. Firebird

surprisingly there are no others that actually work on all platforms.
I have also tried 3rd party libs, Zeos and UniDac (UniDac is heavily depended on Libc, could not make it even work Laz 9.30), and they have also failed to support all platforms.

And the most surprise is I could not find a working x64 sqlite3.dll that works on windows and mac. (linux was ok)

does anyone know any other DB's or libs that work on all platforms?

Thx

otorres

  • Jr. Member
  • **
  • Posts: 94
Re: A List of db's that are supported on all platforms.
« Reply #1 on: October 10, 2011, 02:35:14 am »
an application x64 need libraries x64, if you try to connect 64  bits application to Firebird client 32 bits get a error.

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: A List of db's that are supported on all platforms.
« Reply #2 on: October 10, 2011, 03:10:35 am »
Thx for the info, but Firebird works x86 and x64 :)

otorres

  • Jr. Member
  • **
  • Posts: 94
Re: A List of db's that are supported on all platforms.
« Reply #3 on: October 10, 2011, 04:54:39 am »
Thx for the info, but Firebird works x86 and x64 :)
Sure, for this cause is works fine for you =)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8831
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: A List of db's that are supported on all platforms.
« Reply #4 on: October 10, 2011, 06:38:26 am »
Quote
surprisingly there are no others that actually work on all platforms.
what? that's bad to hear... :o
I don't have mac, so I can only confirm on Win and Lin. These works fine:
  • SQLite 3 (on Mac too, a client asked me once, and he allowed me to use his Mac)
  • MySQL
  • PostgreSQL
« Last Edit: October 10, 2011, 08:37:23 am by Leledumbo »

Arbee

  • Full Member
  • ***
  • Posts: 223
Re: A List of db's that are supported on all platforms.
« Reply #5 on: October 10, 2011, 08:26:10 am »
For Windows and Mac I can confirm
  • PostgreSQL
  • Firebird
  • SQLite
  • H2 (a Java database that can be accessed using PostgreSQL ODBC driver)

Somehow - and I can't explain why - Firebird is my favorite.

I thereby assume that with "supported" you mean that the database server is running on the same platform - or even as localhost - as the Lazarus machine.  I have - for instance - been able to access a DB2 server running on Windows from my Mac with Lazarus.
1.0/2.6.0  XP SP3 & OS X 10.6.8

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: A List of db's that are supported on all platforms.
« Reply #6 on: October 10, 2011, 10:03:21 am »
thank you all guys, have you tried x86 and x84 on those platforms?

@Arbee
Have you tried SQLite x64? If yes, do you have a SQLite3.dll that you can share, I have not found one.

The list should contain db connections that were successful on all x86/x64 on Windows, Linux, and Mac. the server can be anywhere, just a proven list of laz db connections that work truly cross.

You will be surprised there are not much, so if your really want to write a true cross app with db support then you have no choice but to go with Firebird, because thats the only one I was able to confirm to work on all platforms.

BTW, I love Firebird!

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12535
  • FPC developer.
Re: A List of db's that are supported on all platforms.
« Reply #7 on: October 10, 2011, 11:38:44 am »
Somehow - and I can't explain why - Firebird is my favorite.

It depends much on what you are used to. Around 2000, I was looking for a database, and I had an old (powerpc) Mac as always-on machine. Firebird was still x86 only at that time, so I ended up with Postgresql.

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: A List of db's that are supported on all platforms.
« Reply #8 on: October 10, 2011, 11:52:02 pm »
Confirmed: SQLite works on all platforms x86/x64 :)

@dll sender
Thank you very much. May I ask which compiler you used, and did you have any special switches?

jwdietrich

  • Hero Member
  • *****
  • Posts: 1263
    • formatio reticularis
Re: A List of db's that are supported on all platforms.
« Reply #9 on: October 11, 2011, 08:11:45 am »
Do you know the Wiki article about databases (http://wiki.lazarus.freepascal.org/Databases)?

It may be a good idea to integrate the results of your investigations there.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 4.2.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: A List of db's that are supported on all platforms.
« Reply #10 on: October 11, 2011, 10:10:11 am »
yes, thats a good idea. I will update the Wiki as soon I am done with my list. :)

Tankard

  • New Member
  • *
  • Posts: 14
Re: A List of db's that are supported on all platforms.
« Reply #11 on: October 11, 2011, 04:41:51 pm »
@dll sender
Thank you very much. May I ask which compiler you used, and did you have any special switches?

just used the gcc 64bit compiler from http://mingw-w64.sourceforge.net/
no special switches

greetings
tankard

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: A List of db's that are supported on all platforms.
« Reply #12 on: October 11, 2011, 05:15:12 pm »
@tankard

OK, thats strange, we have tried to compile it with VS and it became like 1.2 MB big and we could not use it with lazarus.

Cool, I will download gcc now, thank you very much for this info ;)

 

TinyPortal © 2005-2018