package Default
inherited_from \Zend\Db\Sql\Ddl\CreateTable

 Methods

__construct()

__construct(string $table = '', boolean $isTemporary = false
Inherited

Parameters

$table

string

$isTemporary

boolean

addColumn()

addColumn(\Zend\Db\Sql\Ddl\Column\ColumnInterface $column) : \Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$column

\Zend\Db\Sql\Ddl\Column\ColumnInterface

Returns

\Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator

addConstraint()

addConstraint(\Zend\Db\Sql\Ddl\Constraint\ConstraintInterface $constraint) : \Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$constraint

\Zend\Db\Sql\Ddl\Constraint\ConstraintInterface

Returns

\Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator

getRawState()

getRawState(string|null $key = null) : array
Inherited

Parameters

$key

stringnull

Returns

array

Get SQL string for statement

getSqlString(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform = null
Inherited
inherited_from \Zend\Db\Sql\SqlInterface::getSqlString()

Parameters

$adapterPlatform

isTemporary()

isTemporary() : boolean
Inherited

Returns

boolean

setSubject()

setSubject(\Zend\Db\Sql\Ddl\CreateTable $subject) : \Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator
inherited_from \Zend\Db\Sql\Platform\PlatformDecoratorInterface::setSubject()
fluent This method is part of a fluent interface and will return the same instance

Parameters

$subject

\Zend\Db\Sql\Ddl\CreateTable

Returns

\Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator

setTable()

setTable(string $name) : \Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$name

string

Returns

\Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator

setTemporary()

setTemporary(boolean $temporary) : \Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$temporary

boolean

Returns

\Zend\Db\Sql\Platform\SqlServer\Ddl\CreateTableDecorator

buildSqlString()

buildSqlString(\Zend\Db\Adapter\Platform\PlatformInterface $platform, null|\Zend\Db\Adapter\Driver\DriverInterface $driver = null, null|\Zend\Db\Adapter\ParameterContainer $parameterContainer = null) : string
Inherited

Parameters

$platform

\Zend\Db\Adapter\Platform\PlatformInterface

$driver

null\Zend\Db\Adapter\Driver\DriverInterface

$parameterContainer

null\Zend\Db\Adapter\ParameterContainer

Returns

string

createSqlFromSpecificationAndParameters()

createSqlFromSpecificationAndParameters(string|array $specifications, string|array $parameters) : string
Inherited

Parameters

$specifications

stringarray

$parameters

stringarray

Exceptions

\Zend\Db\Sql\Exception\RuntimeException

Returns

string

Copy variables from the subject into the local properties

localizeVariables() 
Inherited

processColumns()

processColumns(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform = null) : array<mixed,string[]> | null
Inherited

Parameters

$adapterPlatform

\Zend\Db\Adapter\Platform\PlatformInterface

Returns

array<mixed,string[]>null

processCombinedby()

processCombinedby(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform = null) : array | string
Inherited

Parameters

$adapterPlatform

\Zend\Db\Adapter\Platform\PlatformInterface

Returns

arraystring

processConstraints()

processConstraints(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform = null) : array<mixed,string[]> | null
Inherited

Parameters

$adapterPlatform

\Zend\Db\Adapter\Platform\PlatformInterface

Returns

array<mixed,string[]>null

processExpression()

processExpression(\Zend\Db\Sql\ExpressionInterface $expression, \Zend\Db\Adapter\Platform\PlatformInterface $platform, null|\Zend\Db\Adapter\Driver\DriverInterface $driver = null, null|\Zend\Db\Adapter\ParameterContainer $parameterContainer = null, null|string $namedParameterPrefix = null) : string
Inherited
staticvar int $runtimeExpressionPrefix

Parameters

$expression

\Zend\Db\Sql\ExpressionInterface

$platform

\Zend\Db\Adapter\Platform\PlatformInterface

$driver

null\Zend\Db\Adapter\Driver\DriverInterface

$parameterContainer

null\Zend\Db\Adapter\ParameterContainer

$namedParameterPrefix

nullstring

Exceptions

\Zend\Db\Sql\Exception\RuntimeException

Returns

string

processStatementEnd()

processStatementEnd(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform = null) : array<mixed,string>
Inherited

Parameters

$adapterPlatform

\Zend\Db\Adapter\Platform\PlatformInterface

Returns

array<mixed,string>

processSubSelect()

processSubSelect(\Zend\Db\Sql\Select $subselect, \Zend\Db\Adapter\Platform\PlatformInterface $platform, null|\Zend\Db\Adapter\Driver\DriverInterface $driver = null, null|\Zend\Db\Adapter\ParameterContainer $parameterContainer = null) : string
Inherited

Parameters

$subselect

\Zend\Db\Sql\Select

$platform

\Zend\Db\Adapter\Platform\PlatformInterface

$driver

null\Zend\Db\Adapter\Driver\DriverInterface

$parameterContainer

null\Zend\Db\Adapter\ParameterContainer

Returns

string

processTable()

processTable(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform = null) : array
inherited_from \Zend\Db\Sql\Ddl\CreateTable::processTable()

Parameters

$adapterPlatform

\Zend\Db\Adapter\Platform\PlatformInterface

Returns

array

processTable()

processTable(\Zend\Db\Adapter\Platform\PlatformInterface $adapterPlatform = null) : array<mixed,string>
Inherited

Parameters

$adapterPlatform

\Zend\Db\Adapter\Platform\PlatformInterface

Returns

array<mixed,string>

resolveColumnValue()

resolveColumnValue(null|array|\Zend\Db\Sql\ExpressionInterface|\Zend\Db\Sql\Select $column, \Zend\Db\Adapter\Platform\PlatformInterface $platform, null|\Zend\Db\Adapter\Driver\DriverInterface $driver = null, null|\Zend\Db\Adapter\ParameterContainer $parameterContainer = null, null|string $namedParameterPrefix = null) : string
Inherited

Parameters

$column

nullarray\Zend\Db\Sql\ExpressionInterface\Zend\Db\Sql\Select

$platform

\Zend\Db\Adapter\Platform\PlatformInterface

$driver

null\Zend\Db\Adapter\Driver\DriverInterface

$parameterContainer

null\Zend\Db\Adapter\ParameterContainer

$namedParameterPrefix

nullstring

Returns

string

resolveTable()

resolveTable(string|\Zend\Db\Sql\TableIdentifier|\Zend\Db\Sql\Select $table, \Zend\Db\Adapter\Platform\PlatformInterface $platform, \Zend\Db\Adapter\Driver\DriverInterface $driver = null, \Zend\Db\Adapter\ParameterContainer $parameterContainer = null) : string
Inherited

Parameters

$table

string\Zend\Db\Sql\TableIdentifier\Zend\Db\Sql\Select

$platform

\Zend\Db\Adapter\Platform\PlatformInterface

$driver

\Zend\Db\Adapter\Driver\DriverInterface

$parameterContainer

\Zend\Db\Adapter\ParameterContainer

Returns

string

 Properties

 

$columns

$columns : array<mixed,\Zend\Db\Sql\Ddl\Column\ColumnInterface>

Default

array()
 

$constraints

$constraints : array<mixed,string>

Default

array()
 

$instanceParameterIndex

$instanceParameterIndex : array

Default

array()
 

$isTemporary

$isTemporary : boolean

Default

false
 

$processInfo

$processInfo : string

Default

array('paramPrefix' => '', 'subselectCount' => 0)
 

Specifications for Sql String generation

$specifications : array<mixed,string> | array<mixed,array>

Default

array()
 

$subject

$subject : \Zend\Db\Sql\Ddl\CreateTable

Default

 

$table

$table : string

Default

''

 Constants

 

COLUMNS

COLUMNS = 'columns' 
 

CONSTRAINTS

CONSTRAINTS = 'constraints' 
 

TABLE

TABLE = 'table'