PHP Class LazyRecord\Bootstrap

Mostra file Open project: corneltek/lazyrecord Class Usage Examples

Protected Properties

Property Type Description
$builder
$conn
$logger
$queryDriver

Public Methods

Method Description
__construct ( Connection $conn, BaseBuilder $builder = null, CLIFramework\Logger $logger = null )
build ( array $schemas )
remove ( array $schemas ) Remove schemas from database.
seed ( array $schemas, ConfigLoader $config = null )

Protected Methods

Method Description
executeStatement ( $sql )
executeStatements ( array $sqls )

Method Details

__construct() public method

public __construct ( Connection $conn, BaseBuilder $builder = null, CLIFramework\Logger $logger = null )
$conn Connection
$builder LazyRecord\SqlBuilder\BaseBuilder
$logger CLIFramework\Logger

build() public method

public build ( array $schemas )
$schemas array

executeStatement() protected method

protected executeStatement ( $sql )

executeStatements() protected method

protected executeStatements ( array $sqls )
$sqls array

remove() public method

Remove schemas from database.
public remove ( array $schemas )
$schemas array

seed() public method

public seed ( array $schemas, ConfigLoader $config = null )
$schemas array
$config ConfigLoader

Property Details

$builder protected_oe property

protected $builder

$conn protected_oe property

protected $conn

$logger protected_oe property

protected $logger

$queryDriver protected_oe property

protected $queryDriver