donatj/mysql-schema

表示MySQL架构的对象层次

v0.1.0 2017-09-29 02:28 UTC

This package is auto-updated.

Last update: 2024-09-21 16:54:05 UTC


README

Latest Stable Version License Scrutinizer Code Quality

简单的PHP MySQL Schema模型

需求

  • php: >=5.4.0

安装

使用以下命令安装最新版本

composer require 'donatj/mysql-schema'

文档

类:\donatj\MySqlSchema\Columns\AbstractColumn

方法:AbstractColumn->__construct

function __construct($name)
参数
  • string $name

方法:AbstractColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:AbstractColumn->getComment

function getComment()
返回
  • string

方法:AbstractColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:AbstractColumn->isNullable

function isNullable()
返回
  • boolean

方法:AbstractColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:AbstractColumn->getName

function getName()
返回
  • string

方法:AbstractColumn->setName

function setName($name)
参数
  • string $name

方法:AbstractColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:AbstractColumn->getTypeName

function getTypeName()
返回
  • string

方法:AbstractColumn->getDefault

function getDefault()
返回
  • mixed

方法:AbstractColumn->setDefault

function setDefault($default)
参数
  • mixed $default

类:\donatj\MySqlSchema\Columns\Interfaces\CharsetColumnInterface

方法:CharsetColumnInterface->getCharset

function getCharset()
返回
  • null

方法:CharsetColumnInterface->setCharset

function setCharset($charset)
参数
  • null $charset

方法:CharsetColumnInterface->getCollation

function getCollation()
返回
  • null

方法:CharsetColumnInterface->setCollation

function setCollation($collation)
参数
  • null $collation

类:\donatj\MySqlSchema\Columns\Interfaces\OptionalLengthInterface

方法:OptionalLengthInterface->getLength

function getLength()
返回
  • int | null

方法:OptionalLengthInterface->setLength

function setLength([ $length = null])
参数
  • int | null $length

类:\donatj\MySqlSchema\Columns\Interfaces\RequiredLengthInterface

方法:RequiredLengthInterface->getLength

function getLength()
返回
  • int

方法:RequiredLengthInterface->setLength

function setLength($length)
参数
  • int $length

类:\donatj\MySqlSchema\Columns\Interfaces\SignedInterface

方法:SignedInterface->isSigned

function isSigned()
返回
  • boolean

方法:SignedInterface->setSigned

function setSigned($signed)
参数
  • boolean $signed

类:\donatj\MySqlSchema\Columns\Numeric\AbstractFractionColumn

方法:AbstractFractionColumn->__construct

function __construct($name, $decimals)
参数
  • string $name
  • int $decimals

方法:AbstractFractionColumn->getDecimals

function getDecimals()
返回
  • int

方法:AbstractFractionColumn->setDecimals

function setDecimals($decimals)
参数
  • int $decimals

方法:AbstractFractionColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:AbstractFractionColumn->getComment

function getComment()
返回
  • string

方法:AbstractFractionColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:AbstractFractionColumn->isNullable

function isNullable()
返回
  • boolean

方法:AbstractFractionColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:AbstractFractionColumn->getName

function getName()
返回
  • string

方法:AbstractFractionColumn->setName

function setName($name)
参数
  • string $name

方法:AbstractFractionColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:AbstractFractionColumn->getTypeName

function getTypeName()
返回
  • string

方法:AbstractFractionColumn->getDefault

function getDefault()
返回
  • mixed

方法:AbstractFractionColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:AbstractFractionColumn->getLength

function getLength()
返回
  • int | null

方法:AbstractFractionColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:AbstractFractionColumn->isSigned

function isSigned()
返回
  • boolean

方法:AbstractFractionColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

类:\donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn

方法:AbstractIntegerColumn->__construct

function __construct($name)
参数
  • string $name

方法:AbstractIntegerColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:AbstractIntegerColumn->getComment

function getComment()
返回
  • string

方法:AbstractIntegerColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:AbstractIntegerColumn->isNullable

function isNullable()
返回
  • boolean

方法:AbstractIntegerColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:AbstractIntegerColumn->getName

function getName()
返回
  • string

方法:AbstractIntegerColumn->setName

function setName($name)
参数
  • string $name

