2017 © Pedro Peláez
 

library schema-meta-info-helper

mysql schema meta data helper Edit

image

yonh/schema-meta-info-helper

mysql schema meta data helper Edit

  • Monday, July 9, 2018
  • by yonh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 17 % Grown

The README.md

SchemaMetaInfoHelper

Just A MySQL schema meta data helper class., (*1)

usage

install

composer require 'yonh/schema-meta-info-helper'

example

<?php
require __DIR__ . '/vendor/autoload.php';

$host = "localhost";
$user = "root";
$pass = "root";
$port = "3306";
$helper = new \Yonh\SchemaMetaInfoHelper\SchemaMetaInfoHelper($host, $user, $pass, $port);
$tables = $helper->getTables("db_name");
print_r($tables);

output, (*2)

Array (
    [test_table] => Array (
            [tableName] => test_table
            [tableComment] => this is a test table
            [columns] => Array (
                    [id] => Array (
                            [name] => id
                            [dataType] => mediumint
                            [type] => mediumint(9)
                            [columnDefault] =>
                            [columnComment] =>
                            [isNullable] =>
                            [autoIncrement] => 1
                        )
                    [name] => Array (
                            [name] => name
                            [dataType] => varchar
                            [type] => varchar(50)
                            [columnDefault] =>
                            [columnComment] => name
                            [isNullable] => 1
                            [autoIncrement] =>
                        )
                )
            [primaryKeys] => Array (
                    [0] => id
                )
            [uniqueIndexs] => Array ( )
        )
)

The Versions

09/07 2018

dev-master

9999999-dev

mysql schema meta data helper Edit

  Sources   Download

MIT

by Avatar yonh

10/10 2017

0.0.1

0.0.1.0

mysql schema meta data helper Edit

  Sources   Download

MIT

by Avatar yonh