Download the PHP package donatj/mysql-schema without Composer

On this page you can find all versions of the php package donatj/mysql-schema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mysql-schema

Simple PHP MySQL Schema Model

Latest Stable Version License Scrutinizer Code Quality

Simple PHP MySQL Schema Model

Requirements

Installing

Install the latest version with:

Documentation

Class: donatj\MySqlSchema\Columns\AbstractColumn

Method: AbstractColumn->__construct

Parameters:

Method: AbstractColumn->getTables

Returns:

Method: AbstractColumn->getComment

Returns:

Method: AbstractColumn->setComment

Parameters:
Returns:

Method: AbstractColumn->isNullable

Returns:

Method: AbstractColumn->setNullable

Parameters:
Returns:

Method: AbstractColumn->getName

Returns:

Method: AbstractColumn->setName

Parameters:
Returns:

Method: AbstractColumn->toString

Parameters:
Returns:

Method: AbstractColumn->getTypeName

Returns:

Method: AbstractColumn->getDefault

Returns:

Method: AbstractColumn->setDefault

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Interfaces\CharsetColumnInterface

Method: CharsetColumnInterface->getCharset

Returns:

Method: CharsetColumnInterface->setCharset

Parameters:
Returns:

Method: CharsetColumnInterface->getCollation

Returns:

Method: CharsetColumnInterface->setCollation

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Interfaces\DecimalPlacesInterface

Method: DecimalPlacesInterface->getDecimalPlaces

Returns:

Method: DecimalPlacesInterface->setDecimalPlaces

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Interfaces\MaxDigitsInterface

Method: MaxDigitsInterface->getMaxDigits

Returns:

Method: MaxDigitsInterface->setMaxDigits

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Interfaces\OptionalLengthInterface

Method: OptionalLengthInterface->getLength

Returns:

Method: OptionalLengthInterface->setLength

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Interfaces\PrecisionInterface

Method: PrecisionInterface->getPrecision

Returns:

Method: PrecisionInterface->setPrecision

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Interfaces\RequiredLengthInterface

Method: RequiredLengthInterface->getLength

Returns:

Method: RequiredLengthInterface->setLength

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Interfaces\SignedInterface

Method: SignedInterface->isSigned

Returns:

Method: SignedInterface->setSigned

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Json\JsonColumn

Method: JsonColumn->getTypeName

Returns:

Method: JsonColumn->__construct

Parameters:

Method: JsonColumn->getTables

Returns:

Method: JsonColumn->getComment

Returns:

Method: JsonColumn->setComment

Parameters:
Returns:

Method: JsonColumn->isNullable

Returns:

Method: JsonColumn->setNullable

Parameters:
Returns:

Method: JsonColumn->getName

Returns:

Method: JsonColumn->setName

Parameters:
Returns:

Method: JsonColumn->toString

Parameters:
Returns:

Method: JsonColumn->getDefault

Returns:

Method: JsonColumn->setDefault

Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Numeric\AbstractFloatingColumn

Method: AbstractFloatingColumn->__construct

Parameters:

Method: AbstractFloatingColumn->getPrecision

Returns:

Method: AbstractFloatingColumn->setPrecision

Parameters:
Returns:

Method: AbstractFloatingColumn->getTables

Returns:

Method: AbstractFloatingColumn->getComment

Returns:

Method: AbstractFloatingColumn->setComment

Parameters:
Returns:

Method: AbstractFloatingColumn->isNullable

Returns:

Method: AbstractFloatingColumn->setNullable

Parameters:
Returns:

Method: AbstractFloatingColumn->getName

Returns:

Method: AbstractFloatingColumn->setName

Parameters:
Returns:

Method: AbstractFloatingColumn->toString

Parameters:
Returns:

Method: AbstractFloatingColumn->getTypeName

Returns:

Method: AbstractFloatingColumn->getDefault

Returns:

Method: AbstractFloatingColumn->setDefault

Parameters:
Returns:

Method: AbstractFloatingColumn->isSigned

Returns:

Method: AbstractFloatingColumn->setSigned

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn

Method: AbstractIntegerColumn->__construct

Parameters:

Method: AbstractIntegerColumn->getTables

Returns:

Method: AbstractIntegerColumn->getComment

Returns:

