class MySqlBuilder extends Builder (View source)

Methods

void
__construct( Connection $connection)

Create a new database Schema manager.

from Builder
bool
hasTable( string $table)

Determine if the given table exists.

bool
hasColumn( string $table, string $column)

Determine if the given table has a given column.

from Builder
bool
hasColumns( string $table, array $columns)

Determine if the given table has given columns.

from Builder
array
getColumnListing( string $table)

Get the column listing for a given table.

table( string $table, Closure $callback)

Modify a table on the schema.

from Builder
create( string $table, Closure $callback)

Create a new table on the schema.

from Builder
drop( string $table)

Drop a table from the schema.

from Builder
dropIfExists( string $table)

Drop a table from the schema if it exists.

from Builder
rename( string $from, string $to)

Rename a table on the schema.

from Builder
getConnection()

Get the database connection instance.

from Builder
$this
setConnection( Connection $connection)

Set the database connection instance.

from Builder
void
blueprintResolver( Closure $resolver)

Set the Schema Blueprint resolver callback.

from Builder

Details

in Builder at line line 37
void __construct( Connection $connection)

Create a new database Schema manager.

Parameters

Connection $connection

Return Value

void

at line line 13
bool hasTable( string $table)

Determine if the given table exists.

Parameters

string $table

Return Value

bool

in Builder at line line 65
bool hasColumn( string $table, string $column)

Determine if the given table has a given column.

Parameters

string $table
string $column

Return Value

bool

in Builder at line line 79
bool hasColumns( string $table, array $columns)

Determine if the given table has given columns.

Parameters

string $table
array $columns

Return Value

bool

at line line 30
array getColumnListing( string $table)

Get the column listing for a given table.

Parameters

string $table

Return Value

array

in Builder at line line 114
Blueprint table( string $table, Closure $callback)

Modify a table on the schema.

Parameters

string $table
Closure $callback

Return Value

Blueprint

in Builder at line line 126
Blueprint create( string $table, Closure $callback)

Create a new table on the schema.

Parameters

string $table
Closure $callback

Return Value

Blueprint

in Builder at line line 143
Blueprint drop( string $table)

Drop a table from the schema.

Parameters

string $table

Return Value

Blueprint

in Builder at line line 158
Blueprint dropIfExists( string $table)

Drop a table from the schema if it exists.

Parameters

string $table

Return Value

Blueprint

in Builder at line line 174
Blueprint rename( string $from, string $to)

Rename a table on the schema.

Parameters

string $from
string $to

Return Value

Blueprint

in Builder at line line 215
Connection getConnection()

Get the database connection instance.

Return Value

Connection

in Builder at line line 226
$this setConnection( Connection $connection)

Set the database connection instance.

Parameters

Connection $connection

Return Value

$this

in Builder at line line 239
void blueprintResolver( Closure $resolver)

Set the Schema Blueprint resolver callback.

Parameters

Closure $resolver

Return Value

void