SqlGenerator
in
The Sql interface
Tags
Table of Contents
Methods
- getColumnDefinition() : string
- Get column definition
- getColumnInfosFromField() : array<string|int, mixed>
- Get column information from $field
- getCreate() : string
- Get create SQL query
- getIncrementalChanges() : string|null
- Get changes with entity
- getIndexDefinition() : string
- Get index definition
Methods
getColumnDefinition()
Get column definition
public
getColumnDefinition(array<string|int, mixed> $fieldColumn, AbstractSqlAdapter $sqlAdapter[, bool $withPK = true ]) : string
Parameters
- $fieldColumn : array<string|int, mixed>
- $sqlAdapter : AbstractSqlAdapter
- $withPK : bool = true
Return values
stringgetColumnInfosFromField()
Get column information from $field
public
getColumnInfosFromField(FieldDescriptor $field) : array<string|int, mixed>
Parameters
- $field : FieldDescriptor
Return values
array<string|int, mixed>getCreate()
Get create SQL query
public
getCreate(EntityDescriptor $ed, AbstractSqlAdapter $sqlAdapter) : string
Parameters
- $ed : EntityDescriptor
- $sqlAdapter : AbstractSqlAdapter
Return values
stringgetIncrementalChanges()
Get changes with entity
public
getIncrementalChanges(EntityDescriptor $ed, AbstractSqlAdapter $sqlAdapter) : string|null
Parameters
- $ed : EntityDescriptor
- $sqlAdapter : AbstractSqlAdapter
Return values
string|nullgetIndexDefinition()
Get index definition
public
getIndexDefinition(object $index, AbstractSqlAdapter $sqlAdapter) : string
Parameters
- $index : object
- $sqlAdapter : AbstractSqlAdapter