PHP code example of donatj / mysql-schema

1. Go to this page and download the library: Download donatj/mysql-schema library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

donatj / mysql-schema example snippets


function __construct($name)

function getTables()

function getComment()

function setComment($comment)

function isNullable()

function setNullable($nullable)

function getName()

function setName($name)

function toString(\donatj\MySqlSchema\Table $table)

function getTypeName()

function getDefault()

function setDefault($default)

function getCharset()

function setCharset($charset)

function getCollation()

function setCollation($collation)

function getDecimalPlaces()

function setDecimalPlaces($decimalPlaces)

function getMaxDigits()

function setMaxDigits($maxDigits)

function getLength()

function setLength([ $length = null])

function getPrecision()

function setPrecision($precision)

function getLength()

function setLength($length)

function isSigned()

function setSigned($signed)

function getTypeName() : string

function __construct($name)

function getTables()

function getComment()

function setComment($comment)

function isNullable()

function setNullable($nullable)

function getName()

function setName($name)

function toString(\donatj\MySqlSchema\Table $table)

function getDefault()

function setDefault($default)

function __construct($name, $precision)

function getPrecision()

function setPrecision($precision)

function getTables()

function getComment()

function setComment($comment)

function isNullable()

function setNullable($nullable)

function getName()

function setName($name)

function toString(\donatj\MySqlSchema\Table $table)

function getTypeName()

function getDefault()

function setDefault($default)

function isSigned()

function setSigned($signed)

function __construct($name)

function getTables()

function getComment()

function setComment($comment)

function isNullable()

function setNullable($nullable)

function getName()

function setName($name)

function toString(\donatj\MySqlSchema\Table $table)

function getTypeName()

function getDefault()

function setDefault($default)

function isSigned()

function setSigned($signed)

function getLength()

function setLength([ $length = null])

function __construct($name)

function getTables()

function getComment()

function setComment($comment)

function isNullable()

function setNullable($nullable)

function getName()

function setName($name)

function toString(\donatj\MySqlSchema\Table $table)

function getTypeName()

function getDefault()

function setDefault($default)

function isSigned()

function setSigned($signed)

function __construct($name, $maxDigits, $decimalPlaces)

function getTypeName()

function getMaxDigits()

function setMaxDigits($maxDigits)

function getDecimalPlaces()

function setDecimalPlaces($decimalPlaces)

function getTables()

function getComment()

function setComment($comment)

function isNullable()

function setNullable($nullable)

function getName()

function setName($name)

function toString(\donatj\MySqlSchema\Table $table)
php
function getDefault()
php
function setDefault($default)
php
function isSigned()
php
function setSigned($signed)
php
function getTypeName()
php
function __construct($name, $precision)
php
function getPrecision()
php
function setPrecision($precision)
php
function getTables()
php
function getComment()
php
function setComment($comment)
php
function isNullable()
php
function setNullable($nullable)
php
function getName()
php
function setName($name)
php
function toString(\donatj\MySqlSchema\Table $table)
php
function getDefault()
php
function setDefault($default)
php
function isSigned()
php
function setSigned($signed)
php
function getTypeName()
php
function __construct($name, $precision)
php
function getPrecision()
php
function setPrecision($precision)
php
function getTables()
php
function getComment()
php
function setComment($comment)
php
function isNullable()
php
function setNullable($nullable)
php
function getName()
php
function setName($name)
php
function toString(\donatj\MySqlSchema\Table $table)
php
function getDefault()
php
function setDefault($default)
php
function isSigned()
php
function setSigned($signed)
php
function getTypeName()
php
function __construct($name)
php
function getTables()
php
function getComment()
php
function setComment($comment)
php
function isNullable()
php
function setNullable($nullable)
php
function getName()
php
function setName($name)
php
function toString(\donatj\MySqlSchema\Table $table)
php
function getDefault()
php
function setDefault($default)
php
function isSigned()
php
function setSigned($signed)
php
function getLength()
php
function setLength([ $length = null])
php
function getTypeName()
php
function __construct($name)
php
function getTables()
php
function getComment()
php
function setComment($comment)
php
function isNullable()
php
function setNullable($nullable)
php
function getName()
php
function setName($name)
php
function toString(\donatj\MySqlSchema\Table $table)
php
function getDefault()
php
function setDefault($default)
php
function isSigned()
php
function setSigned($signed)
php
function getLength()
php
function setLength([ $length = null])
php
function getTypeName()
php
function __construct($name)
php
function getTables()
php
function getComment()
php
function setComment($comment)
php
function isNullable()
php
function setNullable($nullable)
php
function getName()
php
function setName($name)
php
function toString(\donatj\MySqlSchema\Table $table)
php
function getDefault()
php
function setDefault($default)
php
function isSigned()
php
function setSigned($signed)
php
function getLength()
php
function setLength([ $length = null])
php
function getTypeName()
php
function __construct($name)
php
function getTables()
php
function getComment()
php
function setComment($comment)
php
function isNullable()
php
function setNullable($nullable)
php
function getName()
php
function setName($name)
php
function toString(\donatj\MySqlSchema\Table $table)
php
function getDefault()
php
function setDefault($default)
php
function isSigned()
php
function setSigned($signed)
php
function getLength()