Property | Type | Description | |
---|---|---|---|
$enum | is only used when isa = enum | ||
$isa | |||
$name | column name | ||
$notNull | Null is set to true by default. (I know MySQL set this as default if you don't specify the not null constraint) | ||
$onUpdate | right now this is only for timestamp column | ||
$primary | primary | ||
$set | is only used when isa = set | ||
$type | |||
$unsigned | unsigned |
Property | Type | Description | |
---|---|---|---|
$attributeTypes | array | ||
$attributes | array | The default attributes for a column. |
Method | Description | |
---|---|---|
__call ( $method, $args ) | ||
__construct ( $name = NULL, $type = NULL, array $extraAttributes = [] ) | ||
__get ( $name ) | ||
__get_state ( ) | ||
__isset ( $name ) | ||
__set ( $name, $value ) | ||
__set_state ( array $stash ) | ||
autoIncrement ( ) | ||
bigint ( $length = NULL ) | ||
binary ( $length = NULL ) | ||
bit ( $length = 1 ) | ||
blob ( ) | ||
bool ( ) | ||
boolean ( ) | ||
buildAutoIncrementClause ( |
||
buildDefaultClause ( |
||
buildDefinitionSql ( |
||
buildDefinitionSqlForModify ( |
||
buildEnumClause ( |
||
buildNullClause ( |
***** Clause builder ***** | |
buildPgSQLDefinitionSql ( |
||
buildPrimaryKeyClause ( |
||
buildSetClause ( |
||
buildTimeZoneClause ( |
||
buildTypeClause ( |
||
buildTypeName ( |
||
buildUniqueClause ( |
||
buildUnsignedClause ( |
||
char ( $length ) | ||
date ( ) | ********************************************** DateTime related types *********************************************** | |
datetime ( ) | ||
decimal ( $length = NULL, $decimals = NULL ) | ||
double ( $length = NULL, $decimals = NULL ) | PgSQL supports double, real. | |
enum ( $a ) | ||
float ( $length = NULL, $decimals = NULL ) | ||
getAttribute ( string $name ) | Which should be something like getAttribute($name) | |
getName ( ) | ||
getType ( ) | ||
int ( $length = NULL ) | ||
integer ( $length = NULL ) | ||
isa ( $isa ) | ||
longblob ( ) | ||
longtext ( ) | ||
mediumInt ( $length = NULL ) | ||
mediumblob ( ) | ||
mediumtext ( ) | ||
name ( $name ) | ||
notNull ( ) | ||
null ( ) | ||
nullDefined ( ) | ||
numeric ( $length = NULL, $decimals = NULL ) | ||
point ( ) | POINT type | |
primary ( $primary = true ) | ||
real ( $length = NULL, $decimals = NULL ) | ||
serial ( ) | serial type | |
set ( $a ) | ||
setAttribute ( $name, $value ) | ||
setAttributeStash ( array $attributes ) | ||
setAttributes ( array $attributes ) | ||
smallInt ( $length = NULL ) | ||
text ( ) | ||
time ( $timezone = true ) | ||
timestamp ( $timezone = true ) | mysql timestamp automatic initialization | |
timezone ( $bool = true ) | ||
tinyInt ( $length = NULL ) | ||
tinyblob ( ) | ||
toSql ( |
||
type ( $type ) | ||
unsigned ( $unsigned = true ) | ||
varchar ( $length ) | ||
year ( ) |
Method | Description | |
---|---|---|
setLengthInfo ( $length, $decimals = NULL ) | ******************************************************************* PROTECTED METHODS (internal use) ********************************************************************* |
public __construct ( $name = NULL, $type = NULL, array $extraAttributes = [] ) | ||
$extraAttributes | array |
public buildAutoIncrementClause ( |
||
$driver |
public buildDefaultClause ( |
||
$driver |
public buildDefinitionSql ( |
||
$driver | ||
$args | SQLBuilder\ArgumentArray |
public buildDefinitionSqlForModify ( |
||
$driver | ||
$args | SQLBuilder\ArgumentArray |
public buildEnumClause ( |
||
$driver |
public buildNullClause ( |
||
$driver |
public buildPgSQLDefinitionSql ( |
||
$driver | ||
$args | SQLBuilder\ArgumentArray |
public buildPrimaryKeyClause ( |
||
$driver |
public buildSetClause ( |
||
$driver |
public buildTimeZoneClause ( |
||
$driver |
public buildTypeClause ( |
||
$driver |
public buildTypeName ( |
||
$driver |
public buildUniqueClause ( |
||
$driver |
public buildUnsignedClause ( |
||
$driver |
public date ( ) |
public double ( $length = NULL, $decimals = NULL ) |
public getAttribute ( string $name ) | ||
$name | string | attribute name |
protected setLengthInfo ( $length, $decimals = NULL ) |
public timestamp ( $timezone = true ) |
public toSql ( |
||
$driver | ||
$args | SQLBuilder\ArgumentArray |
protected array $attributes | ||
return | array |
public $notNull |