You are not logged in.
Pages: 1
I have a client/server application in my company, and this works with Borland Socket Server (both in Delphi 7), and I want upgrade the server to work with mORMot.
The server has a only purpose, connect with data base, because all business rules are in DB or in client (yes, its sucks, but it's my scenario).
Can I do this with mORMot?
Offline
Yes you can!
As stated by the documentation, and the ReadMe.txt file, you can use only some "bricks" of the framework, without the need of using the ORM.
See "13 - StandAlone JSON SQL server" sub-folder for a rough sample of remote SQL statement execution.
Or "16 - Execute SQL via services" for a more versatile sample, using interface-based service.
As you will see in both samples, the code needed to do it is pretty tiny.
Almost everything you need is already available in the framework.
Both will allow remote execution via REST / HTTP / JSON, so it can be pretty convenient, even if you use not a Delphi client, but any REST client (including AJAX or mobile).
Offline
Thanks!
I don't have the samle "16 - Execute SQL via services", where i can get it?
I did the download through this link: http://synopse.info/files/mORMot.7z
My idea is start with a simple server to connect with database, and later make this big with more resources.
I will increase my participation in this forum now.
Offline
Hi Azeredobr,
I think you already have the sample, look into :
..\mORMot\SQLite3\Samples
Regards
Offline
No, just 1 to 15 samples and main demo.
Offline
better description of my scenario:
Currently We have:
A Server application where occurs comunication with the database.
A client application, where connect to the server through socket, is used a lot of ClientsDataSets (connected to Server) which accepts command text, and are used to make querys and insert/updates in database, and are linked to grids and other db tools (lookups, edits, etc). All this using only native components of Delphi 7. We already have DevExpress components, but we are not using yet.
My wish:
First a simple change of server, socket comes out and enters mORMot
Second, unit by unit, migrate to ORM.
Offline
Don't know if you have an old version, I just downloaded the nigthly build and the samples are there :
http://synopse.info/files/mORMotNightlyBuild.zip
Check it out
Offline
Thanks a lot!
I was in 1.17 version.
Edit: I will study more the documentation, and ask questions here.
Last edited by azeredobr (2014-03-13 03:36:03)
Offline
Pages: 1