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
6
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
  • 437
  • 1
  • 8
  • 16
4
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 Gradinaru
  • 2,824
  • 1
  • 26
  • 55
2
votes
0 answers

How to encrypt large files using SynCrypto?

SynCrypto is an open source data encryption library for Delphi and FPC included in SynPDF. I use this code for file encryption: var inputfile : RawByteString; outputfile: RawByteString; begin inputfile := StringFromFile('c:\test1.mp4'); …
Xel Naga
  • 826
  • 11
  • 28
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
  • 4,406
  • 5
  • 43
  • 72
2
votes
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
  • 155
  • 1
  • 9
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,065
  • 1
  • 17
  • 36
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
  • 325
  • 2
  • 12
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
  • 773
  • 1
  • 9
  • 26
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
  • 1,171
  • 8
  • 22
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,984
  • 19
  • 29
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
  • 2,105
  • 6
  • 28
  • 51
1
vote
1 answer

use Unigui with mORMot

I have tested Unigui, as Web Server,and i have used Mormot as DB Server I found this two framework amazing, My Question : is there possibility to use Unigui to have beautiful Ajax Browser and mORMot as DB Server Cans I merge Unigui and mORMot in…
kamel CHIKH
  • 31
  • 1
  • 4
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
1
2