P
P
Pavel2018-09-03 01:35:22
PHP
Pavel, 2018-09-03 01:35:22

Should I write a wrapper for PDO?

Hello, for the purposes of self-education and practice, I decided to write a small MVC framework.
Before writing my ORM, I have not matured yet, so the question arose about writing a wrapper class for PDO, is the game worth the candle?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
DevMan, 2018-09-03
@Pavel333

pdo is rather primitive, and it won't work much on it.
but if you write a wrapper that will be more convenient for you than raw pdo, then go ahead.

A
Alex-1917, 2018-09-03
@alex-1917

It is not worth it. The shell will take just as much code...

6
65536, 2018-09-03
@65536

No

M
Marat, 2018-09-05
@Xakki

Do whatever you like with the work class, do logging in it, initialize the connection, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question