Builder
class Builder (View source)
Methods
void
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.
bool
hasColumns(
string $table,
array $columns)
Determine if the given table has given columns.
string
getColumnType(
string $table,
string $column)
Get the data type for the given column name.
array
getColumnListing(
string $table)
Get the column listing for a given table.
dropIfExists(
string $table)
Drop a table from the schema if it exists.
getConnection()
Get the database connection instance.
$this
void
Details
at line line 65
bool
hasColumn(
string $table,
string $column)
Determine if the given table has a given column.
at line line 79
bool
hasColumns(
string $table,
array $columns)
Determine if the given table has given columns.
at line line 99
string
getColumnType(
string $table,
string $column)
Get the data type for the given column name.