package Default
inherited_from \Zend\Db\Sql\AbstractSql

 Methods

__construct()

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

Parameters

$table

string

$isTemporary

boolean

addColumn()

addColumn(\Zend\Db\Sql\Ddl\Column\ColumnInterface $column) : \Zend\Db\Sql\Ddl\CreateTable
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\Ddl\CreateTable

addConstraint()

addConstraint(\Zend\Db\Sql\Ddl\Constraint\ConstraintInterface $constraint) : \Zend\Db\Sql\Ddl\CreateTable
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\Ddl\CreateTable

getRawState()

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

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

Returns

boolean

setTable()

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

Parameters

$name

string

Returns

\Zend\Db\Sql\Ddl\CreateTable

setTemporary()

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

Parameters

$temporary

boolean

Returns

\Zend\Db\Sql\Ddl\CreateTable

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

Parameters

$adapterPlatform

\Zend\Db\Adapter\Platform\PlatformInterface

Returns

array<mixed,string[]>null

processCombinedby()

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

Parameters

$adapterPlatform

\Zend\Db\Adapter\Platform\PlatformInterface

Returns

arraystring

processConstraints()

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

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>

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<mixed,string>

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 

Default

array(self::TABLE => 'CREATE %1$sTABLE %2$s (', self::COLUMNS => array("\n %1\$s" => array(array(1 => '%1$s', 'combinedby' => ",\n "))), 'combinedBy' => ",", self::CONSTRAINTS => array("\n %1\$s" => array(array(1 => '%1$s', 'combinedby' => ",\n "))), 'statementEnd' => '%1$s')
inherited_from \Zend\Db\Sql\AbstractSql::specifications
 

Specifications for Sql String generation

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

Default

array()
 

$table

$table : string

Default

''

 Constants

 

COLUMNS

COLUMNS = 'columns' 
 

CONSTRAINTS

CONSTRAINTS = 'constraints' 
 

TABLE

TABLE = 'table'