Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zwacky/table-analyzer
- Owner: zwacky
- License: mit
- Created: 2014-02-14T10:58:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-13T07:25:41.000Z (over 10 years ago)
- Last Synced: 2024-04-13T17:06:40.386Z (7 months ago)
- Language: PHP
- Size: 4.88 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```