⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

set table with scheme prefix support



mckaygerhard
  • profile picture
  • Member

Posted 14 February 2017 - 16: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