方法:AbstractIntegerColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:AbstractIntegerColumn->getTypeName

function getTypeName()
返回
  • string

方法:AbstractIntegerColumn->getDefault

function getDefault()
返回
  • mixed

方法:AbstractIntegerColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:AbstractIntegerColumn->getLength

function getLength()
返回
  • int | null

方法:AbstractIntegerColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:AbstractIntegerColumn->isSigned

function isSigned()
返回
  • boolean

方法:AbstractIntegerColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

类:\donatj\MySqlSchema\Columns\Numeric\AbstractNumberColumn

方法:AbstractNumberColumn->__construct

function __construct($name)
参数
  • string $name

方法:AbstractNumberColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:AbstractNumberColumn->getComment

function getComment()
返回
  • string

方法:AbstractNumberColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:AbstractNumberColumn->isNullable

function isNullable()
返回
  • boolean

方法:AbstractNumberColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:AbstractNumberColumn->getName

function getName()
返回
  • string

方法:AbstractNumberColumn->setName

function setName($name)
参数
  • string $name

方法:AbstractNumberColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:AbstractNumberColumn->getTypeName

function getTypeName()
返回
  • string

方法:AbstractNumberColumn->getDefault

function getDefault()
返回
  • mixed

方法:AbstractNumberColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:AbstractNumberColumn->getLength

function getLength()
返回
  • int | null

方法:AbstractNumberColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:AbstractNumberColumn->isSigned

function isSigned()
返回
  • boolean

方法:AbstractNumberColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

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

方法:DecimalColumn->getTypeName

function getTypeName()
返回
  • string

方法:DecimalColumn->__construct

function __construct($name, $decimals)
参数
  • string $name
  • int $decimals

方法:DecimalColumn->getDecimals

function getDecimals()
返回
  • int

方法:DecimalColumn->setDecimals

function setDecimals($decimals)
参数
  • int $decimals

方法:DecimalColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:DecimalColumn->getComment

function getComment()
返回
  • string

方法:DecimalColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:DecimalColumn->isNullable

function isNullable()
返回
  • boolean

方法:DecimalColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:DecimalColumn->getName

function getName()
返回
  • string

方法:DecimalColumn->setName

function setName($name)
参数
  • string $name

方法:DecimalColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:DecimalColumn->getDefault

function getDefault()
返回
  • mixed

方法:DecimalColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:DecimalColumn->getLength

function getLength()
返回
  • int | null

方法:DecimalColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:DecimalColumn->isSigned

function isSigned()
返回
  • boolean

方法:DecimalColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

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

方法:DoubleColumn->getTypeName

function getTypeName()
返回
  • string

方法:DoubleColumn->__construct

function __construct($name, $decimals)
参数
  • string $name
  • int $decimals

方法:DoubleColumn->getDecimals

function getDecimals()
返回
  • int

方法:DoubleColumn->setDecimals

function setDecimals($decimals)
参数
  • int $decimals

方法:DoubleColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:DoubleColumn->getComment

function getComment()
返回
  • string

方法:DoubleColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:DoubleColumn->isNullable

function isNullable()
返回
  • boolean

方法:DoubleColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:DoubleColumn->getName

function getName()
返回
  • string

方法:DoubleColumn->setName

function setName($name)
参数
  • string $name

方法:DoubleColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:DoubleColumn->getDefault

function getDefault()
返回
  • mixed

方法:DoubleColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:DoubleColumn->getLength

function getLength()
返回
  • int | null

方法:DoubleColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:DoubleColumn->isSigned

function isSigned()
返回
  • boolean

方法:DoubleColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

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

方法:FloatColumn->getTypeName

function getTypeName()
返回
  • string

方法:FloatColumn->__construct

function __construct($name, $decimals)
参数
  • string $name
  • int $decimals

方法:FloatColumn->getDecimals

function getDecimals()
返回
  • int

方法:FloatColumn->setDecimals

function setDecimals($decimals)
参数
  • int $decimals

方法:FloatColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:FloatColumn->getComment

function getComment()
返回
  • string

方法:FloatColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:FloatColumn->isNullable

function isNullable()
返回
  • boolean

方法:FloatColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:FloatColumn->getName

function getName()
返回
  • string

方法:FloatColumn->setName

