difference between orm and pdo

后端 未结 2 1671
一生所求
一生所求 2021-01-31 04:54

I have a little confusion regarding difference between ORM and PDO?
Is PDO a kind of ORM?

ORM as per my understanding is basically a kind of data mapping and PDO als

2条回答
  •  温柔的废话
    2021-01-31 05:04

    No, they're different things.

    PDO is an abstraction layer for connections to SQL databases, so you can use the same code to work with MySQL, PostgreSQL etc.

    ORM is the concept of mapping database entities to objects. Doctrine is an example of a PHP ORM framework that supports various different ways of connecting to databases, one of which is PDO.

提交回复
热议问题