PostgresBuilder

PostgresBuilder

class PostgresBuilder 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
string getColumnType(string $table, string $column)

Get the data type for the given column name.

from Builder
array getColumnListing(string $table)

Get the column listing for a given table.

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

Modify a table on the schema.

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

Create a new table on the schema.

from Builder
void drop(string $table)

Drop a table from the schema.

from Builder
void dropIfExists(string $table)

Drop a table from the schema if it exists.

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

Rename a table on the schema.

from Builder
bool enableForeignKeyConstraints()

Enable foreign key constraints.

from Builder
bool disableForeignKeyConstraints()

Disable foreign key constraints.

from Builder
Connection 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
doc_Laravel
2016-11-02 16:33:02
Comments
Leave a Comment

Please login to continue.