function setName($name)
参数
  • string $name

方法:FloatColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:FloatColumn->getDefault

function getDefault()
返回
  • mixed

方法:FloatColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:FloatColumn->getLength

function getLength()
返回
  • int | null

方法:FloatColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:FloatColumn->isSigned

function isSigned()
返回
  • boolean

方法:FloatColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

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

方法:BigIntColumn->getTypeName

function getTypeName()
返回
  • string

方法:BigIntColumn->__construct

function __construct($name)
参数
  • string $name

方法:BigIntColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:BigIntColumn->getComment

function getComment()
返回
  • string

方法:BigIntColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:BigIntColumn->isNullable

function isNullable()
返回
  • boolean

方法:BigIntColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:BigIntColumn->getName

function getName()
返回
  • string

方法:BigIntColumn->setName

function setName($name)
参数
  • string $name

方法:BigIntColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:BigIntColumn->getDefault

function getDefault()
返回
  • mixed

方法:BigIntColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:BigIntColumn->getLength

function getLength()
返回
  • int | null

方法:BigIntColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:BigIntColumn->isSigned

function isSigned()
返回
  • boolean

方法:BigIntColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

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

方法:IntColumn->getTypeName

function getTypeName()
返回
  • string

方法:IntColumn->__construct

function __construct($name)
参数
  • string $name

方法:IntColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:IntColumn->getComment

function getComment()
返回
  • string

方法:IntColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:IntColumn->isNullable

function isNullable()
返回
  • boolean

方法:IntColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:IntColumn->getName

function getName()
返回
  • string

方法:IntColumn->setName

function setName($name)
参数
  • string $name

方法:IntColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:IntColumn->getDefault

function getDefault()
返回
  • mixed

方法:IntColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:IntColumn->getLength

function getLength()
返回
  • int | null

方法:IntColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:IntColumn->isSigned

function isSigned()
返回
  • boolean

方法:IntColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

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

方法:MediumIntColumn->getTypeName

function getTypeName()
返回
  • string

方法:MediumIntColumn->__construct

function __construct($name)
参数
  • string $name

方法:MediumIntColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:MediumIntColumn->getComment

function getComment()
返回
  • string

方法:MediumIntColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:MediumIntColumn->isNullable

function isNullable()
返回
  • boolean

方法:MediumIntColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:MediumIntColumn->getName

function getName()
返回
  • string

方法:MediumIntColumn->setName

function setName($name)
参数
  • string $name

方法:MediumIntColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:MediumIntColumn->getDefault

function getDefault()
返回
  • mixed

方法:MediumIntColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:MediumIntColumn->getLength

function getLength()
返回
  • int | null

方法:MediumIntColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:MediumIntColumn->isSigned

function isSigned()
返回
  • boolean

方法:MediumIntColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

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

方法:SmallIntColumn->getTypeName

function getTypeName()
返回
  • string

方法:SmallIntColumn->__construct

function __construct($name)
参数
  • string $name

方法:SmallIntColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:SmallIntColumn->getComment

function getComment()
返回
  • string

方法:SmallIntColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:SmallIntColumn->isNullable

function isNullable()
返回
  • boolean

方法:SmallIntColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:SmallIntColumn->getName

function getName()
返回
  • string

方法:SmallIntColumn->setName

function setName($name)
参数
  • string $name

方法:SmallIntColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:SmallIntColumn->getDefault

function getDefault()
返回
  • mixed

方法:SmallIntColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:SmallIntColumn->getLength

function getLength()
返回
  • int | null

方法:SmallIntColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:SmallIntColumn->isSigned

function isSigned()
返回
  • boolean

方法:SmallIntColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

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

方法:TinyIntColumn->getTypeName

function getTypeName()
返回
  • string

方法:TinyIntColumn->__construct

function __construct($name)
参数
  • string $name

方法:TinyIntColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:TinyIntColumn->getComment

function getComment()
返回
  • string

方法:TinyIntColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:TinyIntColumn->isNullable

function isNullable()
返回
  • boolean

方法:TinyIntColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:TinyIntColumn->getName

function getName()
返回
  • string

方法:TinyIntColumn->setName

function setName($name)
参数
  • string $name

