PostgresBuilder::rename()

void rename(string $from, string $to) Rename a table on the schema. Parameters string $from string $to Return Value void

PostgresBuilder::hasTable()

bool hasTable(string $table) Determine if the given table exists. Parameters string $table Return Value bool

PostgresBuilder::hasColumns()

bool hasColumns(string $table, array $columns) Determine if the given table has given columns. Parameters string $table array $columns Return Value bool

PostgresBuilder::hasColumn()

bool hasColumn(string $table, string $column) Determine if the given table has a given column. Parameters string $table string $column Return Value bool

PostgresBuilder::getConnection()

Connection getConnection() Get the database connection instance. Return Value Connection

PostgresBuilder::getColumnType()

string getColumnType(string $table, string $column) Get the data type for the given column name. Parameters string $table string $column Return Value string

PostgresBuilder::getColumnListing()

array getColumnListing(string $table) Get the column listing for a given table. Parameters string $table Return Value array

PostgresBuilder::enableForeignKeyConstraints()

bool enableForeignKeyConstraints() Enable foreign key constraints. Return Value bool

PostgresBuilder::dropIfExists()

void dropIfExists(string $table) Drop a table from the schema if it exists. Parameters string $table Return Value void

PostgresBuilder::drop()

void drop(string $table) Drop a table from the schema. Parameters string $table Return Value void