PHP Class Dbpdo_MySQL

Inheritance: implements iDataBase
Exibir arquivo Open project: zblogcn/zblogphp

Public Properties

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

Public Methods

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

Method Details

Close() public method

关闭数据库连接
public Close ( )

CreateDB() public method

public CreateDB ( string $dbmysql_server, string $dbmysql_port, string $dbmysql_username, string $dbmysql_password, string $dbmysql_name )
$dbmysql_server string
$dbmysql_port string
$dbmysql_username string
$dbmysql_password string
$dbmysql_name string

CreateTable() public method

public CreateTable ( $table, $datainfo, $engine = null )
$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 ) : boolean
$array
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

$dbengine public_oe property

数据库引擎
public $dbengine

$dbname public_oe property

数据库名
public $dbname

$dbpre public_oe property

数据库名前缀
public $dbpre

$sql public_oe property

DbSql实例
public $sql

$type public_oe property

public $type

$version public_oe property

public $version