方法:TinyIntColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:TinyIntColumn->getDefault

function getDefault()
返回
  • mixed

方法:TinyIntColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:TinyIntColumn->getLength

function getLength()
返回
  • int | null

方法:TinyIntColumn->setLength

function setLength([ $length = null])
参数
  • int | null $length

方法:TinyIntColumn->isSigned

function isSigned()
返回
  • boolean

方法:TinyIntColumn->setSigned

function setSigned($signed)
参数
  • boolean $signed

类:\donatj\MySqlSchema\Columns\String\AbstractCharacterColumn

方法:AbstractCharacterColumn->__construct

function __construct($name, $length)
参数
  • string $name
  • int $length

方法:AbstractCharacterColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:AbstractCharacterColumn->getComment

function getComment()
返回
  • string

方法:AbstractCharacterColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:AbstractCharacterColumn->isNullable

function isNullable()
返回
  • boolean

方法:AbstractCharacterColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:AbstractCharacterColumn->getName

function getName()
返回
  • string

方法:AbstractCharacterColumn->setName

function setName($name)
参数
  • string $name

方法:AbstractCharacterColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:AbstractCharacterColumn->getTypeName

function getTypeName()
返回
  • string

方法:AbstractCharacterColumn->getDefault

function getDefault()
返回
  • mixed

方法:AbstractCharacterColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:AbstractCharacterColumn->getCharset

function getCharset()
返回
  • null

方法:AbstractCharacterColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:AbstractCharacterColumn->getCollation

function getCollation()
返回
  • null

方法:AbstractCharacterColumn->setCollation

function setCollation($collation)
参数
  • null $collation

方法:AbstractCharacterColumn->getLength

function getLength()
返回
  • int

方法:AbstractCharacterColumn->setLength

function setLength($length)
参数
  • int $length

类:\donatj\MySqlSchema\Columns\String\AbstractStringColumn

方法:AbstractStringColumn->__construct

function __construct($name)
参数
  • string $name

方法:AbstractStringColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:AbstractStringColumn->getComment

function getComment()
返回
  • string

方法:AbstractStringColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:AbstractStringColumn->isNullable

function isNullable()
返回
  • boolean

方法:AbstractStringColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:AbstractStringColumn->getName

function getName()
返回
  • string

方法:AbstractStringColumn->setName

function setName($name)
参数
  • string $name

方法:AbstractStringColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:AbstractStringColumn->getTypeName

function getTypeName()
返回
  • string

方法:AbstractStringColumn->getDefault

function getDefault()
返回
  • mixed

方法:AbstractStringColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:AbstractStringColumn->getCharset

function getCharset()
返回
  • null

方法:AbstractStringColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:AbstractStringColumn->getCollation

function getCollation()
返回
  • null

方法:AbstractStringColumn->setCollation

function setCollation($collation)
参数
  • null $collation

类:\donatj\MySqlSchema\Columns\String\AbstractTextColumn

方法:AbstractTextColumn->__construct

function __construct($name)
参数
  • string $name

方法:AbstractTextColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:AbstractTextColumn->getComment

function getComment()
返回
  • string

方法:AbstractTextColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:AbstractTextColumn->isNullable

function isNullable()
返回
  • boolean

方法:AbstractTextColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:AbstractTextColumn->getName

function getName()
返回
  • string

方法:AbstractTextColumn->setName

function setName($name)
参数
  • string $name

方法:AbstractTextColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:AbstractTextColumn->getTypeName

function getTypeName()
返回
  • string

方法:AbstractTextColumn->getDefault

function getDefault()
返回
  • mixed

方法:AbstractTextColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:AbstractTextColumn->getCharset

function getCharset()
返回
  • null

方法:AbstractTextColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:AbstractTextColumn->getCollation

function getCollation()
返回
  • null

方法:AbstractTextColumn->setCollation

function setCollation($collation)
参数
  • null $collation

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

方法:CharColumn->getTypeName

function getTypeName()
返回
  • string

方法:CharColumn->__construct

function __construct($name, $length)
参数
  • string $name
  • int $length

方法:CharColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:CharColumn->getComment

function getComment()
返回
  • string

方法:CharColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:CharColumn->isNullable

function isNullable()
返回
  • boolean