Method: AbstractIntegerColumn->setComment

Parameters:
Returns:

Method: AbstractIntegerColumn->isNullable

Returns:

Method: AbstractIntegerColumn->setNullable

Parameters:
Returns:

Method: AbstractIntegerColumn->getName

Returns:

Method: AbstractIntegerColumn->setName

Parameters:
Returns:

Method: AbstractIntegerColumn->toString

Parameters:
Returns:

Method: AbstractIntegerColumn->getTypeName

Returns:

Method: AbstractIntegerColumn->getDefault

Returns:

Method: AbstractIntegerColumn->setDefault

Parameters:
Returns:

Method: AbstractIntegerColumn->isSigned

Returns:

Method: AbstractIntegerColumn->setSigned

Parameters:

Method: AbstractIntegerColumn->getLength

Returns:

Method: AbstractIntegerColumn->setLength

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\AbstractNumberColumn

Method: AbstractNumberColumn->__construct

Parameters:

Method: AbstractNumberColumn->getTables

Returns:

Method: AbstractNumberColumn->getComment

Returns:

Method: AbstractNumberColumn->setComment

Parameters:
Returns:

Method: AbstractNumberColumn->isNullable

Returns:

Method: AbstractNumberColumn->setNullable

Parameters:
Returns:

Method: AbstractNumberColumn->getName

Returns:

Method: AbstractNumberColumn->setName

Parameters:
Returns:

Method: AbstractNumberColumn->toString

Parameters:
Returns:

Method: AbstractNumberColumn->getTypeName

Returns:

Method: AbstractNumberColumn->getDefault

Returns:

Method: AbstractNumberColumn->setDefault

Parameters:
Returns:

Method: AbstractNumberColumn->isSigned

Returns:

Method: AbstractNumberColumn->setSigned

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\FixedPoint\DecimalColumn

Method: DecimalColumn->__construct

Parameters:

Method: DecimalColumn->getTypeName

Returns:

Method: DecimalColumn->getMaxDigits

Returns:

Method: DecimalColumn->setMaxDigits

Parameters:
Returns:

Method: DecimalColumn->getDecimalPlaces

Returns:

Method: DecimalColumn->setDecimalPlaces

Parameters:
Returns:

Method: DecimalColumn->getTables

Returns:

Method: DecimalColumn->getComment

Returns:

Method: DecimalColumn->setComment

Parameters:
Returns:

Method: DecimalColumn->isNullable

Returns:

Method: DecimalColumn->setNullable

Parameters:
Returns:

Method: DecimalColumn->getName

Returns:

Method: DecimalColumn->setName

Parameters:
Returns:

Method: DecimalColumn->toString

Parameters:
Returns:

Method: DecimalColumn->getDefault

Returns:

Method: DecimalColumn->setDefault

Parameters:
Returns:

Method: DecimalColumn->isSigned

Returns:

Method: DecimalColumn->setSigned

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\FloatingPoint\DoubleColumn

Method: DoubleColumn->getTypeName

Returns:

Method: DoubleColumn->__construct

Parameters:

Method: DoubleColumn->getPrecision

Returns:

Method: DoubleColumn->setPrecision

Parameters:
Returns:

Method: DoubleColumn->getTables

Returns:

Method: DoubleColumn->getComment

Returns:

Method: DoubleColumn->setComment

Parameters:
Returns:

Method: DoubleColumn->isNullable

Returns:

Method: DoubleColumn->setNullable

Parameters:
Returns:

Method: DoubleColumn->getName

Returns:

Method: DoubleColumn->setName

Parameters:
Returns:

Method: DoubleColumn->toString

Parameters:
Returns:

Method: DoubleColumn->getDefault

Returns:

Method: DoubleColumn->setDefault

Parameters:
Returns:

Method: DoubleColumn->isSigned

Returns:

Method: DoubleColumn->setSigned

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\FloatingPoint\FloatColumn

Method: FloatColumn->getTypeName

Returns:

Method: FloatColumn->__construct

Parameters:

Method: FloatColumn->getPrecision

Returns:

Method: FloatColumn->setPrecision

Parameters:
Returns:

Method: FloatColumn->getTables

Returns:

Method: FloatColumn->getComment

Returns:

Method: FloatColumn->setComment

Parameters:
Returns:

