#1 2017-12-19 10:37:36

wai-kit
Member
From: Amsterdam, the Netherlands
Registered: 2012-11-27
Posts: 90

How to find out persistence layer in TInjectableObjectRest?

Hi all,

I understand that it is possible to refer to the persistence layer in the implementation class of an interface when derived from
TInjectableObjectRest, through property Server.DB in case Server is TSQLRestServerDB. In this case the database is a SQLite3 database file?

When used with an external database server (VirtualTableExternalRegister), can I still refer to Server.DB (in TInjectableObjectRest)?
Also when the Rest server is of type TSQLServerRemoteDB, how do I find out the type of the database server?

Any pointers in the right direction much appreciated.
Thanks in advance.
Wai


fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...

Offline

#2 2017-12-27 12:51:52

wai-kit
Member
From: Amsterdam, the Netherlands
Registered: 2012-11-27
Posts: 90

Re: How to find out persistence layer in TInjectableObjectRest?

Nobody? Anybody?


fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...

Offline

#3 2017-12-27 13:28:11

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 333

Re: How to find out persistence layer in TInjectableObjectRest?

I think Server.db refer to SQLite3 database used by the framework, I use external databases (Firebird, MS SQL, Oracle, Informix) and I create TSQLDBConnectionProperties to refer them.


Esteban

Offline

Board footer

Powered by FluxBB