

- #Free pascal convert timestamp to date how to#
- #Free pascal convert timestamp to date code#
- #Free pascal convert timestamp to date free#
There are regression tests supplied, which smells good for the future. Honestly, I see no feature that brook does, and mORMot does not.

I suspect we are comparing not apples and oranges, but apples and a fruit store. It is well designed, but since all "new born", it sounds pretty easy.īut mORMot feature list is much bigger than brook.
#Free pascal convert timestamp to date code#
With method-based services, you can also use another ORM, of course, than mORMot's internal.īut it is so much easier, and faster, to use mORMot's!Īnd you have interface-based services, which are much more powerful than the model used by Sinatra for writing an SOA.īut of course, brook has a much smaller code base. I suppose it will be quicker to implement than brook, since you have most of your needed features at hand.Īnd for the performance and scalability. Procedure TSQLRestServer.TimeStamp(Ctxt: TSQLRestServerURIContext) Ĭtxt.Returns(Int64ToUtf8(ServerTimeStamp),HTML_SUCCESS,TEXT_CONTENT_TYPE_HEADER) Įven in its current state, mORMot helps "quickly creating web-applications with minimal effort.". Procedure TSQLRestServer.Stat(Ctxt: TSQLRestServerURIContext) Ĭtxt.Returns(Stats.DebugMessage) // transmitted as JSON object What I said above doesn't remove my praise to mORMot, of course, but saying brook is a toy is far from fair.
#Free pascal convert timestamp to date free#
(well, I really wish mormot will fully support free Pascal in the near future!) In additional to **simplicity** (which has/is always a good thing and nowadays people embrace ), another benefit of Brook is **cross-platform**. Want to use another ORM or data persistence library? No problem, and most importantly - it's easy and simple from the coder's POV, since usually you can just plug-in an extension or module. That being said, the philosophies beyind all those Sinatra-inspired frameworks like brook are:Ī quote from the wikipedia: the goal is to "quickly creating web-applications with minimal effort." Probably this helps with mORMot's switching to Linux ?įor instance, the opf is a joke and features are pretty with respect, I think what you said is not fair to the brook framework.Īlthough I have not fully evaluated and test it, IIRC, just like Python's popular and elegant Flask web framework ( ), I guess Brook fro FPC is also inspired by the Sinatra framework for Ruby ( ).Īctually, almost every mainstream languages has one or more Sinatra-inspired web framework that are quite widely used, well, except Dephi ( (s … by_Sinatra) Stand alone service/daemon (with embedded daemon server). On a side effect, it is noted that Brook can run in four modes:ĬGI (with any HTTP server like Apache, nginx etc.) Lazarus wizards for installation and usage - With Lazarus, development is easier with the Brook wizards, only a few clicks are required to start and configure your Brook projects.Ĭould you help to share your opinions on it ? e.g., architectural, performance-wise, roadmap/future. Brook is powerful even if you don't use REST – but you will want to use it. REST architecture support – REST is an architecture able to simplify and standardize data requests and replies. You will really appreciate Brooks' good JSON support. JSON native support – JSON is widespred in the web for data exchange purposes. Less instantiations, less coding, with an elegant syntax. Integrated data persistance – Brook offers a table object where data can be handled.
#Free pascal convert timestamp to date how to#
Brook knows how to receive a request and choose the correct URL and the correct method to reply to it. Īdvanced routes management – Actions are performed by means of routes. It appears to be an interesting framework and just turns 3.0 (A lot of messages in fpc-pascal mail list today ).
