#1 2015-08-17 11:26:29

devol
Member
Registered: 2015-08-13
Posts: 6

The ORM on linux

Is the ORM on Linux fully functional? I saw a warleyalex youtube video where it works...
If yes, how can it be configured since TSQLDBZEOSConnectionProperties seems to work only on windows platform... (I must use Firebird db server)?

I ran TestSQL3 on a Xubuntu box (FPC 3.1.1) and I have a lot of mORMot failures raising EVariantError. Does this come from a compilation problem or is it "normal" (not yet implemented on Linux)?

Offline

#2 2015-08-17 12:06:04

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: The ORM on linux

After last commits, we also have EVariantError issues.
We will fix them soon.

Those won't affect the ORM part at all, nor most of the SOA, which work as expected.

FireBird is reported to work well with ZDBC (use latest 7.2 branch) under Linux, AFAIR.
I see no reason why it would not work only under Windows.

Offline

#3 2015-08-17 12:45:51

devol
Member
Registered: 2015-08-13
Posts: 6

Re: The ORM on linux

Many thanks ab to answer me so quickly, and thx for your opensource framework...

I can use ZEOS on Linux (using a TZConnection)

What I don't know/understand is how I can configure the mORMot ORM since SynDBZeos is only used on Windows Platform:

In TestSQL3.pas, SynDBZeos is used inside a {$ifdef MSWINDOWS} condition!

I failed trying to compile this unit on linux...

Offline

#4 2015-08-17 18:17:41

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: The ORM on linux

Try to use another sample using Zeos, e.g. start from https://github.com/synopse/mORMot/tree/ … M%20Server

Offline

#5 2015-08-18 08:04:25

devol
Member
Registered: 2015-08-13
Posts: 6

Re: The ORM on linux

ab wrote:

Try to use another sample using Zeos, e.g. start from https://github.com/synopse/mORMot/tree/ … M%20Server

I don't undersand... even using this example, the only way I know to configure the ORM with ZEOS/firebird is using TSQLDBZEOSConnectionProperties which is defined in SynDBZeos which is not portable (only available on Windows platform)

What am I missing????

Offline

#6 2015-08-18 09:19:40

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: The ORM on linux

Oups... you are right!
SynDBZeos is not tested under Linux yet.

Try with SynODBC + the FireBird ODBC provider.

But I guess that SynDBZeos under Linux would not be so much difficult to work with, since Zeos/ZDBC is FPC compatible AFAIK.

Offline

Board footer

Powered by FluxBB