zwacky/table-analyzer

There is no license information available for the latest version (dev-master) of this package.

Database column analyzer tool for the developer on the go

dev-master 2014-05-13 07:25 UTC

This package is not auto-updated.

Last update: 2024-04-27 13:20:37 UTC


README

Build Status

TableAnalyzer

Database column analyzer tool for the developer on the go.

Usage

   $analyzer = new \Zwacky\TableAnalyzer\TableAnalyzer;
   $columns = $analyzer->getColumns('table_name');

returns an array of every column and their types, e.g.:

'content' => array(10) {
	'type' => string(4) "text"
	'length' => NULL
	'precision' => int(10)
	'scale' => int(0)
	'unsigned' => bool(false)
	'fixed' => bool(false)
	'notnull' => bool(true)
	'default' => bool(false)
	'autoincrement' => bool(false)
	'comment' => NULL
}