You are not logged in.
Pages: 1
Hello,
am trying out the nice brand new mORMot2 with Lazarus (2.1) and FPC 3.3.1.
Was able to compile and run the sample 01-StandAloneORM kindly converted by Martin Doyle.
However, the following will not compile as ExecuteList is not found for TRestClientDB.
Var
GG_globalClient: TRestClientDB;
sql_str :String;
data1 : TOrmTable;
sql_str := 'SELECT * FROM My_Table WHERE ...';
data1 := GG_globalClient.ExecuteList([], sql_str);
Am I missing something or is there currently no way to run free
SQL statements in mORMot2?
Any hints are much appreciated,
Sami
Offline
Many thanks, works very nicely!
Just had to add .orm in between:
GG_globalClient.Orm.ExecuteList([], sql_str);
Offline
Pages: 1