PHP Class LazyRecord\SqlBuilder\BaseBuilder

Show file Open project: corneltek/lazyrecord

Protected Properties

Property Type Description
$clean
$driver
$rebuild

Public Methods

Method Description
__construct ( BaseDriver $driver, array $options = [] )
build ( LazyRecord\Schema\SchemaInterface $schema )
buildColumnSql ( LazyRecord\Schema\SchemaInterface $schema, DeclareColumn $column )
buildForeignKeyConstraint ( Relationship $rel )
buildForeignKeys ( LazyRecord\Schema\SchemaInterface $schema )
buildIndex ( LazyRecord\Schema\SchemaInterface $schema )
buildTable ( LazyRecord\Schema\SchemaInterface $schema )
createTable ( LazyRecord\Schema\SchemaInterface $schema )
finalize ( )
prepare ( )
setClean ( $clean = true )
setRebuild ( $rebuild = true )

Method Details

__construct() public method

public __construct ( BaseDriver $driver, array $options = [] )
$driver SQLBuilder\Driver\BaseDriver
$options array

build() public method

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

buildColumnSql() abstract public method

abstract public buildColumnSql ( LazyRecord\Schema\SchemaInterface $schema, DeclareColumn $column )
$schema LazyRecord\Schema\SchemaInterface
$column LazyRecord\Schema\DeclareColumn

buildForeignKeyConstraint() public method

public buildForeignKeyConstraint ( Relationship $rel )
$rel LazyRecord\Schema\Relationship\Relationship

buildForeignKeys() public method

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

buildIndex() public method

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

buildTable() public method

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

createTable() public method

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

finalize() public method

public finalize ( )

prepare() public method

public prepare ( )

setClean() public method

public setClean ( $clean = true )

setRebuild() public method

public setRebuild ( $rebuild = true )

Property Details

$clean protected property

protected $clean

$driver protected property

protected $driver

$rebuild protected property

protected $rebuild