方法:CharColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:CharColumn->getName

function getName()
返回
  • string

方法:CharColumn->setName

function setName($name)
参数
  • string $name

方法:CharColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:CharColumn->getDefault

function getDefault()
返回
  • mixed

方法:CharColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:CharColumn->getCharset

function getCharset()
返回
  • null

方法:CharColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:CharColumn->getCollation

function getCollation()
返回
  • null

方法:CharColumn->setCollation

function setCollation($collation)
参数
  • null $collation

方法:CharColumn->getLength

function getLength()
返回
  • int

方法:CharColumn->setLength

function setLength($length)
参数
  • int $length

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

方法:VarcharColumn->getTypeName

function getTypeName()
返回
  • string

方法:VarcharColumn->__construct

function __construct($name, $length)
参数
  • string $name
  • int $length

方法:VarcharColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:VarcharColumn->getComment

function getComment()
返回
  • string

方法:VarcharColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:VarcharColumn->isNullable

function isNullable()
返回
  • boolean

方法:VarcharColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:VarcharColumn->getName

function getName()
返回
  • string

方法:VarcharColumn->setName

function setName($name)
参数
  • string $name

方法:VarcharColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:VarcharColumn->getDefault

function getDefault()
返回
  • mixed

方法:VarcharColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:VarcharColumn->getCharset

function getCharset()
返回
  • null

方法:VarcharColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:VarcharColumn->getCollation

function getCollation()
返回
  • null

方法:VarcharColumn->setCollation

function setCollation($collation)
参数
  • null $collation

方法:VarcharColumn->getLength

function getLength()
返回
  • int

方法:VarcharColumn->setLength

function setLength($length)
参数
  • int $length

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

方法:LongTextColumn->getTypeName

function getTypeName()
返回
  • string

方法:LongTextColumn->__construct

function __construct($name)
参数
  • string $name

方法:LongTextColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:LongTextColumn->getComment

function getComment()
返回
  • string

方法:LongTextColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:LongTextColumn->isNullable

function isNullable()
返回
  • boolean

方法:LongTextColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:LongTextColumn->getName

function getName()
返回
  • string

方法:LongTextColumn->setName

function setName($name)
参数
  • string $name

方法:LongTextColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:LongTextColumn->getDefault

function getDefault()
返回
  • mixed

方法:LongTextColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:LongTextColumn->getCharset

function getCharset()
返回
  • null

方法:LongTextColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:LongTextColumn->getCollation

function getCollation()
返回
  • null

方法:LongTextColumn->setCollation

function setCollation($collation)
参数
  • null $collation

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

方法:MediumTextColumn->getTypeName

function getTypeName()
返回
  • string

方法:MediumTextColumn->__construct

function __construct($name)
参数
  • string $name

方法:MediumTextColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:MediumTextColumn->getComment

function getComment()
返回
  • string

方法:MediumTextColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:MediumTextColumn->isNullable

function isNullable()
返回
  • boolean

方法:MediumTextColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:MediumTextColumn->getName

function getName()
返回
  • string

方法:MediumTextColumn->setName

function setName($name)
参数
  • string $name

方法:MediumTextColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:MediumTextColumn->getDefault

function getDefault()
返回
  • mixed

方法:MediumTextColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:MediumTextColumn->getCharset

function getCharset()
返回
  • null

方法:MediumTextColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:MediumTextColumn->getCollation

function getCollation()
返回
  • null

方法:MediumTextColumn->setCollation

function setCollation($collation)
参数
  • null $collation

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

方法:TextColumn->getTypeName

function getTypeName()
返回
  • string

方法:TextColumn->__construct

function __construct($name)
参数
  • string $name

方法:TextColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:TextColumn->getComment

function getComment()
返回
  • string

方法:TextColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:TextColumn->isNullable

function isNullable()
返回
  • boolean

方法:TextColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:TextColumn->getName

function getName()
返回
  • string

方法:TextColumn->setName

function setName($name)
参数
  • string $name

方法:TextColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:TextColumn->getDefault

function getDefault()
返回
  • mixed

方法:TextColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:TextColumn->getCharset

function getCharset()
返回
  • null

方法:TextColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:TextColumn->getCollation

