PHP Class DbSQLite

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

Public Properties

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

Public Methods

Method Description
Close ( ) 关闭数据库连接
CreateTable ( $table, $datainfo )
DelTable ( $table )
Delete ( $query ) : SQLiteResult
EscapeString ( $s ) : string
ExistTable ( $table ) : boolean
Insert ( $query ) : integer
Open ( $array ) : boolean
Query ( $query ) : array
QueryMulit ( $s )
QueryMulti ( $s ) 错别字函数,历史原因保留下来
Update ( $query ) : SQLiteResult
__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 ) : SQLiteResult
$query
return SQLiteResult

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

public QueryMulit ( $s )
$s

QueryMulti() public method

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

Update() public method

public Update ( $query ) : SQLiteResult
$query
return SQLiteResult

__construct() public method

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

Property Details

$dbname public property

数据库名
public $dbname

$dbpre public property

数据库名前缀
public $dbpre

$sql public property

public DbSql|null $sql
return DbSql | null

$type public property

public $type

$version public property

public $version