Jump to content

set table with scheme prefix support

set_table scheme prefix scheme prefix multidb support support

  • Please log in to reply
No replies to this topic

#1 mckaygerhard



  • Members
  • PipPip
  • 16 posts

Posted 14 February 2017 - 04:01 PM

what method or piece of code in library i must modify to added support for scheme prefix in set_table function?:


// use db1 as db1 group

$crud-> set_table('pepetable')


this due if i changed to another db and want to consult and render amount of tables got in a trouble, so this does not work:


// swicth db2 as db2 group

$crud-> set_table('db1.pepetable')


lauch an exception


this to avoid configure too many gorups per db's, and only one group of db in codeigniter and access the tables as posibles if only will perform SELECTS querys


Also tagged with one or more of these keywords: set_table, scheme prefix, scheme, prefix, multidb support, support

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users