function getCollation()
返回
  • null

方法:TextColumn->setCollation

function setCollation($collation)
参数
  • null $collation

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

方法:TinyTextColumn->getTypeName

function getTypeName()
返回
  • string

方法:TinyTextColumn->__construct

function __construct($name)
参数
  • string $name

方法:TinyTextColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:TinyTextColumn->getComment

function getComment()
返回
  • string

方法:TinyTextColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:TinyTextColumn->isNullable

function isNullable()
返回
  • boolean

方法:TinyTextColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:TinyTextColumn->getName

function getName()
返回
  • string

方法:TinyTextColumn->setName

function setName($name)
参数
  • string $name

方法:TinyTextColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:TinyTextColumn->getDefault

function getDefault()
返回
  • mixed

方法:TinyTextColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:TinyTextColumn->getCharset

function getCharset()
返回
  • null

方法:TinyTextColumn->setCharset

function setCharset($charset)
参数
  • null $charset

方法:TinyTextColumn->getCollation

function getCollation()
返回
  • null

方法:TinyTextColumn->setCollation

function setCollation($collation)
参数
  • null $collation

类:\donatj\MySqlSchema\Columns\Temporal\AbstractTemporalColumn

方法:AbstractTemporalColumn->__construct

function __construct($name)
参数
  • string $name

方法:AbstractTemporalColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:AbstractTemporalColumn->getComment

function getComment()
返回
  • string

方法:AbstractTemporalColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:AbstractTemporalColumn->isNullable

function isNullable()
返回
  • boolean

方法:AbstractTemporalColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:AbstractTemporalColumn->getName

function getName()
返回
  • string

方法:AbstractTemporalColumn->setName

function setName($name)
参数
  • string $name

方法:AbstractTemporalColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:AbstractTemporalColumn->getTypeName

function getTypeName()
返回
  • string

方法:AbstractTemporalColumn->getDefault

function getDefault()
返回
  • mixed

方法:AbstractTemporalColumn->setDefault

function setDefault($default)
参数
  • mixed $default

类:\donatj\MySqlSchema\Columns\Temporal\DateTimeColumn

方法:DateTimeColumn->getTypeName

function getTypeName()
返回
  • string

方法:DateTimeColumn->__construct

function __construct($name)
参数
  • string $name

方法:DateTimeColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:DateTimeColumn->getComment

function getComment()
返回
  • string

方法:DateTimeColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:DateTimeColumn->isNullable

function isNullable()
返回
  • boolean

方法:DateTimeColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:DateTimeColumn->getName

function getName()
返回
  • string

方法:DateTimeColumn->setName

function setName($name)
参数
  • string $name

方法:DateTimeColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:DateTimeColumn->getDefault

function getDefault()
返回
  • mixed

方法:DateTimeColumn->setDefault

function setDefault($default)
参数
  • mixed $default

类:\donatj\MySqlSchema\Columns\Temporal\TimeColumn

方法:TimeColumn->getTypeName

function getTypeName()
返回
  • string

方法:TimeColumn->__construct

function __construct($name)
参数
  • string $name

方法:TimeColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:TimeColumn->getComment

function getComment()
返回
  • string

方法:TimeColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:TimeColumn->isNullable

function isNullable()
返回
  • boolean

方法:TimeColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:TimeColumn->getName

function getName()
返回
  • string

方法:TimeColumn->setName

function setName($name)
参数
  • string $name

方法:TimeColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:TimeColumn->getDefault

function getDefault()
返回
  • mixed

方法:TimeColumn->setDefault

function setDefault($default)
参数
  • mixed $default

类:\donatj\MySqlSchema\Columns\Temporal\TimestampColumn

方法:TimestampColumn->getTypeName

function getTypeName()
返回
  • string

方法:TimestampColumn->__construct

function __construct($name)
参数
  • string $name

方法:TimestampColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:TimestampColumn->getComment

function getComment()
返回
  • string

方法:TimestampColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:TimestampColumn->isNullable

function isNullable()
返回
  • boolean

方法:TimestampColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:TimestampColumn->getName

function getName()
返回
  • string

方法:TimestampColumn->setName

function setName($name)
参数
  • string $name

方法:TimestampColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:TimestampColumn->getDefault

