#1 2024-06-26 05:38:28

Junior/RO
Member
Registered: 2011-05-13
Posts: 209

Is there any conversion guide from mORMot 1 to mORMot 2?

I decided to port a code that works well with mORMot 1 to mORMot 2. It uses TSQLRecord, TDynArray, TDynArrayHashed, some functions from SynCrypto, and a Rest server.

I don't exactly know what are the equivalent units and types to those I have today in mORMot 1, hence the question: has any kind of conversion/migration guide been written?

Offline

#2 2024-06-26 10:32:15

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

Re: Is there any conversion guide from mORMot 1 to mORMot 2?

There is a paragraph in the README file of the repository.
https://github.com/synopse/mORMot2?tab= … n-practice

You can just copy & paste the mormot.* lines of one of the samples.
A quick search in the source would give you where a type is implemented.
TSQLRecord and such are still existing, but you would rather switch to the new naming like TOrm.

Offline

Board footer

Powered by FluxBB