#1 2018-02-22 17:40:18

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

MapField in non external table

Hi guys,

I using SQLite as DB.

Is possible to remap a field, without using a external table?

When i do:

AModels := TSQLModel.Create([TSQLBaby]);

AServer := TSQLRestServerDB.Create(AModels ,ADBFilePath,False, '');

AMyModels.Props[TSQLBaby].ExternalDB.MapField('ID','bay_cod');

I get, an exception.

Due to i not using a external db, right?

Last edited by macfly (2018-02-22 17:55:57)

Offline

#2 2018-02-22 22:11:15

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

Re: MapField in non external table

Yes, you need an external DB for that... there is no mapping with the main SQLite3 DB.

Offline

#3 2018-02-23 15:07:38

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

Re: MapField in non external table

Thanks for the reply!

Is there any way to use / simulate an external db even using SQLite?


Im time, i use packages and getting this warning:
[Warning] Exported package threadvar 'mORMot.ServiceContext' cannot be used outside of this package

mORMot unit are inside a single package only.
I can safely ignore this warning?

Offline

Board footer

Powered by FluxBB