PHP Class Dbpdo_PgSQL

Inheritance: implements iDataBase
Show file Open project: zblogcn/zblogphp

Public Properties

Property Type Description
$dbname 数据库名
$dbpre 数据库名前缀
$sql DbSql实例
$type
$version

Public Methods

Method Description
Close ( ) 关闭数据库连接
CreateTable ( $table, $datainfo )
DelTable ( $table )
Delete ( $query ) : boolean | mysqli_result
EscapeString ( $s ) : string
ExistTable ( $table ) : boolean
Insert ( $query ) : integer
Open ( array $array ) : boolean 连接数据库
Query ( $query ) : array
QueryMulit ( $s ) 执行多行SQL语句
QueryMulti ( $s ) 错别字函数,历史原因保留下来
Update ( $query ) : boolean | mysqli_result
__construct ( ) 构造函数,实例化$sql参数

Method Details

Close() public method

关闭数据库连接
public Close ( )

CreateTable() public method

public CreateTable ( $table, $datainfo )
$table
$datainfo

DelTable() public method

public DelTable ( $table )
$table

Delete() public method

public Delete ( $query ) : boolean | mysqli_result
$query
return boolean | mysqli_result

EscapeString() public method

public EscapeString ( $s ) : string
$s
return string

ExistTable() public method

public ExistTable ( $table ) : boolean
$table
return boolean

Insert() public method

public Insert ( $query ) : integer
$query
return integer

Open() public method

连接数据库
public Open ( array $array ) : boolean
$array array 数据库连接配置 $array=array( 'pgsql_server', 'pgsql_username', 'pgsql_password', 'pgsql_name', 'pgsql_pre', 'pgsql_port', 'persistent') )
return boolean

Query() public method

public Query ( $query ) : array
$query
return array

QueryMulit() public method

执行多行SQL语句
public QueryMulit ( $s )
$s

QueryMulti() public method

错别字函数,历史原因保留下来
public QueryMulti ( $s )

Update() public method

public Update ( $query ) : boolean | mysqli_result
$query
return boolean | mysqli_result

__construct() public method

构造函数,实例化$sql参数
public __construct ( )

Property Details

$dbname public property

数据库名
public $dbname

$dbpre public property

数据库名前缀
public $dbpre

$sql public property

DbSql实例
public $sql

$type public property

public $type

$version public property

public $version