\Query\Drivers\PgsqlUtil

Posgres-specific backup, import and creation methods

Summary

Methods
Properties
Constants
__construct()
getDriver()
createTable()
deleteTable()
backupStructure()
backupData()
quoteIdent()
quoteTable()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$conn
N/A

Properties

Methods

__construct()

__construct(\Query\Drivers\DriverInterface  $conn) 

Save a reference to the connection object for later use

Parameters

\Query\Drivers\DriverInterface $conn

createTable()

createTable(string  $name, array  $fields, array  $constraints = array(), boolean  $ifNotExists = TRUE) : string

Convenience public function to generate sql for creating a db table

Parameters

string $name
array $fields
array $constraints
boolean $ifNotExists

Returns

string

deleteTable()

deleteTable(string  $name) : string

Drop the selected table

Parameters

string $name

Returns

string

backupStructure()

backupStructure() : string

Create an SQL backup file for the current database's structure

Returns

string

backupData()

backupData(array  $exclude = array()) : string

Create an SQL backup file for the current database's data

Parameters

array $exclude

Returns

string

quoteIdent()

quoteIdent(string  $sql) : string

Parameters

string $sql

Returns

string

quoteTable()

quoteTable(string  $sql) : string

Parameters

string $sql

Returns

string