#1 2013-05-14 04:54:47

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

How to remove database support in mORMot?

Hi Arnaud,

This may sounds like a strange problem, but all I want to use is inter-process interface calls, like what the  "Demo 14 - Interface based services" demonstrated, and I don't need database support.

So I'm thinking of extracting that part from mORMot framework, would you give me some guides? Thanks!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2013-05-14 10:04:55

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

Re: How to remove database support in mORMot?

Just use TSQLRestServerFullMemory instead of TSQLRestServerDB.

Thanks to Delphi smart linking, it will use generate very little code overhead.
And you will still have all interface-based services features at hand, including authentication and security.

Offline

#3 2013-05-14 10:45:42

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: How to remove database support in mORMot?

Thanks Arnaud,

While little code overhead is good, what I actually want is a smaller codebase so that in the future it'll be easier to port to Free Pascal if I would ever need that.

How hard would that be?


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#4 2013-05-14 11:06:03

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

Re: How to remove database support in mORMot?

You will be stuck at lower level, i.e. in SynCommons.pas.

Un-coupling DB and services won't help you much for migration.

I highly consider finishing the FPC port of mORMot soon, when I see the XE4+ compiler roadmap.

Offline

#5 2013-05-14 11:15:18

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: How to remove database support in mORMot?

Good news Arnaud!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB