Pgsql
extends PDO
Table of Contents
Constants
-
ATTR_DISABLE_PREPARES
= \PDO::PGSQL_ATTR_DISABLE_PREPARES
Methods
-
__construct()
: mixed
-
connect()
: self
-
copyFromArray()
: bool
-
copyFromFile()
: bool
-
copyToArray()
: array<string|int, mixed>|false
-
copyToFile()
: bool
-
getNotify()
: array<string|int, mixed>|false
-
getPid()
: int
-
lobCreate()
: string|false
-
lobOpen()
: resource|false
-
lobUnlink()
: bool
ATTR_DISABLE_PREPARES
public
mixed
ATTR_DISABLE_PREPARES
= \PDO::PGSQL_ATTR_DISABLE_PREPARES
__construct()
public
__construct(string $dsn[, string|null $username = null ][, string|null $password = null ][, array<string|int, mixed>|null $options = null ]) : mixed
Parameters
-
$dsn
: string
-
-
$username
: string|null
= null
-
-
$password
: string|null
= null
-
-
$options
: array<string|int, mixed>|null
= null
-
connect()
public
static connect(string $dsn[, string|null $username = null ][, string|null $password = null ][, array<string|int, mixed>|null $options = null ]) : self
Parameters
-
$dsn
: string
-
-
$username
: string|null
= null
-
-
$password
: string|null
= null
-
-
$options
: array<string|int, mixed>|null
= null
-
copyFromArray()
public
copyFromArray(string $tableName, array<string|int, mixed> $rows[, string $separator = " " ][, string $nullAs = '\\N' ][, string|null $fields = null ]) : bool
Parameters
-
$tableName
: string
-
-
$rows
: array<string|int, mixed>
-
-
$separator
: string
= " "
-
-
$nullAs
: string
= '\\N'
-
-
$fields
: string|null
= null
-
copyFromFile()
public
copyFromFile(string $tableName, string $filename[, string $separator = " " ][, string $nullAs = '\\N' ][, string|null $fields = null ]) : bool
Parameters
-
$tableName
: string
-
-
$filename
: string
-
-
$separator
: string
= " "
-
-
$nullAs
: string
= '\\N'
-
-
$fields
: string|null
= null
-
copyToArray()
public
copyToArray(string $tableName[, string $separator = " " ][, string $nullAs = '\\N' ][, string|null $fields = null ]) : array<string|int, mixed>|false
Parameters
-
$tableName
: string
-
-
$separator
: string
= " "
-
-
$nullAs
: string
= '\\N'
-
-
$fields
: string|null
= null
-
Return values
array<string|int, mixed>|false
copyToFile()
public
copyToFile(string $tableName, string $filename[, string $separator = " " ][, string $nullAs = '\\N' ][, string|null $fields = null ]) : bool
Parameters
-
$tableName
: string
-
-
$filename
: string
-
-
$separator
: string
= " "
-
-
$nullAs
: string
= '\\N'
-
-
$fields
: string|null
= null
-
getNotify()
public
getNotify([int $fetchMode = PDO::FETCH_DEFAULT ][, int $timeoutMilliseconds = 0 ]) : array<string|int, mixed>|false
Parameters
-
$fetchMode
: int
= PDO::FETCH_DEFAULT
-
-
$timeoutMilliseconds
: int
= 0
-
Return values
array<string|int, mixed>|false
getPid()
public
getPid() : int
lobCreate()
public
lobCreate() : string|false
Return values
string|false
lobOpen()
public
lobOpen(string $oid[, string $mode = 'rb' ]) : resource|false
Parameters
-
$oid
: string
-
-
$mode
: string
= 'rb'
-
Return values
resource|false
lobUnlink()
public
lobUnlink(string $oid) : bool
Parameters
-
$oid
: string
-