slims / slims9_bulian

SLiMS 9 Bulian official source code repository.
https://slims.web.id
GNU General Public License v3.0
173 stars 153 forks source link

SLiMS uses PDO or MySQLi for future? #212

Open superthin opened 1 year ago

superthin commented 1 year ago

It seems to SLiMS 9 Bulian are using both PDO and MySQLi? Or an abstraction DB like ADOdb?

Sometimes, I custom some codes for my library and I feel "something wrong", and I had to edit code lines , some cases it looked like PDO, and some case, it looks like MySQLi.

So, I have a question: Should I use PDO or MySQLi? (for compatble in the future when I want to upgrade current SLiMS to a newer version?). SLiMS's developers will support which?

drajathasan commented 1 year ago

Its up to you. Both of them is the best and written in OOP style. MySQLi has been implemented before SLiMS 9 Bulian, so its legacy feature. Yeah maybe PDO will be replacing MySQLi in future.

maybe you like this article : https://slims-web-id.translate.goog/docs/development-guide/Database/Intro/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-US&_x_tr_pto=wapp