ivantcholakov / starter-public-edition-4

A PHP application starter, based on CodeIgniter 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Enhancement] Extending DB Drivers

a-h-abid opened this issue · comments

Liking your extended CI... pretty much everything we use in CI is there and mainly because of multisite support.

I'm looking for option to extend db drivers, which is even missing in main CI framework. So we structure it in same way as in system folder to extend in APP folder.

application/site/database/drivers/{driver_name}/

There are few functionality i want to add to my mysql driver, among them insert_duplicate_update() is one of them. And there is also this count_totals_from_last_query() + some more.

See if it can be done.

As I can see, you want to swap the database driver with your custom implementation. It is a legitime demand. I'll think about how this is to be implemented soon.

I think, the solution for you is ready.

Nice. That was fast, thanks :). I'll check and let know if any issues found.

Since @narfbg is going to implement this feature directly on a future version CodeIgniter 3, I don't see a reason for keeping this issue open.

Please, consider what I've proposed as a temporary solution.