Questions tagged [mormot]

Synopse mORMot is an Open Source Client-Server ORM SOA MVC framework for Delphi 6 up to Delphi 10 Seattle and FPC, targeting Windows/Linux for servers, and any platform for clients (including mobile or AJAX).

More info: https://github.com/synopse/mORMot

24 questions
5
votes
1 answer

Example SQL queries in mORMot

I'm using Synopse mORMot to access a SQLite database from Delphi 7. I wish to establish a connection and query the database directly via SQL without using the ORM (Object-relational mapping) features of mORMot. Could you provide code examples which…
user1730626
  • 407
  • 1
  • 8
  • 16
3
votes
1 answer

How to select AES Encryption version from SynCrypto?

SynCrypto is a open source library for data encryption included in this pack. In this unit (SynCrypto.pas) is the following comment at the begining of file: AES128 cypher 84 MB/s uncypher 81 MB/s asm version AES128 cypher 57 MB/s …
Marus Nebunu
  • 2,510
  • 1
  • 15
  • 42
2
votes
1 answer

Delphi - mORMot : Installation went wrong. Automated Test Error on UTF8 test! How do I Fix this?

I added mORMot folders to Delphi's Library and tested if it works properly by running TestSQL3 in Folder SQLite3. And it shows Error at UTF8 ! - UTF8: 14,000 / 1,099,792 FAILED 1.15s How do I fix this? Please Help!! Thank you in advance. Synopse…
Pluem Saan
  • 25
  • 5
2
votes
2 answers

Automatically serializing a TObject to JSON using mormot

I am trying to serialize an TObject to JSON using the mORMot framework. Unfortunately, the result is always null. The class I am trying to serialize is: type ApmTime = class(TObject) private function currentTime() : String; published property…
BigONotation
  • 3,788
  • 4
  • 33
  • 57
2
votes
1 answer

Use mORMot Framework to send message between server and clients

mORMot Framework (www.synopse.info) have add support to WebSockets, on pack there is also a demo about WebSockets (sample 31). In this sample the client send a message to server and this reply with a new message to client. I'd like use this library…
Martin
  • 1,055
  • 14
  • 33
1
vote
1 answer

Default values for unknown elements in mORMot / Synopse JSON

I really love the way mORMot / Synopse has implemented the handling of JSON, especially the way you can use the JSON elements in your code (like MyString := myjson.name). This is very intuitive and useful in wrapping objects which only have one…
Laurens
  • 153
  • 1
  • 10
1
vote
1 answer

Delphi - mORMot Can not access data through client using full memory model and TSQLRestClientURI

I've been trying to start a new project using mORMOt the DDD-way and have created a few classes and begun to test one of them in an easy/simple way. I used the regression test code from your DDD-sample about TUser and modified it to suit my class…
larand
  • 685
  • 7
  • 18
1
vote
1 answer

How to serializing a generic TList to JSON using mormot

I want to serialize a generic TList to JSON using the mORMot framework. I know there is a TDynList which has a convenient method called SaveToJSON, but it not suit for me. This is my simple demo: program Project3; {$APPTYPE CONSOLE} {$R…
DDGG
  • 871
  • 5
  • 17
1
vote
1 answer

How can you create JSON manually using Delphi with the Mormot library?

I would like to generate JSON to represent complex object, manually (without any RTTI etc). Can this be done using Mormot (and how)? I have found the JSON Variant type, but that one does not seem to be capable of producing a complex JSON like the…
RM.
  • 1,863
  • 15
  • 24
1
vote
1 answer

What is real web-url for mORMot web-service?

Please help to understand about routing and web-url of web-service below. type TAirportService = class(TInterfacedObject, IAirportService) public procedure GetAirportDefinition(const AirPortID: integer; out Definition:…
SpanishBoy
  • 1,797
  • 4
  • 21
  • 43
1
vote
1 answer

Delphi mORMot. How to make mobile client (android,iOS)

I'm a new in mORMot. I made a mormot server and FMX client. It works on Win mode. Next I changed destination to Android and get an error. [DCC Fatal Error] SynCrtSock.pas(253): F2613 Unit 'Contnrs' not found (unit SynCrtSock;). {$R *.fmx} {$R…
Andy Birtman
  • 147
  • 1
  • 9
0
votes
0 answers

How to add new text into a previously added page using SynPdf

I'm generating a PDF file using SynPdf library in Delphi 10.3.3. I create a lot of pages, after everything finished, I need to write something into the first page (before saving to a file). How can I do this? Here is my code: procedure…
Andrzej
  • 458
  • 6
  • 16
0
votes
1 answer

How to use database stored procedures on mORMot?

I'm implementing an application using mORMot with Delphi from an existing client-server app that is using a Firebird database with a lot of stored procedures dealing with updating some tables and querying very complicated data. It would take too…
Pluem Saan
  • 25
  • 5
0
votes
1 answer

SynCrypto.pas and Lazarus compile problem

I'm trying to use SynCrypto.pas (part of Synopse mORMot ORM/SOA/MVC framework) in my Lazarus project to decrypt AES-128 stream. My project not compiling with errors in SynFPCTypInfo at this code: PFPCInterfaceData =…
Mistral
  • 1
  • 1
0
votes
1 answer

mORMot responding to HTTP requests on port 80 instead of IIS

The website of our company is running on IIS 7.5, recently and without any modifications in the configuration, the website start to give us the error 404, here is a picture of the error : the website work fine with HTTPS and HTTP on every port…
yasseros
  • 528
  • 3
  • 11
1
2