Support multiple databases for db:table |
Hi,
I'm mostly working over multiple databases so what I miss is the Code: db:table Code: spark db:table I simply did PHP Code: /** in custom command to my purposes but it could be system feature. In case that nodoby (as I supose) wants to fill --db argument the default will be the value as I did in my purpose PHP Code: /**
Connecting to Multiple Databases
If you need to connect to more than one database simultaneously you can do so as follows: $db1 = \Config\Database::connect('group_one'); $db2 = \Config\Database::connect('group_two'); Note: Change the words group_one and group_two to the specific group names you are connecting to. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
The option --db seems fine.
Why don't you send a Pull Request? https://github.com/codeigniter4/CodeIgni...request.md |
Welcome Guest, Not a member yet? Register Sign In |