#1 2021-12-10 21:00:30

tbo
Member
Registered: 2015-04-20
Posts: 338

function TRestOrm.ExecuteJson()

mORMot2, commit 4af3b0f
Unit mormot.orm.rest, Line 1598

What is the purpose of the "Tables" parameter?

function TRestOrm.ExecuteJson(const Tables: array of TOrmClass;
  const SQL: RawUtf8; ForceAjax: boolean; ReturnedRowCount: PPtrInt): RawJson;
begin
  result := EngineList(SQL, ForceAjax, ReturnedRowCount);
end;

With best regards
Thomas

Offline

#2 2021-12-10 21:35:51

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

Re: function TRestOrm.ExecuteJson()

It is not used for a single table class like plain TRestOrm but in other implementation classes which are able to make a SQL joined with several tables.

Offline

#3 2021-12-11 10:34:13

tbo
Member
Registered: 2015-04-20
Posts: 338

Re: function TRestOrm.ExecuteJson()

Thank you for the explanation. I have previously searched for other overrides in the source code and found none. That's why I didn't know what to do with it.

Have a nice weekend.

With best regards
Thomas

Offline

Board footer

Powered by FluxBB