CreateDefinition
class CreateDefinition extends Component (View source)
Parses the create definition of a column or a key.
Used for parsing CREATE TABLE
statement.
Properties
static array | $FIELD_OPTIONS | All field options. | |
string | $name | The name of the new column. | |
bool | $isConstraint | Whether this field is a constraint or not. | |
DataType | $type | The data type of thew new column. | |
Key | $key | The key. | |
Reference | $references | The table that is referenced. | |
OptionsArray | $options | The options of this field. |
Methods
static mixed
static mixed
build(mixed $component, array $options = [])
No description
__construct(string $name = null, OptionsArray $options = null, DataType|Key $type = null, bool $isConstraint = false, Reference $references = null)
No description
Details
static mixed
parse(Parser $parser, TokensList $list, array $options = [])
static mixed
build(mixed $component, array $options = [])
string
__toString()
Builds the string representation of a component of this type.