Method: FloatColumn->isNullable

Returns:

Method: FloatColumn->setNullable

Parameters:
Returns:

Method: FloatColumn->getName

Returns:

Method: FloatColumn->setName

Parameters:
Returns:

Method: FloatColumn->toString

Parameters:
Returns:

Method: FloatColumn->getDefault

Returns:

Method: FloatColumn->setDefault

Parameters:
Returns:

Method: FloatColumn->isSigned

Returns:

Method: FloatColumn->setSigned

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\Integers\BigIntColumn

Method: BigIntColumn->getTypeName

Returns:

Method: BigIntColumn->__construct

Parameters:

Method: BigIntColumn->getTables

Returns:

Method: BigIntColumn->getComment

Returns:

Method: BigIntColumn->setComment

Parameters:
Returns:

Method: BigIntColumn->isNullable

Returns:

Method: BigIntColumn->setNullable

Parameters:
Returns:

Method: BigIntColumn->getName

Returns:

Method: BigIntColumn->setName

Parameters:
Returns:

Method: BigIntColumn->toString

Parameters:
Returns:

Method: BigIntColumn->getDefault

Returns:

Method: BigIntColumn->setDefault

Parameters:
Returns:

Method: BigIntColumn->isSigned

Returns:

Method: BigIntColumn->setSigned

Parameters:

Method: BigIntColumn->getLength

Returns:

Method: BigIntColumn->setLength

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\Integers\IntColumn

Method: IntColumn->getTypeName

Returns:

Method: IntColumn->__construct

Parameters:

Method: IntColumn->getTables

Returns:

Method: IntColumn->getComment

Returns:

Method: IntColumn->setComment

Parameters:
Returns:

Method: IntColumn->isNullable

Returns:

Method: IntColumn->setNullable

Parameters:
Returns:

Method: IntColumn->getName

Returns:

Method: IntColumn->setName

Parameters:
Returns:

Method: IntColumn->toString

Parameters:
Returns:

Method: IntColumn->getDefault

Returns:

Method: IntColumn->setDefault

Parameters:
Returns:

Method: IntColumn->isSigned

Returns:

Method: IntColumn->setSigned

Parameters:

Method: IntColumn->getLength

Returns:

Method: IntColumn->setLength

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\Integers\MediumIntColumn

Method: MediumIntColumn->getTypeName

Returns:

Method: MediumIntColumn->__construct

Parameters:

Method: MediumIntColumn->getTables

Returns:

Method: MediumIntColumn->getComment

Returns:

Method: MediumIntColumn->setComment

Parameters:
Returns:

Method: MediumIntColumn->isNullable

Returns:

Method: MediumIntColumn->setNullable

Parameters:
Returns:

Method: MediumIntColumn->getName

Returns:

Method: MediumIntColumn->setName

Parameters:
Returns:

Method: MediumIntColumn->toString

Parameters:
Returns:

Method: MediumIntColumn->getDefault

Returns:

Method: MediumIntColumn->setDefault

Parameters:
Returns:

Method: MediumIntColumn->isSigned

Returns:

Method: MediumIntColumn->setSigned

Parameters:

Method: MediumIntColumn->getLength

Returns:

Method: MediumIntColumn->setLength

Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\Integers\SmallIntColumn

Method: SmallIntColumn->getTypeName

Returns:

Method: SmallIntColumn->__construct

Parameters:

Method: SmallIntColumn->getTables

Returns:

Method: SmallIntColumn->getComment

Returns:

Method: SmallIntColumn->setComment

Parameters:
Returns:

Method: SmallIntColumn->isNullable

Returns:

Method: SmallIntColumn->setNullable

Parameters:
Returns:

Method: SmallIntColumn->getName

Returns:

Method: SmallIntColumn->setName

Parameters:
Returns:

Method: SmallIntColumn->toString

Parameters:
Returns:

Method: SmallIntColumn->getDefault

Returns:

Method: SmallIntColumn->setDefault

Parameters:
Returns:

Method: SmallIntColumn->isSigned

Returns:

Method: SmallIntColumn->setSigned

Parameters:

Method: SmallIntColumn->getLength

Returns:

Method: SmallIntColumn->setLength

function setLength([ $length = null])
Parameters:

