delphistored-proceduresfirebirdmormot

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 long to reimplement and move everything from the database to the application side.

I have no idea what to do. Anyone, please help to guide me on how to use - call Firebird stored procedures on mORMot. (It would be great if there is an example.)


Solution

  • Stored procedures are great to access the database directly, but they are a nightmare for modern design. So there is no direct/native way of running stored procedures in mORMot, because it doesn't make sense with an ORM design, and modern SOA/Microservices/DDD architecture.

    What you could do with mORMot and your existing project is for instance:

    Take a look at the documentation FAQ, and ask in the mORMot/Synopse forum.

    Check for instance: