PHP Class Think\Db\Driver\Sqlite

Inheritance: extends think\db\Driver
Mostra file Open project: star7th/showdoc

Public Methods

Method Description
escapeString ( string $str ) : string SQL指令安全过滤
getFields ( $tableName ) : array 取得数据表的字段信息
getTables ( $dbName = '' ) : array 取得数据库的表信息
parseLimit ( $limit ) : string limit

Protected Methods

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

Method Details

escapeString() public method

SQL指令安全过滤
public escapeString ( string $str ) : string
$str string SQL指令
return string

getFields() public method

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

getTables() public method

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

parseDsn() protected method

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

parseLimit() public method

limit
public parseLimit ( $limit ) : string
return string