Welcome Guest, Not a member yet? Register   Sign In
Database Extends
#1

Hi guys,

Is it possible to extend the Database Library?

The reason I want to extend is as follows;
1- Use of Master and Replica in Database Connection.
2- To process transactions on master or replica based on the style of query usage.

Usage style;
I use the master connection (Port 5432) for INSERT, UPDATE, DELETE, TRANSACTIONS queries.
I use the replica connection (Port 5433) for SELECT queries.

The reason I want to extend the database library is that I manually intervene in the CodeIgniter core files.
When a new version of CodeIgniter is released, I have to repeatedly change the core files.

Example database connection ports;
Master: 5432
Replica: 5433 - multiple replica nodes.
Built on CodeIgniter Framework All Projects
Thanks CI Love You Heart
Reply
#2

See https://forum.codeigniter.com/thread-782...83813.html
Reply




Theme © iAndrew 2016 - Forum software by © MyBB