Mormot name from Marmot, yes, groundhog, commonly known as Marmot, is an animal living in alpine regions. Most are active during the day, like to live in groups, good digging soil, dug tunnels deep up to several meters, there are grass-lined rooms, very comfortable. Usually the caves will have more than two entrances for safety. Instead of storing food, they store fat in the body during the summer to hibernate in the cave during the winter.
Mormot = Manage Object relational Mapping over Territory
One of the best open source projects in the Delphi ecosystem at the moment. This column is opened to provide a place for Mormot players to communicate.
Official website: http://synopse.info
Mormot is Https://codeload.github.com/synopse/mORMot/zip/master, the author's almost daily updates, so it is best to learn the use of SVN or git, to ensure the latest code.
git download command git clone https://github.com/synopse/mORMot.git--depth 1
The following is a brief introduction to Mormot:
1 syncommons Mormot Core unit, including encoding conversion, file reading, thread management, memory management, RTTI processing and other functions, commonly used the following two types of methods:
A realizes the mutual transformation between ansi,wide,utf8,hex,variant, URL encoding and decoding, base64 encoding and decoding.
B Anytextfiletostring,anytextfiletorawutf8,anytextfiletosynunicode read files, directory deletion, read file time and other functions.
2 syndb Mormot Data Processing core unit. Implement recordset and JSON objects, and convert recordsets to Rtti objects.
3 Syncrtsock, realize the basic socket operation of Mormot. The Synbidirsock implements Mormot-based websocket processing to implement WebSocket-based json,bin communication capabilities.
4 Data Processing Unit: SYNOLEDB processing Jet,mssql database, SynSQLite3, synsqlite3static, SynDBSQLite3 processing SQLITE3 database, can run without DLL. The Syndbremote unit can change the connection to a remote connection, allowing the customer to implement a remote HTTP database call. Syndbzeos Use the Zeos library to connect to the database, as well as the Syndbdataset directory of Unidac,firedac,bde and other connection methods.
5 other units: Synlog Log snap-in. Synlz,synlzo implements the LZ compression decompression processing. SYNDBMIDASVCL inherits the recordset control from TClientDataSet.
The above unit is only the basic processing unit of the Mormot, the Mormot ORM Framework actually uses the unit under the SQLite3 directory.
Mormot Usage Basics