Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zwacky/table-analyzer

Database column analyzer tool for the developer on the go
https://github.com/zwacky/table-analyzer

Last synced: 5 days ago
JSON representation

Database column analyzer tool for the developer on the go

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/zwacky/table-analyzer.png?branch=master)](https://travis-ci.org/zwacky/table-analyzer)

TableAnalyzer
=============

Database column analyzer tool for the developer on the go.

Usage
-----

```php
$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
}
```