B
B
bernex2014-05-29 10:48:15
MySQL
bernex, 2014-05-29 10:48:15

Database management library in PHP?

Tell me the library in which I could establish a connection, conveniently:
Create / Delete a table, columns, indexes.
Without writing a query, nice with OOP.
Now I'm looking at Doctrine, but the question is whether it will be able to delete and change the names of the columns.
Ideally, to also read and write data through it later.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-05-29
@bernex

Doctrine2 (more precisely, doctrine-migrate) can diff between table mapping to objects and the existing schema itself. That is, if you have fields in the table that the object does not have, then it will generate SQL for the drop.

A
Alexander Kubintsev, 2014-05-29
@akubintsev

You can try phinx, it is very convenient, but in some places it can still be damp. Develops actively.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question