CodeIgniter Forums
is there a way to get more metadata - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: is there a way to get more metadata (/showthread.php?tid=70078)



is there a way to get more metadata - vishok - 02-16-2018

according to documentation the only metadata we can get with this "$fields = $this->db->field_data('table_name');"
are $field->name; $field->type;$field->max_length;$field->primary_key; but is there a way to check if a field is required or a foreign key?

thanks


RE: is there a way to get more metadata - InsiteFX - 02-17-2018

Not with DBForge, but you can use an sql query to get t.

Using SQL to Manage Data