Class: donatj\MySqlSchema\Columns\Numeric\Integers\TinyIntColumn

Method: TinyIntColumn->getTypeName

function getTypeName()
Returns:

Method: TinyIntColumn->__construct

function __construct($name)
Parameters:

Method: TinyIntColumn->getTables

function getTables()
Returns:

Method: TinyIntColumn->getComment

function getComment()
Returns:

Method: TinyIntColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: TinyIntColumn->isNullable

function isNullable()
Returns:

Method: TinyIntColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: TinyIntColumn->getName

function getName()
Returns:

Method: TinyIntColumn->setName

function setName($name)
Parameters:
Returns:

Method: TinyIntColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: TinyIntColumn->getDefault

function getDefault()
Returns:

Method: TinyIntColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: TinyIntColumn->isSigned

function isSigned()
Returns:

Method: TinyIntColumn->setSigned

function setSigned($signed)
Parameters:

Method: TinyIntColumn->getLength

function getLength()
Returns:

Method: TinyIntColumn->setLength

function setLength([ $length = null])
Parameters:

Class: donatj\MySqlSchema\Columns\String\AbstractCharacterColumn

Method: AbstractCharacterColumn->__construct

function __construct($name, $length)
Parameters:

Method: AbstractCharacterColumn->getTables

function getTables()
Returns:

Method: AbstractCharacterColumn->getComment

function getComment()
Returns:

Method: AbstractCharacterColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: AbstractCharacterColumn->isNullable

function isNullable()
Returns:

Method: AbstractCharacterColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: AbstractCharacterColumn->getName

function getName()
Returns:

Method: AbstractCharacterColumn->setName

function setName($name)
Parameters:
Returns:

Method: AbstractCharacterColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: AbstractCharacterColumn->getTypeName

function getTypeName()
Returns:

Method: AbstractCharacterColumn->getDefault

function getDefault()
Returns:

Method: AbstractCharacterColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: AbstractCharacterColumn->getCharset

function getCharset()
Returns:

Method: AbstractCharacterColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: AbstractCharacterColumn->getCollation

function getCollation()
Returns:

Method: AbstractCharacterColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Method: AbstractCharacterColumn->getLength

function getLength()
Returns:

Method: AbstractCharacterColumn->setLength

function setLength($length)
Parameters:

Class: donatj\MySqlSchema\Columns\String\AbstractStringColumn

Method: AbstractStringColumn->__construct

function __construct($name)
Parameters:

Method: AbstractStringColumn->getTables

function getTables()
Returns:

Method: AbstractStringColumn->getComment

function getComment()
Returns:

Method: AbstractStringColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: AbstractStringColumn->isNullable

function isNullable()
Returns:

Method: AbstractStringColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: AbstractStringColumn->getName

function getName()
Returns:

Method: AbstractStringColumn->setName

function setName($name)
Parameters:
Returns:

Method: AbstractStringColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: AbstractStringColumn->getTypeName

function getTypeName()
Returns:

Method: AbstractStringColumn->getDefault

function getDefault()
Returns:

Method: AbstractStringColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: AbstractStringColumn->getCharset

function getCharset()
Returns:

Method: AbstractStringColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: AbstractStringColumn->getCollation

function getCollation()
Returns:

Method: AbstractStringColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\String\AbstractTextColumn

Method: AbstractTextColumn->__construct

function __construct($name)
Parameters:

Method: AbstractTextColumn->getTables

function getTables()
Returns:

Method: AbstractTextColumn->getComment

function getComment()
Returns:

Method: AbstractTextColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: AbstractTextColumn->isNullable

function isNullable()
Returns:

Method: AbstractTextColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: AbstractTextColumn->getName

function getName()
Returns:

Method: AbstractTextColumn->setName

function setName($name)
Parameters:
Returns:

Method: AbstractTextColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: AbstractTextColumn->getTypeName

function getTypeName()
Returns:

Method: AbstractTextColumn->getDefault

function getDefault()
Returns:

Method: AbstractTextColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: AbstractTextColumn->getCharset

function getCharset()
Returns:

Method: AbstractTextColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: AbstractTextColumn->getCollation

function getCollation()
Returns:

Method: AbstractTextColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\String\Character\CharColumn