function getDefault()
返回
  • mixed

方法:TimestampColumn->setDefault

function setDefault($default)
参数
  • mixed $default

类:\donatj\MySqlSchema\Columns\Temporal\YearColumn

方法:YearColumn->__construct

function __construct($name [, $length = 4])
参数
  • string $name
  • int $length - 2或4

方法:YearColumn->setLength

function setLength($length)
参数
  • int $length - 2或4

方法:YearColumn->getTypeName

function getTypeName()
返回
  • string

方法:YearColumn->getTables

function getTables()
返回
  • \donatj\MySqlSchema\Table[]

方法:YearColumn->getComment

function getComment()
返回
  • string

方法:YearColumn->setComment

function setComment($comment)
参数
  • string $comment

方法:YearColumn->isNullable

function isNullable()
返回
  • boolean

方法:YearColumn->setNullable

function setNullable($nullable)
参数
  • boolean $nullable

方法:YearColumn->getName

function getName()
返回
  • string

方法:YearColumn->setName

function setName($name)
参数
  • string $name

方法:YearColumn->toString

function toString($table)
参数
  • \donatj\MySqlSchema\Table $table
返回
  • string

方法:YearColumn->getDefault

function getDefault()
返回
  • mixed

方法:YearColumn->setDefault

function setDefault($default)
参数
  • mixed $default

方法:YearColumn->getLength

function getLength()
返回
  • int

类:\donatj\MySqlSchema\Columns\Traits\OptionalLengthTrait

方法:OptionalLengthTrait->getLength

function getLength()
返回
  • int | null

方法:OptionalLengthTrait->setLength

function setLength([ $length = null])
参数
  • int | null $length

类:\donatj\MySqlSchema\Columns\Traits\RequiredLengthTrait

方法:RequiredLengthTrait->getLength

function getLength()
返回
  • int

方法:RequiredLengthTrait->setLength

function setLength($length)
参数
  • int $length

类:\donatj\MySqlSchema\Columns\Traits\SignedTrait

方法:SignedTrait->isSigned

function isSigned()
返回
  • boolean

方法:SignedTrait->setSigned

function setSigned($signed)
参数
  • boolean $signed

类:\donatj\MySqlSchema\Table

方法:Table->__construct

function __construct($name)

Table 构造函数。

参数
  • string $name

方法:Table->getColumns

function getColumns()
返回
  • \donatj\MySqlSchema\Columns\AbstractColumn[]

方法:Table->getComment

function getComment()
返回
  • string

方法:Table->setComment

function setComment($comment)
参数
  • string $comment

方法:Table->getEngine

function getEngine()
返回
  • null

方法:Table->setEngine

function setEngine($engine)
参数
  • null $engine

方法:Table->getName

function getName()
返回
  • string

方法:Table->setName

function setName($name)
参数
  • string $name

未记录方法:Table->addAutoIncrement($column)

方法:Table->isAutoIncrement

function isAutoIncrement($column)
参数
  • \donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn $column
返回
  • bool

未记录方法:Table->addPrimaryKey($column)

方法:Table->isPrimaryKey

function isPrimaryKey($column)
参数
  • \donatj\MySqlSchema\Columns\AbstractColumn $column
返回
  • bool

未记录方法:Table->addKeyColumn($keyName, $column [, $index = null [, $type = 'NORMAL' [, $method = '']]])

未记录方法:Table->addForeignKey($local, $remote)

未记录方法:Table->addColumn($column)

未记录方法:Table->toString()

方法:Table->getCharset

function getCharset()
返回
  • null

方法:Table->setCharset

function setCharset($charset)
参数
  • null $charset

方法:Table->getCollation

function getCollation()
返回
  • null

方法:Table->setCollation

function setCollation($collation)
参数
  • null $collation

类:\donatj\MySqlSchema\Traits\CharsetAndCollationTrait

方法:CharsetAndCollationTrait->getCharset

function getCharset()
返回
  • null

方法:CharsetAndCollationTrait->setCharset

function setCharset($charset)
参数
  • null $charset

方法:CharsetAndCollationTrait->getCollation

function getCollation()
返回
  • null

方法:CharsetAndCollationTrait->setCollation

function setCollation($collation)
参数
  • null $collation

类:\donatj\MySqlSchema\Traits\EscapeTrait