What is the difference between an ORM and an ODM?

后端 未结 4 1780
旧巷少年郎
旧巷少年郎 2020-12-22 15:09

I am trying to figure out what the difference is between ORM and ODM, as far as I understand the concept, ORM (Object Relational Mapper) maps the relations between data, whe

4条回答
  •  伪装坚强ぢ
    2020-12-22 15:37

    Essencially, an ORM use a SQL database Driver like ODBC, JDBC or OLEDB to translate the object notation to relational notation and an ODM use a JSON or JSONB api to translate the Object notation to Document notation.

    There are different kind of implementations under the hood.

    PS: JSONB is a JSON text document notation stored in a binary format as used by MongoDB.

提交回复
热议问题