Method: CharColumn->getTypeName

function getTypeName()
Returns:

Method: CharColumn->__construct

function __construct($name, $length)
Parameters:

Method: CharColumn->getTables

function getTables()
Returns:

Method: CharColumn->getComment

function getComment()
Returns:

Method: CharColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: CharColumn->isNullable

function isNullable()
Returns:

Method: CharColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: CharColumn->getName

function getName()
Returns:

Method: CharColumn->setName

function setName($name)
Parameters:
Returns:

Method: CharColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: CharColumn->getDefault

function getDefault()
Returns:

Method: CharColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: CharColumn->getCharset

function getCharset()
Returns:

Method: CharColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: CharColumn->getCollation

function getCollation()
Returns:

Method: CharColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Method: CharColumn->getLength

function getLength()
Returns:

Method: CharColumn->setLength

function setLength($length)
Parameters:

Class: donatj\MySqlSchema\Columns\String\Character\VarcharColumn

Method: VarcharColumn->getTypeName

function getTypeName()
Returns:

Method: VarcharColumn->__construct

function __construct($name, $length)
Parameters:

Method: VarcharColumn->getTables

function getTables()
Returns:

Method: VarcharColumn->getComment

function getComment()
Returns:

Method: VarcharColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: VarcharColumn->isNullable

function isNullable()
Returns:

Method: VarcharColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: VarcharColumn->getName

function getName()
Returns:

Method: VarcharColumn->setName

function setName($name)
Parameters:
Returns:

Method: VarcharColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: VarcharColumn->getDefault

function getDefault()
Returns:

Method: VarcharColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: VarcharColumn->getCharset

function getCharset()
Returns:

Method: VarcharColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: VarcharColumn->getCollation

function getCollation()
Returns:

Method: VarcharColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Method: VarcharColumn->getLength

function getLength()
Returns:

Method: VarcharColumn->setLength

function setLength($length)
Parameters:

Class: donatj\MySqlSchema\Columns\String\Text\LongTextColumn

Method: LongTextColumn->getTypeName

function getTypeName()
Returns:

Method: LongTextColumn->__construct

function __construct($name)
Parameters:

Method: LongTextColumn->getTables

function getTables()
Returns:

Method: LongTextColumn->getComment

function getComment()
Returns:

Method: LongTextColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: LongTextColumn->isNullable

function isNullable()
Returns:

Method: LongTextColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: LongTextColumn->getName

function getName()
Returns:

Method: LongTextColumn->setName

function setName($name)
Parameters:
Returns:

Method: LongTextColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: LongTextColumn->getDefault

function getDefault()
Returns:

Method: LongTextColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: LongTextColumn->getCharset

function getCharset()
Returns:

Method: LongTextColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: LongTextColumn->getCollation

function getCollation()
Returns:

Method: LongTextColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\String\Text\MediumTextColumn

Method: MediumTextColumn->getTypeName

function getTypeName()
Returns:

Method: MediumTextColumn->__construct

function __construct($name)
Parameters:

Method: MediumTextColumn->getTables

function getTables()
Returns:

Method: MediumTextColumn->getComment

function getComment()
Returns:

Method: MediumTextColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: MediumTextColumn->isNullable

function isNullable()
Returns:

Method: MediumTextColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: MediumTextColumn->getName

function getName()
Returns:

Method: MediumTextColumn->setName

function setName($name)
Parameters:
Returns:

Method: MediumTextColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: MediumTextColumn->getDefault

function getDefault()
Returns:

Method: MediumTextColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: MediumTextColumn->getCharset

function getCharset()
Returns:

Method: MediumTextColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: MediumTextColumn->getCollation

function getCollation()
Returns:

Method: MediumTextColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\String\Text\TextColumn

Method: TextColumn->getTypeName

function getTypeName()
Returns:

Method: TextColumn->__construct

function __construct($name)
Parameters:

Method: TextColumn->getTables

function getTables()
Returns:

Method: TextColumn->getComment

function getComment()
Returns:

Method: TextColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: TextColumn->isNullable

function isNullable()
Returns:

Method: TextColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: TextColumn->getName

function getName()
Returns:

Method: TextColumn->setName

