PHP 클래스 LazyRecord\SqlBuilder\MysqlBuilder

상속: extends BaseBuilder
파일 보기 프로젝트 열기: corneltek/lazyrecord

공개 메소드들

메소드 설명
buildColumnSql ( LazyRecord\Schema\SchemaInterface $schema, DeclareColumn $column ) Override buildColumnSql to support inline reference.
buildForeignKeyConstraint ( Relationship $rel ) Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-foreign-key-constraints.html for correct foreign key definition.
createTable ( LazyRecord\Schema\SchemaInterface $schema )
dropTable ( LazyRecord\Schema\SchemaInterface $schema )
finalize ( )
prepare ( )

메소드 상세

buildColumnSql() 공개 메소드

MySQL Syntax: reference_definition: REFERENCES tbl_name (index_col_name,...) [MATCH FULL | MATCH PARTIAL | MATCH SIMPLE] [ON DELETE reference_option] [ON UPDATE reference_option] reference_option: RESTRICT | CASCADE | SET NULL | NO ACTION A reference example: PRIMARY KEY (idEmployee) , CONSTRAINT fkEmployee_Addresses FOREIGN KEY fkEmployee_Addresses (idAddresses) REFERENCES schema.Addresses (idAddresses) ON DELETE NO ACTION ON UPDATE NO ACTION FOREIGN KEY (order_uuid) REFERENCES orders(uuid)
public buildColumnSql ( LazyRecord\Schema\SchemaInterface $schema, DeclareColumn $column )
$schema LazyRecord\Schema\SchemaInterface
$column lazyrecord\schema\DeclareColumn

buildForeignKeyConstraint() 공개 메소드

Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-foreign-key-constraints.html for correct foreign key definition.
public buildForeignKeyConstraint ( Relationship $rel )
$rel LazyRecord\Schema\Relationship\Relationship

createTable() 공개 메소드

public createTable ( LazyRecord\Schema\SchemaInterface $schema )
$schema LazyRecord\Schema\SchemaInterface

dropTable() 공개 메소드

public dropTable ( LazyRecord\Schema\SchemaInterface $schema )
$schema LazyRecord\Schema\SchemaInterface

finalize() 공개 메소드

public finalize ( )

prepare() 공개 메소드

public prepare ( )