class Illuminate / Database / Schema / PostgresBuilder
You are viewing an older version of the documentation. For the latest, please visit master documentation.

PostgresBuilder

Extends

Methods

public

createDatabase ( $name ) : bool

Create a database in the schema.

Parameters

  • $name string
public

dropDatabaseIfExists ( $name ) : bool

Drop a database from the schema if the database exists.

Parameters

  • $name string
public

hasTable ( $table ) : bool

Determine if the given table exists.

Parameters

  • $table string
public

dropAllTables ( ) : void

Drop all tables from the database.

public

dropAllViews ( ) : void

Drop all views from the database.

public

dropAllTypes ( ) : void

Drop all types from the database.

public

getAllTables ( ) : array

Get all of the table names for the database.

public

getAllViews ( ) : array

Get all of the view names for the database.

public

getAllTypes ( ) : array

Get all of the type names for the database.

public

getColumnListing ( $table ) : array

Get the column listing for a given table.

Parameters

  • $table string
protected

parseSchemaAndTable ( $table ) : array

Parse the table name and extract the schema and table.

Parameters

  • $table string