function setName($name)
Parameters:
Returns:

Method: TextColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: TextColumn->getDefault

function getDefault()
Returns:

Method: TextColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: TextColumn->getCharset

function getCharset()
Returns:

Method: TextColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: TextColumn->getCollation

function getCollation()
Returns:

Method: TextColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\String\Text\TinyTextColumn

Method: TinyTextColumn->getTypeName

function getTypeName()
Returns:

Method: TinyTextColumn->__construct

function __construct($name)
Parameters:

Method: TinyTextColumn->getTables

function getTables()
Returns:

Method: TinyTextColumn->getComment

function getComment()
Returns:

Method: TinyTextColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: TinyTextColumn->isNullable

function isNullable()
Returns:

Method: TinyTextColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: TinyTextColumn->getName

function getName()
Returns:

Method: TinyTextColumn->setName

function setName($name)
Parameters:
Returns:

Method: TinyTextColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: TinyTextColumn->getDefault

function getDefault()
Returns:

Method: TinyTextColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: TinyTextColumn->getCharset

function getCharset()
Returns:

Method: TinyTextColumn->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: TinyTextColumn->getCollation

function getCollation()
Returns:

Method: TinyTextColumn->setCollation

function setCollation($collation)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Temporal\AbstractTemporalColumn

Method: AbstractTemporalColumn->__construct

function __construct($name)
Parameters:

Method: AbstractTemporalColumn->getTables

function getTables()
Returns:

Method: AbstractTemporalColumn->getComment

function getComment()
Returns:

Method: AbstractTemporalColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: AbstractTemporalColumn->isNullable

function isNullable()
Returns:

Method: AbstractTemporalColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: AbstractTemporalColumn->getName

function getName()
Returns:

Method: AbstractTemporalColumn->setName

function setName($name)
Parameters:
Returns:

Method: AbstractTemporalColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: AbstractTemporalColumn->getTypeName

function getTypeName()
Returns:

Method: AbstractTemporalColumn->getDefault

function getDefault()
Returns:

Method: AbstractTemporalColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Temporal\DateTimeColumn

Method: DateTimeColumn->getTypeName

function getTypeName()
Returns:

Method: DateTimeColumn->__construct

function __construct($name)
Parameters:

Method: DateTimeColumn->getTables

function getTables()
Returns:

Method: DateTimeColumn->getComment

function getComment()
Returns:

Method: DateTimeColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: DateTimeColumn->isNullable

function isNullable()
Returns:

Method: DateTimeColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: DateTimeColumn->getName

function getName()
Returns:

Method: DateTimeColumn->setName

function setName($name)
Parameters:
Returns:

Method: DateTimeColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: DateTimeColumn->getDefault

function getDefault()
Returns:

Method: DateTimeColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Temporal\TimeColumn

Method: TimeColumn->getTypeName

function getTypeName()
Returns:

Method: TimeColumn->__construct

function __construct($name)
Parameters:

Method: TimeColumn->getTables

function getTables()
Returns:

Method: TimeColumn->getComment

function getComment()
Returns:

Method: TimeColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: TimeColumn->isNullable

function isNullable()
Returns:

Method: TimeColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: TimeColumn->getName

function getName()
Returns:

Method: TimeColumn->setName

function setName($name)
Parameters:
Returns:

Method: TimeColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: TimeColumn->getDefault

function getDefault()
Returns:

Method: TimeColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Temporal\TimestampColumn

Method: TimestampColumn->getTypeName

function getTypeName()
Returns:

Method: TimestampColumn->__construct

function __construct($name)
Parameters:

Method: TimestampColumn->getTables

function getTables()
Returns:

Method: TimestampColumn->getComment

function getComment()
Returns:

Method: TimestampColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: TimestampColumn->isNullable

function isNullable()
Returns:

Method: TimestampColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: TimestampColumn->getName

function getName()
Returns:

Method: TimestampColumn->setName

function setName($name)
Parameters:
Returns:

Method: TimestampColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: TimestampColumn->getDefault

function getDefault()
Returns:

Method: TimestampColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Class: donatj\MySqlSchema\Columns\Temporal\YearColumn

Method: YearColumn->__construct

function __construct($name [, $length = 4])
Parameters:

