PHP Class think\db\connector\Pgsql

Inheritance: extends Think\Db\Connection
显示文件 Open project: top-think/framework

Public Methods

Method Description
getFields ( string $tableName ) : array 取得数据表的字段信息
getTables ( string $dbName = '' ) : array 取得数据库的表信息

Protected Methods

Method Description
getExplain ( string $sql ) : array SQL性能分析
parseDsn ( array $config ) : string 解析pdo连接的dsn信息
supportSavepoint ( )

Method Details

getExplain() protected method

SQL性能分析
protected getExplain ( string $sql ) : array
$sql string
return array

getFields() public method

取得数据表的字段信息
public getFields ( string $tableName ) : array
$tableName string
return array

getTables() public method

取得数据库的表信息
public getTables ( string $dbName = '' ) : array
$dbName string
return array

parseDsn() protected method

解析pdo连接的dsn信息
protected parseDsn ( array $config ) : string
$config array 连接信息
return string

supportSavepoint() protected method

protected supportSavepoint ( )