Method: YearColumn->setLength

function setLength($length)
Parameters:

Throws: \InvalidArgumentException

Returns:

Method: YearColumn->getTypeName

function getTypeName()
Returns:

Method: YearColumn->getTables

function getTables()
Returns:

Method: YearColumn->getComment

function getComment()
Returns:

Method: YearColumn->setComment

function setComment($comment)
Parameters:
Returns:

Method: YearColumn->isNullable

function isNullable()
Returns:

Method: YearColumn->setNullable

function setNullable($nullable)
Parameters:
Returns:

Method: YearColumn->getName

function getName()
Returns:

Method: YearColumn->setName

function setName($name)
Parameters:
Returns:

Method: YearColumn->toString

function toString(\donatj\MySqlSchema\Table $table)
Parameters:
Returns:

Method: YearColumn->getDefault

function getDefault()
Returns:

Method: YearColumn->setDefault

function setDefault($default)
Parameters:
Returns:

Method: YearColumn->getLength

function getLength()
Returns:

Class: donatj\MySqlSchema\Columns\Traits\OptionalLengthTrait

Method: OptionalLengthTrait->getLength

function getLength()
Returns:

Method: OptionalLengthTrait->setLength

function setLength([ $length = null])
Parameters:

Class: donatj\MySqlSchema\Columns\Traits\RequiredLengthTrait

Method: RequiredLengthTrait->getLength

function getLength()
Returns:

Method: RequiredLengthTrait->setLength

function setLength($length)
Parameters:

Class: donatj\MySqlSchema\Columns\Traits\SignedTrait

Method: SignedTrait->isSigned

function isSigned()
Returns:

Method: SignedTrait->setSigned

function setSigned($signed)
Parameters:

Class: donatj\MySqlSchema\Table

Method: Table->__construct

function __construct($name)

Table constructor.

Parameters:

Method: Table->getColumns

function getColumns()
Returns:

Method: Table->getComment

function getComment()
Returns:

Method: Table->setComment

function setComment($comment)
Parameters:
Returns:

Method: Table->getEngine

function getEngine()
Returns:

Method: Table->setEngine

function setEngine($engine)
Parameters:
Returns:

Method: Table->getName

function getName()
Returns:

Method: Table->setName

function setName($name)
Parameters:
Returns:

Method: Table->addAutoIncrement

function addAutoIncrement(\donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn $column)
Returns:

Method: Table->isAutoIncrement

function isAutoIncrement(\donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn $column)
Parameters:
Returns:

Method: Table->addPrimaryKey

function addPrimaryKey(\donatj\MySqlSchema\Columns\AbstractColumn $column)
Returns:

Method: Table->isPrimaryKey

function isPrimaryKey(\donatj\MySqlSchema\Columns\AbstractColumn $column)
Parameters:
Returns:

Method: Table->addKeyColumn

function addKeyColumn($keyName, \donatj\MySqlSchema\Columns\AbstractColumn $column [, $index = null [, $type = 'NORMAL' [, $method = '']]])
Parameters:
Returns:

Method: Table->addForeignKey

function addForeignKey(\donatj\MySqlSchema\Columns\AbstractColumn $local, \donatj\MySqlSchema\Columns\AbstractColumn $remote)
Returns:

Method: Table->addColumn

function addColumn(\donatj\MySqlSchema\Columns\AbstractColumn $column)
Returns:

Method: Table->toString

function toString()
Returns:

Method: Table->getCharset

function getCharset()
Returns:

Method: Table->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: Table->getCollation

function getCollation()
Returns:

Method: Table->setCollation

function setCollation($collation)
Parameters:
Returns:

Class: donatj\MySqlSchema\Traits\CharsetAndCollationTrait

Method: CharsetAndCollationTrait->getCharset

function getCharset()
Returns:

Method: CharsetAndCollationTrait->setCharset

function setCharset($charset)
Parameters:
Returns:

Method: CharsetAndCollationTrait->getCollation

function getCollation()
Returns:

Method: CharsetAndCollationTrait->setCollation

function setCollation($collation)
Parameters:
Returns:

Class: donatj\MySqlSchema\Traits\EscapeTrait


All versions of mysql-schema with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package donatj/mysql-schema contains the following files

Loading the files please wait ....